Skip to content
Snippets Groups Projects
Commit 4af9d799 authored by Dennis Mannhart's avatar Dennis Mannhart Committed by Lorenz Meier
Browse files

FlighttaskManualPosition: check if estimator velocity maximum is finite

before applying limits
parent efed7669
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment