Browse Source

Rover: reset AHRS trim after levelling

mission-4.1.18
Andrew Tridgell 12 years ago
parent
commit
0f239ae92c
  1. 1
      APMrover2/system.pde

1
APMrover2/system.pde

@ -417,6 +417,7 @@ static void startup_INS_ground(bool force_accel_level) @@ -417,6 +417,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));
}
ahrs.reset();

Loading…
Cancel
Save