mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-10 18:08:30 -04:00
Plane: fixed takeoff alt handling
thanks to Henry for noticing
This commit is contained in:
parent
c284a070e0
commit
f3bd5c0b6a
@ -114,6 +114,7 @@ void ModeTakeoff::update()
|
||||
|
||||
plane.next_WP_loc = plane.current_loc;
|
||||
plane.next_WP_loc.offset_bearing(direction, MAX(dist-dist_done, 0));
|
||||
plane.next_WP_loc.alt = start_loc.alt + target_alt*100.0;
|
||||
|
||||
plane.set_flight_stage(AP_Vehicle::FixedWing::FLIGHT_NORMAL);
|
||||
plane.complete_auto_takeoff();
|
||||
|
Loading…
Reference in New Issue
Block a user