mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 02:18:29 -04:00
Copter: set inav alt to zero when arming
This commit is contained in:
parent
28ce66f314
commit
f5f206b055
@ -169,6 +169,9 @@ static void init_arm_motors()
|
||||
// fast baro calibration to reset ground pressure
|
||||
init_barometer(false);
|
||||
|
||||
// reset inertial nav alt to zero
|
||||
inertial_nav.set_altitude(0.0f);
|
||||
|
||||
// go back to normal AHRS gains
|
||||
ahrs.set_fast_gains(false);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user