36 static const uint8_t DEFAULT_I2C_ADDRESS;
41 static const uint32_t I2C_FREQ;
46 double raw_to_uT (
const int16_t raw);
62 bool begin (
const uint8_t init_i2c_address = DEFAULT_I2C_ADDRESS);
General_compass()
Creates a General_compass object.
Definition General_compass.cpp:13
int16_t get_raw_temp()
Gets the raw temperature reading.
Definition Qmc5883l.cpp:119
Qmc5883l(const uint32_t init_port)
Creates a new Qmc5883l object.
Definition Qmc5883l.cpp:43
bool begin(const uint8_t init_i2c_address=DEFAULT_I2C_ADDRESS)
Configures the settings of the I2C bus and the QMC5883L magnetometer.
Definition Qmc5883l.cpp:55
bool update()
Fetches and updates new data from the compass.
Definition Qmc5883l.cpp:90
bool is_mag_present()
Checks for the presence of the HMC5883L magnetometer on the I2C bus.
Definition Qmc5883l.cpp:141
bool reset()
Software-resets the QMC5883L.
Definition Qmc5883l.cpp:81
uint8_t id()
Reads the identification register.
Definition Qmc5883l.cpp:131
Calibration values of a compass.
Definition General_compass.h:43