HelicopterCoaxial: correct constraining for minimum 2 swash plate servos

This commit is contained in:
Matthias Grob
2023-04-06 15:14:38 +02:00
committed by Beat Küng
parent 20f2df4410
commit 169a0f580d
@@ -67,7 +67,7 @@ void ActuatorEffectivenessHelicopterCoaxial::updateParams()
return;
}
_geometry.num_swash_plate_servos = math::constrain((int)count, 3, NUM_SWASH_PLATE_SERVOS_MAX);
_geometry.num_swash_plate_servos = math::constrain((int)count, 2, NUM_SWASH_PLATE_SERVOS_MAX);
for (int i = 0; i < _geometry.num_swash_plate_servos; ++i) {
float angle_deg{};