PX4-Autopilot/boards/svehicle/e2/init/rc.board_sensors
GC-20-20 66e73528a2
boards: add new SVehicle-E2 (#25578)
* boards: add new svehicle e2

* add SVehicle-E2 documentation

* Add new documents

* Subedit - shrink images

* Supplementary documentation based on discussion

---------

Co-authored-by: Hamish Willee <hamishwillee@gmail.com>
Co-authored-by: Andrew Brahim <35986980+dirksavage88@users.noreply.github.com>
2025-10-18 20:32:10 -04:00

35 lines
607 B
Bash

#!/bin/sh
#
# SVehicle E2 specific board sensors init
#------------------------------------------------------------------------------
if param compare -s ADC_ADS1115_EN 1
then
ads1115 start -X
board_adc start -n
else
board_adc start
fi
if param compare SENS_EN_INA228 1
then
# Start Digital power monitors
ina228 -X start
fi
bmi088 -A -R 4 -s -b 3 start
bmi088 -G -R 4 -s -b 3 start
icm42688p -R 6 -s start
# Internal SPI bus ICM-20649 (hard-mounted)
icm20649 -R 14 -s start
# Internal magnetometer on I2c
rm3100 -I -R 12 start
bmm150 -I -R 4 start
icp201xx -X start
icp201xx -I -a 0x64 start