Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 331 Bytes

getMagnetometerData.md

File metadata and controls

19 lines (14 loc) · 331 Bytes

getMagnetometerData()

This function reads the IMU magnetometer and returns the output in units of gauss.

Return Values

Returns a JSON-formatted string.
The output will data taken directly from the magnetometer.
Output is in units of Gauss

Example output

{
    "X":-123.45,
    "Y":12.5,
    "Z":50.1
}