@ -24,8 +24,7 @@ const AP_Param::GroupInfo Tailsitter::var_info[] = {
// @Param: ENABLE
// @Param: ENABLE
// @DisplayName: Enable Tailsitter
// @DisplayName: Enable Tailsitter
// @Description: This enables Tailsitter functionality
// @Description: This enables Tailsitter functionality, 2: forces Qassist active and always stabilize in forward flight with airmode for stabalisation at 0 throttle, for use on vehicles with no control surfaces, vehicle will not arm in forward flight modes, see also Q_OPTIONS "Mtrs_Only_Qassist"
// @Values: 0:Disable,1:Enable
// @User: Standard
// @User: Standard
// @RebootRequired: True
// @RebootRequired: True
AP_GROUPINFO_FLAGS ( " ENABLE " , 1 , Tailsitter , enable , 0 , AP_PARAM_FLAG_ENABLE ) ,
AP_GROUPINFO_FLAGS ( " ENABLE " , 1 , Tailsitter , enable , 0 , AP_PARAM_FLAG_ENABLE ) ,
@ -185,6 +184,16 @@ void Tailsitter::setup()
AP_Param : : set_defaults_from_table ( defaults_table_tailsitter , ARRAY_SIZE ( defaults_table_tailsitter ) ) ;
AP_Param : : set_defaults_from_table ( defaults_table_tailsitter , ARRAY_SIZE ( defaults_table_tailsitter ) ) ;
}
}
// Setup for control surface less operation
if ( enable = = 2 ) {
quadplane . q_assist_state = QuadPlane : : Q_ASSIST_STATE_ENUM : : Q_ASSIST_FORCE ;
quadplane . air_mode = AirMode : : ASSISTED_FLIGHT_ONLY ;
// Do not allow arming in forward flight modes
// motors will become active due to assisted flight airmode, the vehicle will try very hard to get level
quadplane . options . set ( quadplane . options . get ( ) | QuadPlane : : OPTION_ONLY_ARM_IN_QMODE_OR_AUTO ) ;
}
}
}
/*
/*