From b1a3e0a5374bfd56370fc441131228ba599aed60 Mon Sep 17 00:00:00 2001 From: Michael du Breuil Date: Mon, 23 Apr 2018 15:46:27 -0700 Subject: [PATCH] AP_GPS: Report when SBF errors change --- libraries/AP_GPS/AP_GPS_SBF.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/AP_GPS/AP_GPS_SBF.cpp b/libraries/AP_GPS/AP_GPS_SBF.cpp index debd4758b2..75ad72eac1 100644 --- a/libraries/AP_GPS/AP_GPS_SBF.cpp +++ b/libraries/AP_GPS/AP_GPS_SBF.cpp @@ -368,6 +368,10 @@ AP_GPS_SBF::process_message(void) { const msg4014 &temp = sbf_msg.data.msg4014u; RxState = temp.RxState; + if ((RxError & RX_ERROR_MASK) != (temp.RxError & RX_ERROR_MASK)) { + gcs().send_text(MAV_SEVERITY_INFO, "GPS %d: SBF error changed (0x%08x/0x%08x)", state.instance + 1, + RxError & RX_ERROR_MASK, temp.RxError & RX_ERROR_MASK); + } RxError = temp.RxError; break; }