Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SAFETY issue -- servos.c: Correct servo throttle *off* when disarmed (not full throttle at disarm) #9330

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/main/flight/servos.c
Expand Up @@ -376,8 +376,9 @@ void servoMixer(float dT)
const uint8_t target = currentServoMixer[i].targetChannel;
const uint8_t from = currentServoMixer[i].inputSource;

// Translate minimum throttle values to -500 ... +500 servo range for use below.
if (from == INPUT_STABILIZED_THROTTLE || from == INPUT_RC_THROTTLE) {
servo[target] = motorConfig()->mincommand;
servo[target] = motorConfig()->mincommand - servoParams(target)->middle;
}
}
}
Expand Down