1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 21:05:35 +03:00

Added Dshot commands for reversing the motors and beeper for blheli_s

This commit is contained in:
Bryce Johnson 2017-06-09 01:55:04 -05:00
parent 617d36a6a9
commit 13e21c969e
8 changed files with 62 additions and 10 deletions

View file

@ -338,7 +338,7 @@ void pwmWriteDshotCommand(uint8_t index, uint8_t command)
motorDmaOutput_t *const motor = getMotorDmaOutput(index);
unsigned repeats;
if ((command >= 7 && command <= 10) || command == 12) {
if ((DSHOT_CMD_SPIN_ONE_WAY >= 7 && DSHOT_CMD_3D_MODE_ON <= 10) || DSHOT_CMD_SAVE_SETTINGS == 12 || (DSHOT_CMD_ROTATE_NORMAL >= 20 && DSHOT_CMD_ROTATE_REVERSE <= 21) ) {
repeats = 10;
} else {
repeats = 1;