ControlAllocator: clearer comment, skip unnecessary check

This commit is contained in:
Balduin
2026-01-08 15:21:55 +01:00
parent b1da6f760a
commit 3ccd8fbba5
@@ -196,13 +196,11 @@ ActuatorEffectivenessRotors::computeEffectivenessMatrix(const Geometry &geometry
float ct = geometry.rotors[i].thrust_coef; float ct = geometry.rotors[i].thrust_coef;
float km = geometry.rotors[i].moment_ratio; float km = geometry.rotors[i].moment_ratio;
// When battery depletes, scale rises above 1 (initially // When battery depletes, scale rises above 1, as it was
// designed as a compensation factor to multiply thrust and // initially designed as a compensation factor to multiply
// torque commands with). Rather than that we model it here by a decreasing // thrust and torque commands with. Rather than that we model it
// thrust coefficient (thrust = ct * u^2) // here by a decreasing thrust coefficient.
if (battery_scale > 1.f) { ct /= battery_scale;
ct /= battery_scale;
}
if (geometry.propeller_torque_disabled) { if (geometry.propeller_torque_disabled) {
km = 0.f; km = 0.f;