mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-23 23:53:34 +08:00
geofence: remove unused function parameters
This commit is contained in:
committed by
Mathieu Bresciani
parent
3f3a4ac5c1
commit
e9a2b3f260
@@ -1555,8 +1555,7 @@ bool Navigator::geofence_allows_position(const vehicle_global_position_s &pos)
|
||||
(_geofence.getGeofenceAction() != geofence_result_s::GF_ACTION_WARN)) {
|
||||
|
||||
if (PX4_ISFINITE(pos.lat) && PX4_ISFINITE(pos.lon)) {
|
||||
return _geofence.check(pos, _gps_pos, _home_pos,
|
||||
home_position_valid());
|
||||
return _geofence.check(pos, _gps_pos);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user