forked from Archive/PX4-Autopilot
PositionControl: handle yaw NAN inputs
This commit is contained in:
parent
dcc0339773
commit
e06fff94bb
|
@ -133,6 +133,9 @@ void PositionControl::update(const float dt)
|
|||
|
||||
_positionControl();
|
||||
_velocityControl(dt);
|
||||
|
||||
_yawspeed_sp = PX4_ISFINITE(_yawspeed_sp) ? _yawspeed_sp : 0.f;
|
||||
_yaw_sp = PX4_ISFINITE(_yaw_sp) ? _yaw_sp : _yaw; // TODO: better way to disable yaw control
|
||||
}
|
||||
|
||||
bool PositionControl::_interfaceMapping()
|
||||
|
|
Loading…
Reference in New Issue