Add OSD_STATE_GROUP_ELEMENTS state to osdUpdate() and optimise DMA vs polled MAX7456...
[betaflight.git] / src / main / build / debug.c
blobd3ae5fb3f471983e58a487ba3c6981f0f462478c
1 /*
2 * This file is part of Cleanflight and Betaflight.
4 * Cleanflight and Betaflight are free software. You can redistribute
5 * this software and/or modify this software under the terms of the
6 * GNU General Public License as published by the Free Software
7 * Foundation, either version 3 of the License, or (at your option)
8 * any later version.
10 * Cleanflight and Betaflight are distributed in the hope that they
11 * will be useful, but WITHOUT ANY WARRANTY; without even the implied
12 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this software.
18 * If not, see <http://www.gnu.org/licenses/>.
21 #include <stdint.h>
23 #include "platform.h"
25 #include "debug.h"
27 int16_t debug[DEBUG16_VALUE_COUNT];
28 uint8_t debugMode;
30 // Please ensure that these names are aligned with the enum values defined in 'debug.h' - for OSD be sure the name is unique with 12 chars.
31 const char * const debugModeNames[DEBUG_COUNT] = {
32 "NONE",
33 "CYCLETIME",
34 "BATTERY",
35 "GYRO_FILTERED",
36 "ACCELEROMETER",
37 "PIDLOOP",
38 "GYRO_SCALED",
39 "RC_INTERPOLATION",
40 "ANGLERATE",
41 "ESC_SENSOR",
42 "SCHEDULER",
43 "STACK",
44 "ESC_SENSOR_RPM",
45 "ESC_SENSOR_TMP",
46 "ALTITUDE",
47 "FFT",
48 "FFT_TIME",
49 "FFT_FREQ",
50 "RX_FRSKY_SPI",
51 "RX_SFHSS_SPI",
52 "GYRO_RAW",
53 "DUAL_GYRO_RAW",
54 "DUAL_GYRO_DIFF",
55 "MAX7456_SIGNAL",
56 "MAX7456_SPICLOCK",
57 "SBUS",
58 "FPORT",
59 "RANGEFINDER",
60 "RANGEFINDER_QUALITY",
61 "LIDAR_TF",
62 "ADC_INTERNAL",
63 "RUNAWAY_TAKEOFF",
64 "SDIO",
65 "CURRENT_SENSOR",
66 "USB",
67 "SMARTAUDIO",
68 "RTH",
69 "ITERM_RELAX",
70 "ACRO_TRAINER",
71 "RC_SMOOTHING",
72 "RX_SIGNAL_LOSS",
73 "RC_SMOOTHING_RATE",
74 "ANTI_GRAVITY",
75 "DYN_LPF",
76 "RX_SPEKTRUM_SPI",
77 "DSHOT_RPM_TELEMETRY",
78 "RPM_FILTER",
79 "D_MIN",
80 "AC_CORRECTION",
81 "AC_ERROR",
82 "DUAL_GYRO_SCALED",
83 "DSHOT_RPM_ERRORS",
84 "CRSF_LINK_STATISTICS_UPLINK",
85 "CRSF_LINK_STATISTICS_PWR",
86 "CRSF_LINK_STATISTICS_DOWN",
87 "BARO",
88 "GPS_RESCUE_THROTTLE_PID",
89 "DYN_IDLE",
90 "FEEDFORWARD_LIMIT",
91 "FEEDFORWARD",
92 "BLACKBOX_OUTPUT",
93 "GYRO_SAMPLE",
94 "RX_TIMING",
95 "D_LPF",
96 "VTX_TRAMP",
97 "GHST",
98 "SCHEDULER_DETERMINISM",
99 "TIMING_ACCURACY",
100 "RX_EXPRESSLRS_SPI",
101 "RX_EXPRESSLRS_PHASELOCK",
102 "RX_STATE_TIME"