AP_HAL: add dshot commands and ESC types for extended dshot telemetry (EDT)

This commit is contained in:
Andy Piper 2023-05-29 20:44:47 +01:00 committed by Andrew Tridgell
parent 262b11f0c1
commit 62fc1b91c4
1 changed files with 5 additions and 1 deletions

View File

@ -247,6 +247,8 @@ public:
DSHOT_3D_OFF = 9,
DSHOT_3D_ON = 10,
DSHOT_SAVE = 12,
DSHOT_EXTENDED_TELEMETRY_ENABLE = 13,
DSHOT_EXTENDED_TELEMETRY_DISABLE = 14,
DSHOT_NORMAL = 20,
DSHOT_REVERSE = 21,
// The following options are only available on BLHeli32
@ -265,7 +267,9 @@ public:
enum DshotEscType {
DSHOT_ESC_NONE = 0,
DSHOT_ESC_BLHELI = 1,
DSHOT_ESC_BLHELI_S = 2
DSHOT_ESC_BLHELI_S = 2,
DSHOT_ESC_BLHELI_EDT = 3,
DSHOT_ESC_BLHELI_EDT_S = 4
};
virtual void set_output_mode(uint32_t mask, enum output_mode mode) {}