readMagneticField
Read the magnetic field measured by the Magnetometer along the x, y and z axis
Add-On Required: This feature requires the MATLAB Support Package for Raspberry Pi Hardware add-on.
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 uncalibrated raw data.magField
,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