diff --git a/Blimp/Blimp.cpp b/Blimp/Blimp.cpp index 9bab577b39..004e838572 100644 --- a/Blimp/Blimp.cpp +++ b/Blimp/Blimp.cpp @@ -278,7 +278,6 @@ Blimp::Blimp(void) flightmode(&mode_manual) { // init sensor error logging flags - sensor_health.baro = true; sensor_health.compass = true; } diff --git a/Blimp/Blimp.h b/Blimp/Blimp.h index 0437de422c..26ae3f6aab 100644 --- a/Blimp/Blimp.h +++ b/Blimp/Blimp.h @@ -189,7 +189,6 @@ private: // sensor health for logging struct { - uint8_t baro : 1; // true if baro is healthy uint8_t compass : 1; // true if compass is healthy } sensor_health; diff --git a/Blimp/Log.cpp b/Blimp/Log.cpp index 23e2c308fe..550f72aaa1 100644 --- a/Blimp/Log.cpp +++ b/Blimp/Log.cpp @@ -232,20 +232,13 @@ tuning_max : tune_max logger.WriteBlock(&pkt_tune, sizeof(pkt_tune)); } -// logs when baro or compass becomes unhealthy +// logs when compass becomes unhealthy void Blimp::Log_Sensor_Health() { if (!should_log(MASK_LOG_ANY)) { return; } - // check baro - if (sensor_health.baro != barometer.healthy()) { - sensor_health.baro = barometer.healthy(); - AP::logger().Write_Error(LogErrorSubsystem::BARO, - (sensor_health.baro ? LogErrorCode::ERROR_RESOLVED : LogErrorCode::UNHEALTHY)); - } - // check compass if (sensor_health.compass != compass.healthy()) { sensor_health.compass = compass.healthy();