Main Content
readMagneticField
Description
[
returns one sample of the magnetic field data from the LSM9DS1 IMU sensor. The magnetic
field sample is returned as a 3-by-1 vector in μT (microtesla) along the X, Y, and Z axes.
The function also returns the magReadings
,timestamp
] = readMagneticField(sensor
)timestamp
at which MATLAB® receives the magnetic field data from the LSM9DS1 sensor. The
timestamp
output is optional.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2021a
See Also
lsm9ds1
| readAcceleration
| readAngularVelocity
| raspi
| scanI2CBus
| showPins
| Raspberry Pi Resource
Monitor App