1
0
Fork 0
mirror of https://github.com/iNavFlight/inav.git synced 2025-07-23 08:15:26 +03:00

debug mode via config

This commit is contained in:
Pawel Spychalski (DzikuVx) 2017-01-12 16:38:01 +01:00
parent 80fdef48a4
commit 8ffc9a55e7
6 changed files with 60 additions and 2 deletions

View file

@ -17,6 +17,9 @@
#define DEBUG16_VALUE_COUNT 4
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_SECTION_TIMES
@ -39,3 +42,23 @@ extern uint32_t sectionTimes[2][4];
#define TIME_SECTION_END(index) {}
#endif
typedef enum {
DEBUG_NONE,
DEBUG_CYCLETIME,
DEBUG_BATTERY,
DEBUG_GYRO,
DEBUG_ACCELEROMETER,
DEBUG_MIXER,
DEBUG_AIRMODE,
DEBUG_PIDLOOP,
DEBUG_NOTCH,
DEBUG_RC_INTERPOLATION,
DEBUG_VELOCITY,
DEBUG_DTERM_FILTER,
DEBUG_ANGLERATE,
DEBUG_ESC_SENSOR,
DEBUG_SCHEDULER,
DEBUG_STACK,
DEBUG_COUNT
} debugType_e;