mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-14 02:11:36 +08:00
- 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
43 lines
497 B
Bash
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
|