mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-18 20:53:34 +08:00
FlighttaskManualPosition: check if estimator velocity maximum is finite
before applying limits
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user