mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
FlightTaskManualStabilzied: check for absolute yaw
This commit is contained in:
parent
cfa412b55f
commit
742e9f7b15
@ -75,7 +75,7 @@ void FlightTaskManualStabilized::_updateHeadingSetpoints()
|
||||
/* Yaw-lock depends on stick input. If not locked,
|
||||
* yaw_sp is set to NAN.
|
||||
* TODO: add yawspeed to get threshold.*/
|
||||
if (_yawspeed_setpoint > FLT_EPSILON) {
|
||||
if (fabsf(_yawspeed_setpoint) > FLT_EPSILON) {
|
||||
// no fixed heading when rotating around yaw by stick
|
||||
_yaw_setpoint = NAN;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user