move fmu-v4 init to rc.board

This commit is contained in:
Daniel Agar
2018-11-30 14:05:31 -05:00
parent 25799c6e75
commit d940f500f6
5 changed files with 96 additions and 106 deletions

View File

@@ -1,6 +1,6 @@
#!nsh
#
# Standard startup script for PX4FMU v2, v3, v4 onboard sensor drivers.
# Standard startup script for onboard sensor drivers.
#
# Configure all I2C buses to 100 KHz as they
@@ -82,33 +82,6 @@ then
fi
fi
if ver hwcmp PX4_FMU_V4
then
# External I2C bus
if hmc5883 -C -T -X start
then
fi
if lis3mdl -R 2 start
then
fi
# Internal SPI bus is rotated 90 deg yaw
if hmc5883 -C -T -S -R 2 start
then
fi
# Internal SPI bus ICM-20608-G is rotated 90 deg yaw
if mpu6000 -R 2 -T 20608 start
then
fi
# Internal SPI bus mpu9250 is rotated 90 deg yaw
if mpu9250 -R 2 start
then
fi
fi
if ver hwcmp AIRMIND_MINDPX_V2
then
# External I2C bus