mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-19 23:28:32 -04:00
e232543fca
We need to check the AK8963's id before anything else Here we are reordering the calls to _calibrate() and _check_id(). After that we don't need to read and write again the AK8963_CNTL1 register. While at it do some renames as well: - _configure() -> _setup_mode(): since now there's a _bus->configure() it became confusing what actually it's doing. - make error messages say what we were actually trying to do but couldn't. Also remove PSTR since this is linux-only. - start_conversion() -> start_measurements(): We are instructing the bus to start to get the samples, not to tell the chip to start an analog->digital conversion like in other sensors. |
||
---|---|---|
.. | ||
examples/AP_Compass_test | ||
AP_Compass_AK8963.cpp | ||
AP_Compass_AK8963.h | ||
AP_Compass_Backend.cpp | ||
AP_Compass_Backend.h | ||
AP_Compass_HIL.cpp | ||
AP_Compass_HIL.h | ||
AP_Compass_HMC5843.cpp | ||
AP_Compass_HMC5843.h | ||
AP_Compass_PX4.cpp | ||
AP_Compass_PX4.h | ||
AP_Compass.h | ||
Compass_learn.cpp | ||
Compass.cpp | ||
Compass.h | ||
keywords.txt |