Skip to content

Commit

Permalink
Zero out accel calibration
Browse files Browse the repository at this point in the history
  • Loading branch information
gorbit99 committed Oct 8, 2024
1 parent 5222085 commit 3d9ad76
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/sensors/softfusion/softfusionsensor.h
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,10 @@ void motionSetup() override final {
&& (sensorCalibration.data.sfusion.MotionlessDataLen
== MotionlessCalibDataSize())) {
m_calibration = sensorCalibration.data.nonblocking;
m_calibration.accelCalibrated = false;
m_calibration.A_off[0] = 0;
m_calibration.A_off[1] = 0;
m_calibration.A_off[2] = 0;
recalcFusion();
} else if (sensorCalibration.type != SlimeVR::Configuration::CalibrationConfigType::NONE) {
m_Logger.warn(
Expand Down

0 comments on commit 3d9ad76

Please sign in to comment.