mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 11:59:17 +08:00
navigator: set yaw_valid flag in reposition triplet (#10294)
- yaw_valid flag was always left at false which made the position controller reject the yaw setpoint of the reposition command
This commit is contained in:
@@ -323,9 +323,11 @@ Navigator::run()
|
|||||||
// Go on and check which changes had been requested
|
// Go on and check which changes had been requested
|
||||||
if (PX4_ISFINITE(cmd.param4)) {
|
if (PX4_ISFINITE(cmd.param4)) {
|
||||||
rep->current.yaw = cmd.param4;
|
rep->current.yaw = cmd.param4;
|
||||||
|
rep->current.yaw_valid = true;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
rep->current.yaw = NAN;
|
rep->current.yaw = NAN;
|
||||||
|
rep->current.yaw_valid = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (PX4_ISFINITE(cmd.param5) && PX4_ISFINITE(cmd.param6)) {
|
if (PX4_ISFINITE(cmd.param5) && PX4_ISFINITE(cmd.param6)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user