Magnetometer#
Hardware Interface#
Defined in namespace hal
#include <libhal/magnetometer.hpp>
-
class magnetometer#
Magnetic field strength sensing hardware abstraction interface.
Magnetometers are usually used for determining the strength of a magnetic field, or calculating compass headings. If the device that the magnetometer is mounted on, tends to move, or change its own orientation, then it is helpful to use an accelerometer or tilt sensor in order to determine appropriate heading for compass calculations.
Subclassed by hal::inert_magnetometer, hal::soft::inert_magnetometer
Public Functions
-
struct read_t#
Result from reading the accelerometer.
-
struct read_t#