mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-30 12:38:33 -04:00
PX4: try to start both hmc5883 sensors
internal + external
This commit is contained in:
parent
21b0b3bc15
commit
a25eab4ada
@ -235,17 +235,17 @@ then
|
||||
fi
|
||||
else
|
||||
echo "Starting FMUv2 sensors"
|
||||
if hmc5883 start
|
||||
if hmc5883 -C -X start
|
||||
then
|
||||
echo "Using external magnetometer"
|
||||
if hmc5883 calibrate
|
||||
then
|
||||
echo "hmc5883 calibrate OK"
|
||||
echo "Have external hmc5883"
|
||||
else
|
||||
echo "hmc5883 calibrate failed"
|
||||
echo "hmc5883 calibrate failed" >> $logfile
|
||||
tone_alarm MSBBB
|
||||
echo "No external hmc5883"
|
||||
fi
|
||||
if hmc5883 -C -I -R 8 start
|
||||
then
|
||||
echo "Have internal hmc5883"
|
||||
else
|
||||
echo "No internal hmc5883"
|
||||
fi
|
||||
|
||||
# external MPU6000 is rotated YAW_180 from standard
|
||||
|
Loading…
Reference in New Issue
Block a user