ActuatorEffectivenssTailsitterVTOL: only enable MC yaw control if more than 3 rotors

Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
Silvan Fuhrer
2021-12-24 20:06:13 -05:00
committed by Daniel Agar
parent 426aa76a59
commit 39d441317a
@@ -55,7 +55,8 @@ ActuatorEffectivenessTailsitterVTOL::getEffectivenessMatrix(Configuration &confi
// MC motors
configuration.selected_matrix = 0;
_mc_rotors.enableYawControl(true); //TODO enable yaw with elevons
_mc_rotors.enableYawControl(_mc_rotors.geometry().num_rotors > 3); // enable MC yaw control if more than 3 rotors
_mc_rotors.getEffectivenessMatrix(configuration, true);
// Control Surfaces