Skip to content

Struct hal::magnetometer::read_t

ClassList > hal > magnetometer > read_t

Result from reading the accelerometer.

  • #include <magnetometer.hpp>

Public Attributes

Type Name
gauss x
Magnetic field strength in the X axis, relative to the device's reference frame.
gauss y
Magnetic field strength in the Y axis, relative to the device's reference frame.
gauss z
Magnetic field strength in the Z axis, relative to the device's reference frame.

Public Attributes Documentation

variable x

gauss hal::magnetometer::read_t::x;

variable y

gauss hal::magnetometer::read_t::y;

variable z

gauss hal::magnetometer::read_t::z;

The documentation for this class was generated from the following file libraries/include/libhal/magnetometer.hpp