Throttlebased EzLanding (#12094)
[betaflight.git] / src / main / build / debug.c
blob30bd2d7c2d1888feaf03fc2279c27d8ecd9df735
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 "platform.h"
23 #include "debug.h"
25 int16_t debug[DEBUG16_VALUE_COUNT];
26 uint8_t debugMode;
28 // 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.
29 const char * const debugModeNames[DEBUG_COUNT] = {
30 "NONE",
31 "CYCLETIME",
32 "BATTERY",
33 "GYRO_FILTERED",
34 "ACCELEROMETER",
35 "PIDLOOP",
36 "GYRO_SCALED",
37 "RC_INTERPOLATION",
38 "ANGLERATE",
39 "ESC_SENSOR",
40 "SCHEDULER",
41 "STACK",
42 "ESC_SENSOR_RPM",
43 "ESC_SENSOR_TMP",
44 "ALTITUDE",
45 "FFT",
46 "FFT_TIME",
47 "FFT_FREQ",
48 "RX_FRSKY_SPI",
49 "RX_SFHSS_SPI",
50 "GYRO_RAW",
51 "DUAL_GYRO_RAW",
52 "DUAL_GYRO_DIFF",
53 "MAX7456_SIGNAL",
54 "MAX7456_SPICLOCK",
55 "SBUS",
56 "FPORT",
57 "RANGEFINDER",
58 "RANGEFINDER_QUALITY",
59 "LIDAR_TF",
60 "ADC_INTERNAL",
61 "RUNAWAY_TAKEOFF",
62 "SDIO",
63 "CURRENT_SENSOR",
64 "USB",
65 "SMARTAUDIO",
66 "RTH",
67 "ITERM_RELAX",
68 "ACRO_TRAINER",
69 "RC_SMOOTHING",
70 "RX_SIGNAL_LOSS",
71 "RC_SMOOTHING_RATE",
72 "ANTI_GRAVITY",
73 "DYN_LPF",
74 "RX_SPEKTRUM_SPI",
75 "DSHOT_RPM_TELEMETRY",
76 "RPM_FILTER",
77 "D_MIN",
78 "AC_CORRECTION",
79 "AC_ERROR",
80 "DUAL_GYRO_SCALED",
81 "DSHOT_RPM_ERRORS",
82 "CRSF_LINK_STATISTICS_UPLINK",
83 "CRSF_LINK_STATISTICS_PWR",
84 "CRSF_LINK_STATISTICS_DOWN",
85 "BARO",
86 "GPS_RESCUE_THROTTLE_PID",
87 "DYN_IDLE",
88 "FEEDFORWARD_LIMIT",
89 "FEEDFORWARD",
90 "BLACKBOX_OUTPUT",
91 "GYRO_SAMPLE",
92 "RX_TIMING",
93 "D_LPF",
94 "VTX_TRAMP",
95 "GHST",
96 "GHST_MSP",
97 "SCHEDULER_DETERMINISM",
98 "TIMING_ACCURACY",
99 "RX_EXPRESSLRS_SPI",
100 "RX_EXPRESSLRS_PHASELOCK",
101 "RX_STATE_TIME",
102 "GPS_RESCUE_VELOCITY",
103 "GPS_RESCUE_HEADING",
104 "GPS_RESCUE_TRACKING",
105 "GPS_CONNECTION",
106 "ATTITUDE",
107 "VTX_MSP",
108 "GPS_DOP",
109 "FAILSAFE",
110 "GYRO_CALIBRATION",
111 "ANGLE_MODE",
112 "ANGLE_TARGET",
113 "CURRENT_ANGLE",
114 "DSHOT_TELEMETRY_COUNTS",
115 "RPM_LIMIT",
116 "RC_STATS",
117 "MAG_CALIB",
118 "MAG_TASK_RATE",
119 "EZLANDING",