mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
LP-590 Zero BoardLevelTrim values while doing GyroBias calibration
This commit is contained in:
parent
1ab7956c1a
commit
9fcebfe2c9
@ -69,9 +69,13 @@ void GyroBiasCalibrationModel::start()
|
||||
// Disable gyro bias correction while calibrating
|
||||
attitudeSettingsData.BiasCorrectGyro = AttitudeSettings::BIASCORRECTGYRO_FALSE;
|
||||
// Zero board rotation
|
||||
attitudeSettingsData.BoardRotation[AttitudeSettings::BOARDROTATION_YAW] = 0;
|
||||
attitudeSettingsData.BoardRotation[AttitudeSettings::BOARDROTATION_ROLL] = 0;
|
||||
attitudeSettingsData.BoardRotation[AttitudeSettings::BOARDROTATION_PITCH] = 0;
|
||||
attitudeSettingsData.BoardRotation[AttitudeSettings::BOARDROTATION_YAW] = 0;
|
||||
attitudeSettingsData.BoardRotation[AttitudeSettings::BOARDROTATION_ROLL] = 0;
|
||||
attitudeSettingsData.BoardRotation[AttitudeSettings::BOARDROTATION_PITCH] = 0;
|
||||
// Zero board level trim
|
||||
attitudeSettingsData.BoardLevelTrim[AttitudeSettings::BOARDLEVELTRIM_ROLL] = 0;
|
||||
attitudeSettingsData.BoardLevelTrim[AttitudeSettings::BOARDLEVELTRIM_PITCH] = 0;
|
||||
|
||||
attitudeSettings->setData(attitudeSettingsData);
|
||||
|
||||
UAVObject::Metadata gyroStateMetadata = gyroState->getMetadata();
|
||||
|
Loading…
Reference in New Issue
Block a user