Files
PX4-Autopilot/ROMFS/px4fmu_test/init.d/rc.sensors
T
Daniel Agar 3fff512ec0 new standalone drivers/system_power (split out of adc)
- system_power portion of drivers/adc split into a new standalone module (drivers/system_power)
 - additional availability flags added to system_power.msg so we know what boards even support (previously certain flags were faked if not available)
 - drivers/system_power scheduled at minimum rate by default, but now also scheduled immediately on any relevant GPIO events
 - now instead of running at 100 Hz with heavily reduced logging we can run at a minimal rate, log at full rate, and catch relevant changes immediately
2021-01-16 14:20:54 -05:00

43 lines
497 B
Bash

#!/bin/sh
#
# Standard startup script for onboard sensor drivers.
#
if ms5611 -s start
then
fi
# Blacksheep telemetry
if bst start -X
then
fi
board_adc start
system_power start
if sdp3x_airspeed start -X
then
fi
if ms5525_airspeed start -X
then
fi
if ms4525_airspeed start -X
then
fi
if ets_airspeed start -X
then
fi
if lightware_laser_i2c start
then
fi
# Wait 20 ms for sensors (because we need to wait for the HRT and work queue callbacks to fire)
usleep 20000
if sensors start
then
fi