FlighttaskManualPosition: check if estimator velocity maximum is finite

before applying limits
This commit is contained in:
Dennis Mannhart
2018-07-20 09:26:18 +02:00
committed by Lorenz Meier
parent efed766919
commit 4af9d79986
@@ -87,7 +87,7 @@ void FlightTaskManualPosition::_scaleSticks()
}
// scale the stick inputs
if (_sub_vehicle_local_position->get().vxy_max > 0.001f) {
if (PX4_ISFINITE(_sub_vehicle_local_position->get().vxy_max)) {
// estimator provides vehicle specific max
// use the minimum of the estimator and user specified limit