mirror of https://github.com/ArduPilot/ardupilot
Blimp: log GPS primary change event in GPS library
This commit is contained in:
parent
14e5c99b0c
commit
badf461101
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue