diff options
author | px4dev <px4@purgatory.org> | 2013-01-30 16:16:12 -0800 |
---|---|---|
committer | px4dev <px4@purgatory.org> | 2013-02-23 22:00:59 -0800 |
commit | c3ed120d01740c61a2cafc67e597389aa0c4b674 (patch) | |
tree | fcebfff867e089722fbb88200c9ceaf6b3df7909 /ROMFS/scripts/rc.sensors | |
parent | a7a1cc4625ea4097761a9aef88f9f0b4608944a4 (diff) | |
download | px4-firmware-c3ed120d01740c61a2cafc67e597389aa0c4b674.tar.gz px4-firmware-c3ed120d01740c61a2cafc67e597389aa0c4b674.tar.bz2 px4-firmware-c3ed120d01740c61a2cafc67e597389aa0c4b674.zip |
Back out deletion of the /etc/init.d scripts; we need these.
Diffstat (limited to 'ROMFS/scripts/rc.sensors')
-rw-r--r-- | ROMFS/scripts/rc.sensors | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/ROMFS/scripts/rc.sensors b/ROMFS/scripts/rc.sensors new file mode 100644 index 000000000..42c2f52e9 --- /dev/null +++ b/ROMFS/scripts/rc.sensors @@ -0,0 +1,34 @@ +#!nsh +# +# Standard startup script for PX4FMU onboard sensor drivers. +# + +# +# Start sensor drivers here. +# + +ms5611 start +adc start + +if mpu6000 start +then + echo "using MPU6000 and HMC5883L" + hmc5883 start +else + echo "using L3GD20 and LSM303D" + l3gd20 start + lsm303 start +fi + +# +# Start the sensor collection task. +# IMPORTANT: this also loads param offsets +# ALWAYS start this task before the +# preflight_check. +# +sensors start + +# +# Check sensors - run AFTER 'sensors start' +# +preflight_check
\ No newline at end of file |