Skip to content

Commit

Permalink
AP_Periph: remove check for TP5 unconfigured message
Browse files Browse the repository at this point in the history
  • Loading branch information
bugobliterator committed Dec 3, 2024
1 parent 003621c commit 4277444
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions AP_Periph/sensor_gps.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#include "AP_Periph.h"
#include <AP_GPS/RTCM3_Parser.h>
#include <AP_GPS/AP_GPS_UBLOX.h>

#if 0
#define Debug(...) do { hal.console->printf(__VA_ARGS__); } while(0)
Expand Down Expand Up @@ -170,16 +171,16 @@ void AP_Periph_DroneCAN::can_gps_update(void)
if (gps.logging_present() && gps.logging_enabled() && !gps.logging_failed()) {
status.status |= ARDUPILOT_GNSS_STATUS_STATUS_LOGGING;
}
uint8_t idx; // unused
if (status.healthy && !gps.first_unconfigured_gps(idx)) {
status.status |= ARDUPILOT_GNSS_STATUS_STATUS_ARMABLE;
}

uint32_t error_codes;
if (gps.get_error_codes(error_codes)) {
status.error_codes = error_codes;
}

if (status.healthy && (error_codes & ~CONFIG_TP5)) {
status.status |= ARDUPILOT_GNSS_STATUS_STATUS_ARMABLE;
}

gnss_status_pub.broadcast(status);
}
}
Expand Down

0 comments on commit 4277444

Please sign in to comment.