Skip to content

Commit

Permalink
Update AP_GPS_UBLOX.cpp
Browse files Browse the repository at this point in the history
Patch "unhealthy GPS" warning on LOCOSYS RTK_DUAL driver
  • Loading branch information
rliou2000 authored Feb 11, 2025
1 parent 1a10241 commit fdf6a8c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions libraries/AP_GPS/AP_GPS_UBLOX.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
//
#include "AP_GPS_UBLOX.h"

#define SUPPORT_LX_RTK_DUAL_PATCH 20240314_20250211_unhealth_gps_patch

#if AP_GPS_UBLOX_ENABLED

#include "AP_GPS.h"
Expand Down Expand Up @@ -1616,6 +1618,9 @@ AP_GPS_UBLOX::_parse_gps(void)
static_cast<uint32_t>(RELPOSNED::refObsMiss) |
static_cast<uint32_t>(RELPOSNED::carrSolnFloat);

#ifdef SUPPORT_LX_RTK_DUAL_PATCH
state.gps_yaw_configured = true; // ++ LXX YAW config patch 20221015 in MSG_RELPOSNED: ++
#endif
_check_new_itow(_buffer.relposned.iTOW);
if (_buffer.relposned.iTOW != _last_relposned_itow+200) {
// useful for looking at packet loss on links
Expand Down Expand Up @@ -2279,6 +2284,21 @@ bool AP_GPS_UBLOX::is_healthy(void) const
}
#endif
#if GPS_MOVING_BASELINE

#ifdef SUPPORT_LX_RTK_DUAL_PATCH
if (gps._auto_config == AP_GPS::GPS_AUTO_CONFIG_DISABLE) {
// since GPS_AUTO_CONFIG =0 // _hardware_generation is not available
return true;
}
else if ((role == AP_GPS::GPS_ROLE_MB_BASE ||
role == AP_GPS::GPS_ROLE_MB_ROVER)
&& _hardware_generation == LX_RTK_DUAL)
return true; // in case GPS_AUTO_CONFIG enabled
#endif




if ((role == AP_GPS::GPS_ROLE_MB_BASE ||
role == AP_GPS::GPS_ROLE_MB_ROVER) &&
!supports_F9_config()) {
Expand Down

0 comments on commit fdf6a8c

Please sign in to comment.