You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
723 B
43 lines
723 B
#!/bin/sh
|
|
#
|
|
# board sensors init
|
|
#------------------------------------------------------------------------------
|
|
|
|
# Lidar-Lite on I2C
|
|
if param compare -s SENS_EN_LL40LS 2
|
|
then
|
|
ll40ls start -X
|
|
fi
|
|
|
|
# mappydot lidar sensor
|
|
if param compare -s SENS_EN_MPDT 1
|
|
then
|
|
mappydot start -X
|
|
fi
|
|
|
|
# mb12xx sonar sensor
|
|
if param greater -s SENS_EN_MB12XX 0
|
|
then
|
|
mb12xx start -X
|
|
fi
|
|
|
|
# Lightware i2c lidar sensor
|
|
if param greater -s SENS_EN_SF1XX 0
|
|
then
|
|
lightware_laser_i2c start -X
|
|
fi
|
|
|
|
# vl53l1x i2c distance sensor
|
|
if param compare -s SENS_EN_VL53L1X 1
|
|
then
|
|
vl53l1x start -X
|
|
fi
|
|
|
|
# compasses
|
|
hmc5883 -T -X -q start
|
|
ist8308 -X -q start
|
|
ist8310 -X -q start
|
|
iis2mdc -X -q start
|
|
lis3mdl -X -q start
|
|
qmc5883l -X -q start
|
|
rm3100 -X -q start
|
|
|