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.
int16_t get_raw_temp()
Gets the raw temperature reading.
Qmc5883l(const uint32_t init_port)
Creates a new Qmc5883l object.
bool begin(const uint8_t init_i2c_address=DEFAULT_I2C_ADDRESS)
Configures the settings of the I2C bus and the QMC5883L magnetometer.
bool update()
Fetches and updates new data from the compass.
bool is_mag_present()
Checks for the presence of the HMC5883L magnetometer on the I2C bus.
bool reset()
Software-resets the QMC5883L.
uint8_t id()
Reads the identification register.
bool begin(const Compass_cal_vals_t compass_cal_values, const uint8_t init_i2c_address=DEFAULT_I2C_ADDRESS)
Configures the settings of the I2C bus and the QMC5883L magnetometer.
Calibration values of a compass.
Definition General_compass.h:43