mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
Fixed motor value translation to / from MSP for DShot.
Fixed 'stopMotors' (used in 'HardfaultHandler' to actually stop motors with DShot. Also made 'disarmMotorOutput' used consistently. Renamed functions to be more clear.
This commit is contained in:
parent
f804f1e272
commit
0a4648c03e
6 changed files with 64 additions and 23 deletions
|
@ -3095,11 +3095,11 @@ static void cliMotor(char *cmdline)
|
|||
cliShowArgumentRangeError("value", 1000, 2000);
|
||||
return;
|
||||
} else {
|
||||
motor_disarmed[motor_index] = motor_value;
|
||||
motor_disarmed[motor_index] = convertExternalToMotor(motor_value);
|
||||
}
|
||||
}
|
||||
|
||||
cliPrintf("motor %d: %d\r\n", motor_index, motor_disarmed[motor_index]);
|
||||
cliPrintf("motor %d: %d\r\n", motor_index, convertMotorToExternal(motor_disarmed[motor_index]));
|
||||
}
|
||||
|
||||
static void cliPlaySound(char *cmdline)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue