mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
added Force_new_altitude call for alt hold
This commit is contained in:
parent
4ba600c0c5
commit
29d6085bab
@ -1658,7 +1658,7 @@ void update_throttle_mode(void)
|
|||||||
// we are under automatic throttle control
|
// we are under automatic throttle control
|
||||||
// ---------------------------------------
|
// ---------------------------------------
|
||||||
if(reset_throttle_flag) {
|
if(reset_throttle_flag) {
|
||||||
set_new_altitude(max(current_loc.alt, 100));
|
force_new_altitude(max(current_loc.alt, 100));
|
||||||
reset_throttle_flag = false;
|
reset_throttle_flag = false;
|
||||||
update_throttle_cruise();
|
update_throttle_cruise();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user