mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
ACM : Events - renamed target alt
This commit is contained in:
parent
4c067b4c3a
commit
022c567b47
@ -15,9 +15,10 @@ static void failsafe_on_event()
|
||||
set_mode(RTL);
|
||||
// We add an additional 10m to the current altitude
|
||||
//next_WP.alt += 1000;
|
||||
set_new_altitude(target_altitude + 1000);
|
||||
set_new_altitude(next_WP.alt + 1000);
|
||||
}
|
||||
// 2 = Stay in AUTO and ignore failsafe
|
||||
//if (g.throttle_fs_action == 2)
|
||||
// Stay in AUTO and ignore failsafe
|
||||
break;
|
||||
|
||||
default:
|
||||
@ -27,7 +28,7 @@ static void failsafe_on_event()
|
||||
set_mode(RTL);
|
||||
// We add an additional 10m to the current altitude
|
||||
//next_WP.alt += 1000;
|
||||
set_new_altitude(target_altitude + 1000);
|
||||
set_new_altitude(next_WP.alt + 1000);
|
||||
}else{
|
||||
// We have no GPS so we must land
|
||||
set_mode(LAND);
|
||||
|
Loading…
Reference in New Issue
Block a user