Plane: reset AHRS trim after a level operation

This commit is contained in:
Andrew Tridgell 2013-02-20 11:56:02 +11:00
parent f67480fa50
commit 0a0b51cc63

View File

@ -459,6 +459,7 @@ static void startup_INS_ground(bool force_accel_level)
// levelling on each boot, and instead rely on the user to do
// it once via the ground station
ins.init_accel(flash_leds);
ahrs.set_trim(Vector3f(0, 0, 0));
}
#endif
ahrs.reset();