POSIX: Added sleep command

The baro was not fully initialized when the sensors module tried to
open it. Added a sleep command and a sleep 2 to rc.S so the baro
is initialized by the time the sensors module tried to read it.

Fixed other noisy errors

Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
Mark Charlebois
2015-06-11 17:28:46 -07:00
parent 18304a2a0d
commit 83bcb95999
7 changed files with 26 additions and 7 deletions
+1 -1
View File
@@ -868,7 +868,7 @@ Sensors::parameters_update()
barofd = px4_open(BARO0_DEVICE_PATH, 0);
if (barofd < 0) {
warnx("ERROR: no barometer foundon %s", BARO0_DEVICE_PATH);
warnx("ERROR: no barometer found on %s", BARO0_DEVICE_PATH);
return ERROR;
} else {