mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 16:23:56 -04:00
ArduCopter: allow alt hold to be engaged with alt < 1m because sometimes we get baro drift.
Also initialisation of target altitude is done in set_throttle_mode function.
This commit is contained in:
parent
a4ee5d2c81
commit
618bd1c296
@ -456,7 +456,6 @@ static void set_mode(byte mode)
|
||||
set_yaw_mode(ALT_HOLD_YAW);
|
||||
set_roll_pitch_mode(ALT_HOLD_RP);
|
||||
set_throttle_mode(ALT_HOLD_THR);
|
||||
force_new_altitude(max(current_loc.alt, 100));
|
||||
break;
|
||||
|
||||
case AUTO:
|
||||
|
Loading…
Reference in New Issue
Block a user