mirror of
https://github.com/iNavFlight/inav.git
synced 2025-07-23 16:25:26 +03:00
Renamed debug mode enum
This commit is contained in:
parent
52f32d9381
commit
6779c5e8e8
3 changed files with 3 additions and 3 deletions
|
@ -48,6 +48,6 @@ typedef enum {
|
|||
DEBUG_NONE,
|
||||
DEBUG_GYRO,
|
||||
DEBUG_NOTCH,
|
||||
DEBUG_NAV,
|
||||
DEBUG_NAV_LANDING_DETECTOR,
|
||||
DEBUG_COUNT
|
||||
} debugType_e;
|
||||
|
|
|
@ -324,7 +324,7 @@ static const char * const lookupTableDebug[DEBUG_COUNT] = {
|
|||
"NONE",
|
||||
"GYRO",
|
||||
"NOTCH",
|
||||
"NAV"
|
||||
"NAV_LANDING"
|
||||
};
|
||||
|
||||
#ifdef TELEMETRY_LTM
|
||||
|
|
|
@ -524,7 +524,7 @@ bool isMulticopterLandingDetected(void)
|
|||
|
||||
bool possibleLandingDetected = isAtMinimalThrust && !verticalMovement && !horizontalMovement;
|
||||
|
||||
if (debugMode ==DEBUG_NAV) {
|
||||
if (debugMode == DEBUG_NAV_LANDING_DETECTOR) {
|
||||
debug[0] = isAtMinimalThrust * 100 + !verticalMovement * 10 + !horizontalMovement * 1;
|
||||
debug[1] = (landingThrSamples == 0) ? 0 : (rcCommandAdjustedThrottle - (landingThrSum / landingThrSamples));
|
||||
debug[2] = (currentTimeUs - landingTimer) / 1000;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue