msGyrEnable (Function) |
Top Previous Next |
Configure and enable/disable the gyroscope for data acquisition using msDataSet with msRead or through the data logger (see msLoggerCreate). The gyroscope measures the angular rate of rotation of the device acting on each axis. Thus for a constant rotation of the device around an axis, a constant non-zero value should be measured for the given axis.
Input: Enable : BOOL (default TRUE) Enable or disable the gyroscope.
Resolution : INT (125, 250, 500, 1000) (default 125) The range of the measurements the device can measure in units of degrees per second. F.ex. the value 125 represents the range: [-125dps ; +125dps].
Returns: INT
Declaration FUNCTION msGyrEnable : INT; Example: INCLUDE rtcu.inc |