Browse Source

GeofenceBreachAvoidance: fixed bug which caused min vertical distance to fence

not to be calculated

Signed-off-by: RomanBapst <bapstroman@gmail.com>
master
RomanBapst 4 years ago committed by Roman Bapst
parent
commit
92abf0545a
  1. 1
      src/modules/navigator/GeofenceBreachAvoidance/geofence_breach_avoidance.cpp

1
src/modules/navigator/GeofenceBreachAvoidance/geofence_breach_avoidance.cpp

@ -62,6 +62,7 @@ void GeofenceBreachAvoidance::updateParameters() @@ -62,6 +62,7 @@ void GeofenceBreachAvoidance::updateParameters()
param_get(_paramHandle.param_mpc_acc_down_max, &_params.param_mpc_acc_down_max);
updateMinHorDistToFenceMultirotor();
updateMinVertDistToFenceMultirotor();
}
void GeofenceBreachAvoidance::setCurrentPosition(double lat, double lon, float alt)

Loading…
Cancel
Save