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)
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/>.
25 #define DEBUG16_VALUE_COUNT 8
26 extern int16_t debug
[DEBUG16_VALUE_COUNT
];
27 extern uint8_t debugMode
;
29 #define DEBUG_SET(mode, index, value) do { if (debugMode == (mode)) { debug[(index)] = (value); } } while (0)
39 DEBUG_RC_INTERPOLATION
,
56 DEBUG_MAX7456_SPICLOCK
,
60 DEBUG_RANGEFINDER_QUALITY
,
63 DEBUG_RUNAWAY_TAKEOFF
,
73 DEBUG_RC_SMOOTHING_RATE
,
76 DEBUG_RX_SPEKTRUM_SPI
,
77 DEBUG_DSHOT_RPM_TELEMETRY
,
82 DEBUG_DUAL_GYRO_SCALED
,
83 DEBUG_DSHOT_RPM_ERRORS
,
84 DEBUG_CRSF_LINK_STATISTICS_UPLINK
,
85 DEBUG_CRSF_LINK_STATISTICS_PWR
,
86 DEBUG_CRSF_LINK_STATISTICS_DOWN
,
88 DEBUG_GPS_RESCUE_THROTTLE_PID
,
90 DEBUG_FEEDFORWARD_LIMIT
,
92 DEBUG_BLACKBOX_OUTPUT
,
99 DEBUG_SCHEDULER_DETERMINISM
,
100 DEBUG_TIMING_ACCURACY
,
101 DEBUG_RX_EXPRESSLRS_SPI
,
102 DEBUG_RX_EXPRESSLRS_PHASELOCK
,
104 DEBUG_GPS_RESCUE_VELOCITY
,
105 DEBUG_GPS_RESCUE_HEADING
,
106 DEBUG_GPS_RESCUE_TRACKING
,
111 DEBUG_GYRO_CALIBRATION
,
115 DEBUG_DSHOT_TELEMETRY_COUNTS
,
121 extern const char * const debugModeNames
[DEBUG_COUNT
];
123 void debugInit(void);