1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-01 09:24:10 +01:00

OP-1835 - Motor Constraints for 15.02.02 - Quick fix to disable clipping. Bit of code not in the original fix I had to deal with.

This commit is contained in:
RS2K 2015-05-02 13:11:40 -05:00
parent 57d062ff67
commit 2fca0b1d9b

View File

@ -402,7 +402,9 @@ static void actuatorTask(__attribute__((unused)) void *parameters)
nonreversible_curve1 = 0.0f;
}
if (nonreversible_curve2 < 0.0f) {
nonreversible_curve2 = 0.0f;
if (!multirotor) { //allow negative throttle if multirotor. function scaleMotors handles the sanity checks.
nonreversible_curve2 = 0.0f;
}
}
status[ct] = ProcessMixer(ct, nonreversible_curve1, nonreversible_curve2, &desired, dTSeconds, multirotor);
// If not armed or motors aren't meant to spin all the time