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/>.
23 #define DEBUG16_VALUE_COUNT 4
24 extern int16_t debug
[DEBUG16_VALUE_COUNT
];
25 extern uint8_t debugMode
;
27 #define DEBUG_SET(mode, index, value) do { if (debugMode == (mode)) { debug[(index)] = (value); } } while (0)
37 DEBUG_RC_INTERPOLATION
,
54 DEBUG_MAX7456_SPICLOCK
,
58 DEBUG_RANGEFINDER_QUALITY
,
61 DEBUG_RUNAWAY_TAKEOFF
,
71 DEBUG_RC_SMOOTHING_RATE
,
74 DEBUG_RX_SPEKTRUM_SPI
,
75 DEBUG_DSHOT_RPM_TELEMETRY
,
80 DEBUG_DUAL_GYRO_SCALED
,
81 DEBUG_DSHOT_RPM_ERRORS
,
82 DEBUG_CRSF_LINK_STATISTICS_UPLINK
,
83 DEBUG_CRSF_LINK_STATISTICS_PWR
,
84 DEBUG_CRSF_LINK_STATISTICS_DOWN
,
86 DEBUG_GPS_RESCUE_THROTTLE_PID
,
88 DEBUG_FEEDFORWARD_LIMIT
,
90 DEBUG_BLACKBOX_OUTPUT
,
96 DEBUG_SCHEDULER_DETERMINISM
,
97 DEBUG_TIMING_ACCURACY
,
98 DEBUG_RX_EXPRESSLRS_SPI
,
99 DEBUG_RX_EXPRESSLRS_PHASELOCK
,
104 extern const char * const debugModeNames
[DEBUG_COUNT
];