mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-03 14:10:34 +08:00
HelicopterCoaxial: correct constraining for minimum 2 swash plate servos
This commit is contained in:
+1
-1
@@ -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{};
|
||||
|
||||
Reference in New Issue
Block a user