Stefan Karlsson
f7b8a57e42
LP-107 Replace the scaling function in scaleMotors
...
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.
2015-08-31 21:29:48 +02:00
..
2014-02-06 00:52:44 +01:00
2013-05-29 22:18:08 +02:00
2013-05-29 22:18:08 +02:00
2013-06-22 19:58:54 +02:00
2013-06-22 19:58:54 +02:00
2014-02-09 19:37:22 +01:00
2015-02-17 23:20:07 +01:00
2014-03-25 09:18:25 +01:00
2014-06-18 20:36:50 +02:00
2013-11-17 20:45:04 +01:00
2014-04-14 10:58:46 +02:00
2015-05-28 08:47:26 +10:00
2015-05-12 17:40:28 +10:00
2014-07-21 11:01:07 +02:00
2013-06-22 19:58:54 +02:00
2014-09-30 16:54:24 +10:00
2014-08-21 19:34:35 +02:00
2014-08-21 19:34:35 +02:00
2013-05-29 22:18:08 +02:00
2014-08-10 12:50:38 +02:00
2013-06-22 19:58:54 +02:00
2014-10-14 08:12:17 +02:00
2013-11-19 18:55:38 +01:00
2014-07-08 02:47:09 +02:00
2014-10-11 16:12:58 +02:00
2014-10-11 16:12:58 +02:00
2014-08-28 11:14:43 +02:00
2013-06-22 19:58:54 +02:00
2013-06-22 19:58:54 +02:00
2014-10-03 18:00:59 +02:00
2014-08-15 21:00:48 +02:00
2013-07-10 15:55:12 +02:00
2015-04-04 22:34:22 +02:00
2014-04-10 17:28:48 +02:00
2015-08-31 21:29:48 +02:00
2013-06-22 19:58:54 +02:00
2013-06-22 19:58:54 +02:00
2013-06-22 19:58:54 +02:00
2015-05-22 17:34:43 +10:00
2014-02-07 18:28:39 +01:00
2013-06-22 19:58:54 +02:00
2014-02-07 18:28:39 +01:00
2014-10-03 16:44:00 +02:00
2015-05-21 04:37:44 -04:00
2015-02-28 08:09:45 +01:00
2015-05-22 18:34:17 +10:00
2013-11-17 20:45:04 +01:00
2013-11-17 20:45:04 +01:00
2015-03-20 21:42:20 +11:00
2013-08-14 17:01:54 -07:00
2013-06-05 19:34:48 +02:00
2013-05-29 22:18:08 +02:00
2014-10-14 08:12:17 +02:00
2015-07-30 15:30:59 +02:00
2013-11-17 20:45:04 +01:00
2015-02-03 00:00:05 +01:00
2014-09-08 23:24:18 +02:00
2014-10-14 08:12:17 +02:00
2015-04-26 15:04:52 +02:00
2015-08-14 10:54:12 +02:00
2013-11-17 20:45:04 +01:00
2015-05-18 21:29:56 +02:00
2015-03-20 21:42:20 +11:00
2014-02-07 18:37:56 +01:00
2015-01-31 22:11:43 +01:00
2015-02-02 21:25:38 +01:00
2015-02-02 21:25:38 +01:00
2013-06-22 19:58:54 +02:00
2013-11-17 20:45:04 +01:00
2013-11-17 20:45:04 +01:00
2015-04-12 21:39:31 +10:00
2015-04-12 21:39:31 +10:00
2014-01-14 21:05:16 +01:00
2015-01-08 13:20:47 +11:00
2015-04-12 21:39:31 +10:00
2014-06-06 22:40:22 +02:00
2015-03-20 21:42:20 +11:00
2013-06-22 19:58:54 +02:00
2013-11-17 20:45:04 +01:00
2013-11-17 20:45:04 +01:00
2014-01-06 21:35:00 +01:00
2014-04-29 15:51:56 +02:00
2015-04-26 15:04:52 +02:00
2015-04-02 19:09:38 +01:00
2014-04-08 21:22:09 +02:00
2014-10-22 01:11:26 +11:00
2013-06-22 19:58:54 +02:00
2015-07-30 18:23:55 +02:00
2015-04-28 21:54:58 +10:00
2015-05-23 22:25:22 +10:00
2015-07-30 18:23:55 +02:00
2015-07-30 18:23:55 +02:00
2015-07-30 18:23:55 +02:00
2015-04-28 21:54:58 +10:00
2015-03-20 21:42:20 +11:00
2015-05-25 22:25:07 +10:00
2015-05-25 22:25:07 +10:00
2015-03-09 21:31:42 +11:00
2015-02-10 22:48:43 +01:00
2014-06-11 22:15:40 +02:00
2014-05-16 00:40:19 +02:00
2015-04-03 12:37:37 +01:00
2015-08-14 10:24:19 +02:00
2015-05-23 21:55:19 +01:00
2013-11-17 20:45:04 +01:00
2013-11-17 20:45:04 +01:00
2015-05-28 08:47:26 +10:00
2015-01-09 07:51:37 +11:00
2013-11-17 20:45:04 +01:00
2013-12-08 14:58:01 +01:00
2013-11-17 20:45:04 +01:00