msLoggerAddMag (Function) |
Top Previous Next |
Add logging of magnetometer data to logger. Each set of magnetometer data in full, consists of 2 bytes per axis (X, Y and Z) stored in the buffer.
Input: Logger : SYSHANDLE A user provided handle to uniquely identify the logger. See SYSHANDLE page. This field is mandatory.
Downsample : UINT (default 1) Only collect a magnetometer data set after this amount of measurements, thus saving buffer space. Values 0 and 1 represent no downsampling.
LowRes : BOOL (default FALSE) If true, only store the most significant byte of each axis in the buffer.
Returns: INT
Declaration FUNCTION msLoggerAddMag : INT; Example: INCLUDE rtcu.inc |