mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
Inhibit Dshot motor beeping while motors are running (armed or motor test).
This commit is contained in:
parent
dfe868ef96
commit
c8f528c0af
5 changed files with 27 additions and 24 deletions
|
@ -316,16 +316,34 @@ static float disarmMotorOutput, deadbandMotor3dHigh, deadbandMotor3dLow;
|
|||
float motorOutputHigh, motorOutputLow;
|
||||
static float rcCommandThrottleRange, rcCommandThrottleRange3dLow, rcCommandThrottleRange3dHigh;
|
||||
|
||||
uint8_t getMotorCount()
|
||||
uint8_t getMotorCount(void)
|
||||
{
|
||||
return motorCount;
|
||||
}
|
||||
|
||||
float getMotorMixRange()
|
||||
float getMotorMixRange(void)
|
||||
{
|
||||
return motorMixRange;
|
||||
}
|
||||
|
||||
bool areMotorsRunning(void)
|
||||
{
|
||||
bool motorsRunning = false;
|
||||
if (ARMING_FLAG(ARMED)) {
|
||||
motorsRunning = true;
|
||||
} else {
|
||||
for (int i = 0; i < motorCount; i++) {
|
||||
if (motor_disarmed[i] != disarmMotorOutput) {
|
||||
motorsRunning = true;
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return motorsRunning;
|
||||
}
|
||||
|
||||
bool mixerIsOutputSaturated(int axis, float errorRate)
|
||||
{
|
||||
if (axis == FD_YAW && (currentMixerMode == MIXER_TRI || currentMixerMode == MIXER_CUSTOM_TRI)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue