diff --git a/depthai-core b/depthai-core index 70ad1005c..4fe04c507 160000 --- a/depthai-core +++ b/depthai-core @@ -1 +1 @@ -Subproject commit 70ad1005cdfaf6a12b5627f75d177d6f37081c6a +Subproject commit 4fe04c507b00a67789a57708d6be4e76125c8a1f diff --git a/examples/imu_rotation_vector.py b/examples/imu_rotation_vector.py index 61f20292b..63563fae6 100755 --- a/examples/imu_rotation_vector.py +++ b/examples/imu_rotation_vector.py @@ -53,7 +53,7 @@ def timeDeltaToMilliS(delta) -> float: print(f"Rotation vector timestamp: {tsF.format(timeDeltaToMilliS(rvTs))} ms") print(f"Quaternion: i: {imuF.format(rVvalues.i)} j: {imuF.format(rVvalues.j)} " f"k: {imuF.format(rVvalues.k)} real: {imuF.format(rVvalues.real)}") - print(f"Accuracy (rad): {imuF.format(rVvalues.accuracy)}") + print(f"Accuracy (rad): {imuF.format(rVvalues.rotationVectorAccuracy)}") if cv2.waitKey(1) == ord('q'): diff --git a/src/DatatypeBindings.cpp b/src/DatatypeBindings.cpp index c939b8f3b..60f2c8243 100644 --- a/src/DatatypeBindings.cpp +++ b/src/DatatypeBindings.cpp @@ -304,11 +304,11 @@ void DatatypeBindings::bind(pybind11::module& m){ .def_readwrite("timestamp", &IMUReport::timestamp) ; - py::enum_(imureport, "IMUReportAccuracy") - .value("UNRELIABLE", IMUReport::IMUReportAccuracy::UNRELIABLE) - .value("LOW", IMUReport::IMUReportAccuracy::LOW) - .value("MEDIUM", IMUReport::IMUReportAccuracy::MEDIUM) - .value("HIGH", IMUReport::IMUReportAccuracy::HIGH) + py::enum_(imureport, "Accuracy") + .value("UNRELIABLE", IMUReport::Accuracy::UNRELIABLE) + .value("LOW", IMUReport::Accuracy::LOW) + .value("MEDIUM", IMUReport::Accuracy::MEDIUM) + .value("HIGH", IMUReport::Accuracy::HIGH) ; py::class_>(m, "IMUReportAccelerometer", DOC(dai, IMUReportAccelerometer)) @@ -338,7 +338,7 @@ void DatatypeBindings::bind(pybind11::module& m){ .def_readwrite("j", &IMUReportRotationVectorWAcc::j) .def_readwrite("k", &IMUReportRotationVectorWAcc::k) .def_readwrite("real", &IMUReportRotationVectorWAcc::real) - .def_readwrite("accuracy", &IMUReportRotationVectorWAcc::accuracy) + .def_readwrite("rotationVectorAccuracy", &IMUReportRotationVectorWAcc::rotationVectorAccuracy) ; #if 0