mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 22:05:17 +03:00
Add debug support to GHST protocol driver
Add ability for pilots to log CRC errors, unknown frames, LQ, and RSSI. Added macro to debug.h to simplify incrementing debug values without the need for local statics in client code.
This commit is contained in:
parent
c9dd69b19e
commit
8627af832c
3 changed files with 20 additions and 0 deletions
|
@ -25,6 +25,7 @@ extern int16_t debug[DEBUG16_VALUE_COUNT];
|
|||
extern uint8_t debugMode;
|
||||
|
||||
#define DEBUG_SET(mode, index, value) {if (debugMode == (mode)) {debug[(index)] = (value);}}
|
||||
#define DEBUG_INCR(mode, index) {if (debugMode == (mode)) {++debug[(index)];}}
|
||||
|
||||
#define DEBUG_SECTION_TIMES
|
||||
|
||||
|
@ -114,6 +115,7 @@ typedef enum {
|
|||
DEBUG_RX_TIMING,
|
||||
DEBUG_D_LPF,
|
||||
DEBUG_VTX_TRAMP,
|
||||
DEBUG_GHST,
|
||||
DEBUG_COUNT
|
||||
} debugType_e;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue