mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2024-12-01 09:24:10 +01:00
f7b8a57e42
The previous scaling function used in scaleMotor could end up with output values below the neutral point. This patch adds a new scaling mode that will try to scale the output proportionally while still keep all outputs within neutral and max. The user can select three different modes: 1) NoScaling - Only cap the output values between neutral and max. 2) AddAndSubtract - The previous output scaling method, which moves the output values directly proportionally to the amount the max/min motor is out of the limits. 3) ElevateAndCompress - The new mode, which elevates all motor values by the percentage needed to bring the min motor to neutral, and then compress all motor values by the percentage needed to bring the max motor down to max. The motor scaling mode can be selected by setting the FlightModeSettings.MotorScalingMode UAVO field. |
||
---|---|---|
.. | ||
uavobjectdefinition | ||
.gitattributes |