readMagneticField
Read the magnetic field measured by the Magnetometer along the x, y and z axis
Syntax
Description
[
returns
the magnetic field measured by the Magnetometer along the x, y, and
the z axes with timestamp. The ‘raw’ argument is to
specify that the output should be a uncalibrated raw data.magFieldRaw
,Ts
]=
readMagneticField(mysh
,raw
)
The full scale range for the Magnetometer is +/- 4 gauss.
Sense HAT IMU sensor axis information is shown below.
Examples
Input Arguments
Output Arguments
Extended Capabilities
Version History
Introduced in R2016b