PositionControl: handle yaw NAN inputs

This commit is contained in:
Matthias Grob 2019-12-15 20:41:11 +01:00 committed by Kabir Mohammed
parent dcc0339773
commit e06fff94bb
1 changed files with 3 additions and 0 deletions

View File

@ -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()