diff --git a/src/main/drivers/sonar_hcsr04.c b/src/main/drivers/sonar_hcsr04.c index ba853075ea..4235e007b1 100644 --- a/src/main/drivers/sonar_hcsr04.c +++ b/src/main/drivers/sonar_hcsr04.c @@ -132,7 +132,7 @@ void hcsr04_get_distance(volatile int32_t *distance) last_measurement = current_time; distance_ptr = distance; -#if 1 +#if 0 debug[0] = *distance; #endif diff --git a/src/main/flight/imu.c b/src/main/flight/imu.c index dc2fc39912..5820413462 100755 --- a/src/main/flight/imu.c +++ b/src/main/flight/imu.c @@ -488,7 +488,7 @@ void calculateEstimatedAltitude(uint32_t currentTime) accAlt = accAlt * barometerConfig->baro_cf_alt + (float)BaroAlt * (1.0f - barometerConfig->baro_cf_alt); // complementary filter for altitude estimation (baro & acc) vel += vel_acc; -#if 1 +#if 0 debug[1] = accSum[2] / accSumCount; // acceleration debug[2] = vel; // velocity debug[3] = accAlt; // height