From 3cb88d0a2367811a8270619b09c27a10e21d3fb0 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 11 Feb 2017 16:50:34 +1100 Subject: [PATCH] Copter: added tailsitter frame support --- ArduCopter/system.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ArduCopter/system.cpp b/ArduCopter/system.cpp index 61e9b34e80..9d126f6c20 100644 --- a/ArduCopter/system.cpp +++ b/ArduCopter/system.cpp @@ -496,6 +496,7 @@ uint8_t Copter::get_frame_mav_type() return MAV_TYPE_TRICOPTER; case AP_Motors::MOTOR_FRAME_SINGLE: case AP_Motors::MOTOR_FRAME_COAX: + case AP_Motors::MOTOR_FRAME_TAILSITTER: return MAV_TYPE_COAXIAL; } // unknown frame so return generic @@ -561,6 +562,10 @@ void Copter::allocate_motors(void) motors = new AP_MotorsCoax(MAIN_LOOP_RATE); var_info = AP_MotorsCoax::var_info; break; + case AP_Motors::MOTOR_FRAME_TAILSITTER: + motors = new AP_MotorsTailsitter(MAIN_LOOP_RATE); + var_info = AP_MotorsTailsitter::var_info; + break; #else // FRAME_CONFIG == HELI_FRAME case AP_Motors::MOTOR_FRAME_HELI: default: