diff --git a/ROMFS/px4fmu_common/init.d/rc.sensors b/ROMFS/px4fmu_common/init.d/rc.sensors index 14627b587a..e34c4a8d2d 100644 --- a/ROMFS/px4fmu_common/init.d/rc.sensors +++ b/ROMFS/px4fmu_common/init.d/rc.sensors @@ -14,9 +14,6 @@ then fmu i2c 1 100000 fmu i2c 2 100000 fi - - - adc start fi ############################################################################### diff --git a/ROMFS/px4fmu_common/init.d/rcS b/ROMFS/px4fmu_common/init.d/rcS index ffa1bc96db..c54dc8605c 100644 --- a/ROMFS/px4fmu_common/init.d/rcS +++ b/ROMFS/px4fmu_common/init.d/rcS @@ -340,9 +340,9 @@ else fi unset BOARD_RC_SENSORS - battery_status start - sh /etc/init.d/rc.sensors + + battery_status start commander start fi diff --git a/boards/airmind/mindpx-v2/init/rc.board_sensors b/boards/airmind/mindpx-v2/init/rc.board_sensors index c881b43db1..73c25931a2 100644 --- a/boards/airmind/mindpx-v2/init/rc.board_sensors +++ b/boards/airmind/mindpx-v2/init/rc.board_sensors @@ -3,6 +3,8 @@ # Airmind Mindpx-v2 specific board sensors init #------------------------------------------------------------------------------ +adc start + # External I2C bus hmc5883 -C -T -X start qmc5883 -X start diff --git a/boards/auav/x21/init/rc.board_sensors b/boards/auav/x21/init/rc.board_sensors index 4788196bd9..9a2918b544 100644 --- a/boards/auav/x21/init/rc.board_sensors +++ b/boards/auav/x21/init/rc.board_sensors @@ -3,6 +3,7 @@ # AUAV/mRO x21 specific board sensors init #------------------------------------------------------------------------------ +adc start # External I2C bus hmc5883 -C -T -X start diff --git a/boards/av/x-v1/init/rc.board_sensors b/boards/av/x-v1/init/rc.board_sensors index c4e4d64f70..672d09d2ec 100644 --- a/boards/av/x-v1/init/rc.board_sensors +++ b/boards/av/x-v1/init/rc.board_sensors @@ -3,6 +3,7 @@ # av_x1-v1 specific board sensors init #------------------------------------------------------------------------------ +adc start adis16477 -R 8 start diff --git a/boards/bitcraze/crazyflie/init/rc.board_sensors b/boards/bitcraze/crazyflie/init/rc.board_sensors index 5858577085..0ee0f0edf1 100644 --- a/boards/bitcraze/crazyflie/init/rc.board_sensors +++ b/boards/bitcraze/crazyflie/init/rc.board_sensors @@ -3,6 +3,7 @@ # Bitcraze Crazyflie specific board sensors init #------------------------------------------------------------------------------ +adc start # Onboard I2C mpu9250 -R 12 start diff --git a/boards/holybro/kakutef7/init/rc.board_sensors b/boards/holybro/kakutef7/init/rc.board_sensors index 10a3bd4ba6..e5ff547d2b 100644 --- a/boards/holybro/kakutef7/init/rc.board_sensors +++ b/boards/holybro/kakutef7/init/rc.board_sensors @@ -3,6 +3,7 @@ # KakuteF7 specific board sensors init #------------------------------------------------------------------------------ +adc start # The default IMU is an ICM20689, but there might also be an MPU6000 if ! mpu6000 -R 12 -s start diff --git a/boards/intel/aerofc-v1/init/rc.board_sensors b/boards/intel/aerofc-v1/init/rc.board_sensors index 69fa34c123..1491e49e02 100644 --- a/boards/intel/aerofc-v1/init/rc.board_sensors +++ b/boards/intel/aerofc-v1/init/rc.board_sensors @@ -3,6 +3,7 @@ # intel aero specific board sensors init #------------------------------------------------------------------------------ +aerofc_adc start ms5611 -T 0 start mpu9250 -s -R 14 start @@ -11,7 +12,6 @@ mpu9250 -s -R 14 start hmc5883 -X start ist8310 -C -b 1 -R 4 start -aerofc_adc start ll40ls start i2c -a diff --git a/boards/modalai/fc-v1/init/rc.board_sensors b/boards/modalai/fc-v1/init/rc.board_sensors index 76d4a17955..7e93bd391d 100644 --- a/boards/modalai/fc-v1/init/rc.board_sensors +++ b/boards/modalai/fc-v1/init/rc.board_sensors @@ -3,6 +3,8 @@ # ModalAI FC-v1 specific board sensors init #------------------------------------------------------------------------------ +adc start + # Start Digital power monitors voxlpm -R start diff --git a/boards/mro/ctrl-zero-f7/init/rc.board_sensors b/boards/mro/ctrl-zero-f7/init/rc.board_sensors index c240ae8413..d0e6cbc696 100644 --- a/boards/mro/ctrl-zero-f7/init/rc.board_sensors +++ b/boards/mro/ctrl-zero-f7/init/rc.board_sensors @@ -3,6 +3,8 @@ # mRo Control Zero specific board sensors init #------------------------------------------------------------------------------ +adc start + # Internal ICM-20602 mpu6000 -R 10 -s -T 20602 start diff --git a/boards/nxp/fmuk66-v3/init/rc.board_sensors b/boards/nxp/fmuk66-v3/init/rc.board_sensors index d076478f5e..4e2c2540ba 100644 --- a/boards/nxp/fmuk66-v3/init/rc.board_sensors +++ b/boards/nxp/fmuk66-v3/init/rc.board_sensors @@ -3,6 +3,7 @@ # NXP fmuk66-v3 specific board defaults #------------------------------------------------------------------------------ +adc start # Possible external compasses hmc5883 -C -X start diff --git a/boards/omnibus/f4sd/init/rc.board_sensors b/boards/omnibus/f4sd/init/rc.board_sensors index d1ce743356..7881384234 100644 --- a/boards/omnibus/f4sd/init/rc.board_sensors +++ b/boards/omnibus/f4sd/init/rc.board_sensors @@ -3,6 +3,8 @@ # Omnibus F4SD specific board sensors init #------------------------------------------------------------------------------ +adc start + if ! mpu6000 -R 12 -s start then # some boards such as the Hobbywing XRotor F4 G2 use the ICM-20602 diff --git a/boards/px4/fmu-v2/init/rc.board_sensors b/boards/px4/fmu-v2/init/rc.board_sensors index bbd792ed65..4e831724f4 100644 --- a/boards/px4/fmu-v2/init/rc.board_sensors +++ b/boards/px4/fmu-v2/init/rc.board_sensors @@ -3,6 +3,8 @@ # PX4 FMUv2 specific board sensors init #------------------------------------------------------------------------------ +adc start + # External I2C bus hmc5883 -C -T -X start lis3mdl -X start diff --git a/boards/px4/fmu-v3/init/rc.board_sensors b/boards/px4/fmu-v3/init/rc.board_sensors index b75f8bc9da..cd7438e59d 100644 --- a/boards/px4/fmu-v3/init/rc.board_sensors +++ b/boards/px4/fmu-v3/init/rc.board_sensors @@ -3,6 +3,8 @@ # PX4 FMUv3 specific board sensors init #------------------------------------------------------------------------------ +adc start + # External I2C bus hmc5883 -C -T -X start lis3mdl -X start diff --git a/boards/px4/fmu-v4/init/rc.board_sensors b/boards/px4/fmu-v4/init/rc.board_sensors index c30a94aaf9..a52e19bdfe 100644 --- a/boards/px4/fmu-v4/init/rc.board_sensors +++ b/boards/px4/fmu-v4/init/rc.board_sensors @@ -3,6 +3,8 @@ # PX4 FMUv4 specific board sensors init #------------------------------------------------------------------------------ +adc start + # We know there are sketchy boards out there # as chinese companies produce Pixracers without # fully understanding the critical parts of the diff --git a/boards/px4/fmu-v4pro/init/rc.board_sensors b/boards/px4/fmu-v4pro/init/rc.board_sensors index 630720ae24..433b7ca51b 100644 --- a/boards/px4/fmu-v4pro/init/rc.board_sensors +++ b/boards/px4/fmu-v4pro/init/rc.board_sensors @@ -3,6 +3,8 @@ # PX4 FMUv4pro specific board sensors init #------------------------------------------------------------------------------ +adc start + # Internal SPI bus ICM-20608-G mpu6000 -R 2 -T 20608 start diff --git a/boards/px4/fmu-v5/init/rc.board_sensors b/boards/px4/fmu-v5/init/rc.board_sensors index 1d4bcd466c..574ed78395 100644 --- a/boards/px4/fmu-v5/init/rc.board_sensors +++ b/boards/px4/fmu-v5/init/rc.board_sensors @@ -3,6 +3,8 @@ # PX4 FMUv5 specific board sensors init #------------------------------------------------------------------------------ +adc start + # Internal SPI bus ICM-20602 mpu6000 -R 8 -s -T 20602 start diff --git a/boards/px4/fmu-v5x/init/rc.board_sensors b/boards/px4/fmu-v5x/init/rc.board_sensors index 0c09a7d7ab..61cf6050dc 100644 --- a/boards/px4/fmu-v5x/init/rc.board_sensors +++ b/boards/px4/fmu-v5x/init/rc.board_sensors @@ -3,6 +3,8 @@ # PX4 FMUv5X specific board sensors init #------------------------------------------------------------------------------ +adc start + # Start Digital power monitors ina226 -b 1 start ina226 -b 2 start diff --git a/boards/uvify/core/init/rc.board_sensors b/boards/uvify/core/init/rc.board_sensors index 3422582183..5220c85749 100644 --- a/boards/uvify/core/init/rc.board_sensors +++ b/boards/uvify/core/init/rc.board_sensors @@ -3,6 +3,8 @@ # UVify UVF4 specific board sensors init #------------------------------------------------------------------------------ +adc start + # Internal SPI ms5611 -T 0 -s start