1
0
Fork 0
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:
Martin Budden 2017-05-08 08:20:44 +01:00
parent 52f32d9381
commit 6779c5e8e8
3 changed files with 3 additions and 3 deletions

View file

@ -48,6 +48,6 @@ typedef enum {
DEBUG_NONE, DEBUG_NONE,
DEBUG_GYRO, DEBUG_GYRO,
DEBUG_NOTCH, DEBUG_NOTCH,
DEBUG_NAV, DEBUG_NAV_LANDING_DETECTOR,
DEBUG_COUNT DEBUG_COUNT
} debugType_e; } debugType_e;

View file

@ -324,7 +324,7 @@ static const char * const lookupTableDebug[DEBUG_COUNT] = {
"NONE", "NONE",
"GYRO", "GYRO",
"NOTCH", "NOTCH",
"NAV" "NAV_LANDING"
}; };
#ifdef TELEMETRY_LTM #ifdef TELEMETRY_LTM

View file

@ -524,7 +524,7 @@ bool isMulticopterLandingDetected(void)
bool possibleLandingDetected = isAtMinimalThrust && !verticalMovement && !horizontalMovement; bool possibleLandingDetected = isAtMinimalThrust && !verticalMovement && !horizontalMovement;
if (debugMode ==DEBUG_NAV) { if (debugMode == DEBUG_NAV_LANDING_DETECTOR) {
debug[0] = isAtMinimalThrust * 100 + !verticalMovement * 10 + !horizontalMovement * 1; debug[0] = isAtMinimalThrust * 100 + !verticalMovement * 10 + !horizontalMovement * 1;
debug[1] = (landingThrSamples == 0) ? 0 : (rcCommandAdjustedThrottle - (landingThrSum / landingThrSamples)); debug[1] = (landingThrSamples == 0) ? 0 : (rcCommandAdjustedThrottle - (landingThrSum / landingThrSamples));
debug[2] = (currentTimeUs - landingTimer) / 1000; debug[2] = (currentTimeUs - landingTimer) / 1000;