mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +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:
parent
740e409016
commit
8158cdfcf4
@ -323,9 +323,11 @@ Navigator::run()
|
||||
// Go on and check which changes had been requested
|
||||
if (PX4_ISFINITE(cmd.param4)) {
|
||||
rep->current.yaw = cmd.param4;
|
||||
rep->current.yaw_valid = true;
|
||||
|
||||
} else {
|
||||
rep->current.yaw = NAN;
|
||||
rep->current.yaw_valid = false;
|
||||
}
|
||||
|
||||
if (PX4_ISFINITE(cmd.param5) && PX4_ISFINITE(cmd.param6)) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user