POSIX: Fixes for HRT implementation of simulated HW clock polling

There is a race condition for the accel and mag polling rates.
Whichever one gets set first, the other will be uninitialized.

Set the mag polling rate to 1ms if uninitilized.

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-06-02 16:55:34 +00:00
parent cced8ed69e
commit 5e95b83eff
11 changed files with 213 additions and 63 deletions
+3
View File
@@ -38,6 +38,9 @@
SRCS = \
px4_posix_impl.cpp \
px4_posix_tasks.cpp \
hrt_thread.c \
hrt_queue.c \
hrt_work_cancel.c \
work_thread.c \
work_queue.c \
work_cancel.c \