diff --git a/src/modules/navigator/navigator_main.cpp b/src/modules/navigator/navigator_main.cpp index 10143be2e7..7457b83a14 100644 --- a/src/modules/navigator/navigator_main.cpp +++ b/src/modules/navigator/navigator_main.cpp @@ -864,7 +864,7 @@ void Navigator::geofence_breach_check(bool &have_geofence_position_data) // the computation of the braking distance does not match the actual braking distance. Until we have a better model // we set the loiter point to the current position, that will make sure that the vehicle will loiter inside the fence loiter_center_lat_lon = _gf_breach_avoidance.generateLoiterPointForMultirotor(gf_violation_type, - &_geofence); + &_geofence); loiter_altitude_amsl = _gf_breach_avoidance.generateLoiterAltitudeForMulticopter(gf_violation_type);