Browse Source

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
sbg
Roman Bapst 6 years ago committed by Daniel Agar
parent
commit
8158cdfcf4
  1. 2
      src/modules/navigator/navigator_main.cpp

2
src/modules/navigator/navigator_main.cpp

@ -323,9 +323,11 @@ Navigator::run() @@ -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…
Cancel
Save