1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-19 14:25:20 +03:00

Further AIR MODE enhancements // Motor stop overules AIR MODE low throttle

reset iterm for motor stop

fix luxfloat
This commit is contained in:
borisbstyle 2015-12-07 10:00:11 +01:00
parent b0d3db2456
commit 763ff23ede
3 changed files with 11 additions and 11 deletions

View file

@ -801,7 +801,7 @@ void mixTable(void)
}
// adjust feedback to scale PID error inputs to our limitations.
rpy_limiting = constrainf(((rpy_limiting * th_range) / rpy_range), 0.2f, 1.0f);
rpy_limiting = constrainf(((float)th_range / rpy_range), 0.1f, 1.0f);
}
if (ARMING_FLAG(ARMED)) {
@ -854,7 +854,7 @@ void mixTable(void)
// If we're at minimum throttle and FEATURE_MOTOR_STOP enabled,
// do not spin the motors.
motor[i] = constrain(motor[i], escAndServoConfig->minthrottle, escAndServoConfig->maxthrottle);
if (((rcData[THROTTLE]) < rxConfig->mincheck) && !(IS_RC_MODE_ACTIVE(BOXAIRMODE))) {
if (((rcData[THROTTLE]) < rxConfig->mincheck)) {
if (feature(FEATURE_MOTOR_STOP)) {
motor[i] = escAndServoConfig->mincommand;
}