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:
Beat Küng
2020-03-13 09:05:36 +01:00
committed by Daniel Agar
parent 8f3ba81c4a
commit 8ebde51648
23 changed files with 167 additions and 460 deletions

View File

@@ -6,11 +6,11 @@
adc start
# External I2C bus
hmc5883 -C -T -X start
hmc5883 -T -X start
qmc5883 -X start
# Internal I2C bus
hmc5883 -C -T -I -R 12 start
hmc5883 -T -I -R 12 start
mpu6000 -s -R 8 start
mpu9250 -s -R 8 start