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.
Definition General_compass.cpp:13
uint32_t id()
Reads the identification register.
Definition Hmc5883l.cpp:150
bool update()
Fetches and updates new data from the compass.
Definition Hmc5883l.cpp:119
bool is_mag_present()
Checks for the presence of the HMC5883L magnetometer on the I2C bus.
Definition Hmc5883l.cpp:170
Hmc5883l(const uint32_t init_port)
Creates a new Hmc5883l object.
Definition Hmc5883l.cpp:88
bool begin(const uint8_t init_i2c_address=DEFAULT_I2C_ADDRESS)
Configures the settings of the I2C bus and the HMC5883L magnetometer.
Definition Hmc5883l.cpp:100
Calibration values of a compass.
Definition General_compass.h:43