GeofenceBreachAvoidance: fixed bug which caused min vertical distance to fence

not to be calculated

Signed-off-by: RomanBapst <bapstroman@gmail.com>
This commit is contained in:
RomanBapst
2021-05-12 13:09:03 +03:00
committed by Roman Bapst
parent 9418d36cc9
commit 92abf0545a
@@ -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)