fix:use _gps_pos.timestamp for validity check in geofence_breach_check

navigator: use _gps_pos.timestamp for validity check in geofence_breach_check
Co-Authored-By: Drone-Lab <151698793+drone-lab@users.noreply.github.com>
This commit is contained in:
Nathaniel-hl
2026-04-18 14:40:09 +08:00
parent a257f47822
commit aa9f557536
+1 -1
View File
@@ -990,7 +990,7 @@ void Navigator::geofence_breach_check()
current_latitude = _gps_pos.latitude_deg;
current_longitude = _gps_pos.longitude_deg;
current_altitude = _gps_pos.altitude_msl_m;
position_valid = _global_pos.timestamp > 0;
position_valid = _gps_pos.timestamp > 0;
}
if (!position_valid) {