1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-20 14:55:21 +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

@ -28,6 +28,26 @@
#define MAX_SUPPORTED_SERVOS 8
#endif
typedef enum {
DSHOT_CMD_MOTOR_STOP = 0,
DSHOT_CMD_BEEP1,
DSHOT_CMD_BEEP2,
DSHOT_CMD_BEEP3,
DSHOT_CMD_BEEP4,
DSHOT_CMD_BEEP5,
DSHOT_CMD_ESC_INFO,
DSHOT_CMD_SPIN_ONE_WAY,
DSHOT_CMD_SPIN_OTHER_WAY,
DSHOT_CMD_3D_MODE_OFF,
DSHOT_CMD_3D_MODE_ON,
DSHOT_CMD_SETTINGS_REQUEST,
DSHOT_CMD_SAVE_SETTINGS,
DSHOT_CMD_ROTATE_NORMAL = 20, //Blheli_S only command
DSHOT_CMD_ROTATE_REVERSE = 21, //Blheli_S only command
DSHOT_CMD_MAX = 47
} dshotCommands_e;
typedef enum {
PWM_TYPE_STANDARD = 0,
PWM_TYPE_ONESHOT125,