36 static const uint8_t DEFAULT_I2C_ADDRESS;
41 static const uint32_t I2C_FREQ;
46 unsigned long prev_getdata_millis;
51 double raw_to_uT (
const int16_t raw);
67 bool begin (
const uint8_t init_i2c_address = DEFAULT_I2C_ADDRESS);
General_compass()
Creates a General_compass object.
uint32_t id()
Reads the identification register.
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.
Hmc5883l(const uint32_t init_port)
Creates a new Hmc5883l object.
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 HMC5883L magnetometer.
bool begin(const uint8_t init_i2c_address=DEFAULT_I2C_ADDRESS)
Configures the settings of the I2C bus and the HMC5883L magnetometer.
Calibration values of a compass.
Definition General_compass.h:43