Disable debug vars by default
This commit is contained in:
parent
2a73ad6925
commit
095b21b027
|
@ -270,7 +270,9 @@ float autotune(angle_index_t angleIndex, const rollAndPitchInclination_t *inclin
|
||||||
firstPeakAngle = currentAngle;
|
firstPeakAngle = currentAngle;
|
||||||
targetAngleAtPeak = targetAngle;
|
targetAngleAtPeak = targetAngle;
|
||||||
|
|
||||||
|
#ifdef DEBUG_AUTOTUNE
|
||||||
debug[3] = DEGREES_TO_DECIDEGREES(firstPeakAngle);
|
debug[3] = DEGREES_TO_DECIDEGREES(firstPeakAngle);
|
||||||
|
#endif
|
||||||
|
|
||||||
} else if (firstPeakAngle > 0) {
|
} else if (firstPeakAngle > 0) {
|
||||||
switch (cycle) {
|
switch (cycle) {
|
||||||
|
@ -320,7 +322,9 @@ float autotune(angle_index_t angleIndex, const rollAndPitchInclination_t *inclin
|
||||||
|
|
||||||
if (currentAngle < secondPeakAngle) {
|
if (currentAngle < secondPeakAngle) {
|
||||||
secondPeakAngle = currentAngle;
|
secondPeakAngle = currentAngle;
|
||||||
|
#ifdef DEBUG_AUTOTUNE
|
||||||
debug[3] = DEGREES_TO_DECIDEGREES(secondPeakAngle);
|
debug[3] = DEGREES_TO_DECIDEGREES(secondPeakAngle);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
float oscillationAmplitude = firstPeakAngle - secondPeakAngle;
|
float oscillationAmplitude = firstPeakAngle - secondPeakAngle;
|
||||||
|
@ -395,9 +399,11 @@ float autotune(angle_index_t angleIndex, const rollAndPitchInclination_t *inclin
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef DEBUG_AUTOTUNE
|
||||||
if (angleIndex == AI_ROLL) {
|
if (angleIndex == AI_ROLL) {
|
||||||
debug[0] += 100;
|
debug[0] += 100;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
updateTargetAngle();
|
updateTargetAngle();
|
||||||
|
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
#define SBUS_TIME_NEEDED_PER_FRAME 3000
|
#define SBUS_TIME_NEEDED_PER_FRAME 3000
|
||||||
|
|
||||||
#ifndef CJMCU
|
#ifndef CJMCU
|
||||||
#define DEBUG_SBUS_PACKETS
|
//#define DEBUG_SBUS_PACKETS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef DEBUG_SBUS_PACKETS
|
#ifdef DEBUG_SBUS_PACKETS
|
||||||
|
|
Loading…
Reference in New Issue