mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-21 04:33:10 +08:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user