aboutsummaryrefslogtreecommitdiff
path: root/ROMFS/scripts/rc.sensors
diff options
context:
space:
mode:
Diffstat (limited to 'ROMFS/scripts/rc.sensors')
-rw-r--r--ROMFS/scripts/rc.sensors28
1 files changed, 28 insertions, 0 deletions
diff --git a/ROMFS/scripts/rc.sensors b/ROMFS/scripts/rc.sensors
new file mode 100644
index 000000000..7515c1947
--- /dev/null
+++ b/ROMFS/scripts/rc.sensors
@@ -0,0 +1,28 @@
+#!nsh
+#
+# Standard startup script for PX4FMU onboard sensor drivers.
+#
+
+#
+# Start sensor drivers here.
+#
+
+#ms5611 start
+
+#
+# Start the sensor collection task.
+#
+# XXX should be 'sensors start'
+#
+sensors &
+
+#
+# Test sensor functionality
+#
+# XXX integrate with 'sensors start' ?
+#
+#if sensors quicktest
+#then
+# echo "[init] sensor initialisation FAILED."
+# reboot
+#fi