Blimp: log GPS primary change event in GPS library

This commit is contained in:
Peter Barker 2021-07-30 13:18:05 +10:00 committed by Peter Barker
parent 14e5c99b0c
commit badf461101
2 changed files with 0 additions and 7 deletions

View File

@ -202,7 +202,6 @@ private:
struct {
uint8_t baro : 1; // true if baro is healthy
uint8_t compass : 1; // true if compass is healthy
uint8_t primary_gps : 2; // primary gps index
} sensor_health;
// Motor Output

View File

@ -267,12 +267,6 @@ void Blimp::Log_Sensor_Health()
sensor_health.compass = compass.healthy();
AP::logger().Write_Error(LogErrorSubsystem::COMPASS, (sensor_health.compass ? LogErrorCode::ERROR_RESOLVED : LogErrorCode::UNHEALTHY));
}
// check primary GPS
if (sensor_health.primary_gps != gps.primary_sensor()) {
sensor_health.primary_gps = gps.primary_sensor();
AP::logger().Write_Event(LogEvent::GPS_PRIMARY_CHANGED);
}
}
struct PACKED log_SysIdD {