mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-20 17:53:34 +08:00
refactor hmc5883: use driver base class
Removes the calibration on startup, as these values were overwritten by the system calibration values anyway. So the only difference is that if all calibration scales were equal to 1, the driver startup would have failed.
This commit is contained in:
@@ -8,12 +8,12 @@ rgbled start -I
|
||||
adc start
|
||||
|
||||
# External I2C bus
|
||||
hmc5883 -C -T -X start
|
||||
hmc5883 -T -X start
|
||||
lis3mdl -X start
|
||||
ist8310 -X start
|
||||
|
||||
# Internal I2C bus
|
||||
hmc5883 -C -T -I -R 4 start
|
||||
hmc5883 -T -I -R 4 start
|
||||
|
||||
# Internal SPI bus ICM-20608-G
|
||||
mpu6000 -s -T 20608 start
|
||||
|
||||
@@ -8,13 +8,13 @@ rgbled start -I
|
||||
adc start
|
||||
|
||||
# External I2C bus
|
||||
hmc5883 -C -T -X start
|
||||
hmc5883 -T -X start
|
||||
lis3mdl -X start
|
||||
ist8310 -X start
|
||||
qmc5883 -X start
|
||||
|
||||
# Internal I2C bus
|
||||
hmc5883 -C -T -I -R 4 start
|
||||
hmc5883 -T -I -R 4 start
|
||||
|
||||
# Internal SPI bus ICM-20608-G
|
||||
mpu6000 -s -T 20608 start
|
||||
|
||||
@@ -15,7 +15,7 @@ fmu sensor_reset 50
|
||||
|
||||
|
||||
# External I2C bus
|
||||
hmc5883 -C -T -X start
|
||||
hmc5883 -T -X start
|
||||
lis3mdl -X start
|
||||
ist8310 -X start
|
||||
qmc5883 -X start
|
||||
@@ -32,7 +32,7 @@ then
|
||||
fi
|
||||
|
||||
# hmc5883 internal SPI bus is rotated 90 deg yaw
|
||||
if ! hmc5883 -C -T -S -R 2 start
|
||||
if ! hmc5883 -T -S -R 2 start
|
||||
then
|
||||
# lis3mdl internal SPI bus is rotated 90 deg yaw
|
||||
lis3mdl start
|
||||
|
||||
@@ -20,7 +20,7 @@ mpu9250 -R 2 start
|
||||
lis3mdl -R 0 start
|
||||
|
||||
# Possible external compasses
|
||||
hmc5883 -C -T -X start
|
||||
hmc5883 -T -X start
|
||||
qmc5883 -X start
|
||||
|
||||
# RM3100
|
||||
|
||||
@@ -25,7 +25,7 @@ bmi055 -G -R 10 -s start
|
||||
|
||||
# Possible external compasses
|
||||
ist8310 -X start
|
||||
hmc5883 -C -T -X start
|
||||
hmc5883 -T -X start
|
||||
qmc5883 -X start
|
||||
lis3mdl -X start
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ bmi088 -G -R 12 start
|
||||
|
||||
# Possible external compasses
|
||||
ist8310 -X start
|
||||
hmc5883 -C -T -X start
|
||||
hmc5883 -T -X start
|
||||
qmc5883 -X start
|
||||
|
||||
# Possible internal compass
|
||||
|
||||
Reference in New Issue
Block a user