From badf461101d0f77166f6e33d99d05f322542575d Mon Sep 17 00:00:00 2001 From: Peter Barker Date: Fri, 30 Jul 2021 13:18:05 +1000 Subject: [PATCH] Blimp: log GPS primary change event in GPS library --- Blimp/Blimp.h | 1 - Blimp/Log.cpp | 6 ------ 2 files changed, 7 deletions(-) diff --git a/Blimp/Blimp.h b/Blimp/Blimp.h index 2ccc46be85..9440627b58 100644 --- a/Blimp/Blimp.h +++ b/Blimp/Blimp.h @@ -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 diff --git a/Blimp/Log.cpp b/Blimp/Log.cpp index e107898cfb..13801750d9 100644 --- a/Blimp/Log.cpp +++ b/Blimp/Log.cpp @@ -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 {