mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-29 03:36:07 +08:00
sensors: only poll on first gyro for now
This fixes a bug with following setup: - two (or N > 1) connected gyros - ekf2 enabled In this case, sensors would publish with the combined rate of the gyros, but with N following messages having the same gyro data & timestamp. Apparently ekf2 cannot handle this, the other estimators can. We may want to rethink what the proper solution is here.
This commit is contained in:
@@ -2342,7 +2342,7 @@ Sensors::task_main()
|
|||||||
}
|
}
|
||||||
|
|
||||||
/* wait for up to 50ms for data */
|
/* wait for up to 50ms for data */
|
||||||
int pret = px4_poll(fds, num_poll_fds, 50);
|
int pret = px4_poll(fds, 1, 50);
|
||||||
|
|
||||||
/* if pret == 0 it timed out - periodic check for _task_should_exit, etc. */
|
/* if pret == 0 it timed out - periodic check for _task_should_exit, etc. */
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user