msMagEnable (Function) |
Top Previous Next |
Enable/disable the magnetometer for data acquisition using msDataSet with msRead or through the data logger (see msLoggerCreate). The magnetometer measures the magnetic field impacting the device, and should be able to detect magnetic north/south in an environment without too much magnetic disturbances.
Input: Enable : BOOL (default TRUE) Enable or disable the magnetometer.
Returns: INT
Declaration FUNCTION msMagEnable : INT; Example: INCLUDE rtcu.inc BEGIN |