mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
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…
x
Reference in New Issue
Block a user