Plane: fixed takeoff alt handling

thanks to Henry for noticing
This commit is contained in:
Andrew Tridgell 2019-10-20 09:37:39 +11:00
parent 54f8e1137e
commit abd08ac5ca
1 changed files with 1 additions and 0 deletions

View File

@ -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();