mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 22:33:35 +08:00
FlightTaskManualStabilzied: check for absolute yaw
This commit is contained in:
committed by
Lorenz Meier
parent
cfa412b55f
commit
742e9f7b15
@@ -75,7 +75,7 @@ void FlightTaskManualStabilized::_updateHeadingSetpoints()
|
|||||||
/* Yaw-lock depends on stick input. If not locked,
|
/* Yaw-lock depends on stick input. If not locked,
|
||||||
* yaw_sp is set to NAN.
|
* yaw_sp is set to NAN.
|
||||||
* TODO: add yawspeed to get threshold.*/
|
* 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
|
// no fixed heading when rotating around yaw by stick
|
||||||
_yaw_setpoint = NAN;
|
_yaw_setpoint = NAN;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user