Skip to content
Snippets Groups Projects
Commit 8158cdfc authored by Roman Bapst's avatar Roman Bapst Committed by Daniel Agar
Browse files

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
parent 740e4090
No related branches found
No related tags found
No related merge requests found
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment