Skip to content

Commit ad9e075

Browse files
committed
ArduPlane: add quadplane takeoff for DDS
Signed-off-by: Ryan Friedman <[email protected]>
1 parent d694869 commit ad9e075

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

ArduPlane/Plane.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1012,6 +1012,13 @@ bool Plane::is_taking_off() const
10121012
return control_mode->is_taking_off();
10131013
}
10141014

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+
10151022
// correct AHRS pitch for PTCH_TRIM_DEG in non-VTOL modes, and return VTOL view in VTOL
10161023
void Plane::get_osd_roll_pitch_rad(float &roll, float &pitch) const
10171024
{

ArduPlane/Plane.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1001,7 +1001,10 @@ class Plane : public AP_Vehicle {
10011001
void do_vtol_takeoff(const AP_Mission::Mission_Command& cmd);
10021002
void do_vtol_land(const AP_Mission::Mission_Command& cmd);
10031003
bool verify_nav_wp(const AP_Mission::Mission_Command& cmd);
1004+
10041005
#if HAL_QUADPLANE_ENABLED
1006+
// vtol takeoff from AP_Vehicle for quadplane.
1007+
bool start_takeoff(const float alt) override;
10051008
bool verify_landing_vtol_approach(const AP_Mission::Mission_Command& cmd);
10061009
#endif
10071010
void do_wait_delay(const AP_Mission::Mission_Command& cmd);

0 commit comments

Comments
 (0)