ROMFS:Removed FMUv1 from rcS etal

This commit is contained in:
David Sidrane
2017-08-10 08:31:54 -10:00
committed by Daniel Agar
parent c0bff500fe
commit 62a2351a72
5 changed files with 133 additions and 257 deletions

View File

@@ -1,27 +1,20 @@
#!nsh
#
# Standard startup script for PX4FMU v1, v2, v3, v4 onboard sensor drivers.
# Standard startup script for PX4FMU v2, v3, v4 onboard sensor drivers.
#
if ver hwcmp PX4FMU_V1
# Configure all I2C buses to 100 KHz as they
# are all external or slow
fmu i2c 1 100000
fmu i2c 2 100000
if ms5611 -s start
then
if ms5611 start
then
fi
else
# Configure all I2C buses to 100 KHz as they
# are all external or slow
fmu i2c 1 100000
fmu i2c 2 100000
fi
if ms5611 -s start
then
fi
# Blacksheep telemetry
if bst start
then
fi
# Blacksheep telemetry
if bst start
then
fi
if adc start
@@ -116,39 +109,6 @@ then
fi
fi
if ver hwcmp PX4FMU_V1
then
# FMUv1
if mpu6000 start
then
fi
if l3gd20 start
then
fi
# MAG selection
if param compare SENS_EXT_MAG 2
then
if hmc5883 -C -I start
then
fi
else
# Use only external as primary
if param compare SENS_EXT_MAG 1
then
if hmc5883 -C -X start
then
fi
else
# auto-detect the primary, prefer external
if hmc5883 start
then
fi
fi
fi
fi
if ver hwcmp MINDPX_V2
then
# External I2C bus