File tree 2 files changed +10
-0
lines changed
2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1012,6 +1012,13 @@ bool Plane::is_taking_off() const
1012
1012
return control_mode->is_taking_off ();
1013
1013
}
1014
1014
1015
+ #if HAL_QUADPLANE_ENABLED
1016
+ bool Plane::start_takeoff (const float alt) {
1017
+ return plane.quadplane .available () && quadplane.do_user_takeoff (alt);
1018
+
1019
+ }
1020
+ #endif
1021
+
1015
1022
// correct AHRS pitch for PTCH_TRIM_DEG in non-VTOL modes, and return VTOL view in VTOL
1016
1023
void Plane::get_osd_roll_pitch_rad (float &roll, float &pitch) const
1017
1024
{
Original file line number Diff line number Diff line change @@ -1001,7 +1001,10 @@ class Plane : public AP_Vehicle {
1001
1001
void do_vtol_takeoff (const AP_Mission::Mission_Command& cmd);
1002
1002
void do_vtol_land (const AP_Mission::Mission_Command& cmd);
1003
1003
bool verify_nav_wp (const AP_Mission::Mission_Command& cmd);
1004
+
1004
1005
#if HAL_QUADPLANE_ENABLED
1006
+ // vtol takeoff from AP_Vehicle for quadplane.
1007
+ bool start_takeoff (const float alt) override ;
1005
1008
bool verify_landing_vtol_approach (const AP_Mission::Mission_Command& cmd);
1006
1009
#endif
1007
1010
void do_wait_delay (const AP_Mission::Mission_Command& cmd);
You can’t perform that action at this time.
0 commit comments