48
Pointer to a glove device. This is the value returned by
fdOpen()
.
nSensor
Index of the sensor that is being set. The value must lie in the range given by
the enumerated type
EfdSensors
, or alternatively from zero to the value
returned by
fdGetNumSensors()
minus one.
pUpper
and
pLower
Pointers to 16 bit unsigned integers containing the maximum and minimum raw
sensor values. Refer to section 6 for details.
Remarks
None.
void fdSetCalibrationAll(fdGlove *pFG, unsigned short
*pUpper, unsigned short *pLower)
Resets the current auto-calibration settings of the driver to user defined values.
Return value
None.
Parameters
pFG
Pointer to a glove device. This is the value returned by
fdOpen()
.
pUpper
and
pLower
Arrays of 16 bit unsigned integers containing the maximum and minimum raw
sensor values. The size of each array must always match the value returned by
fdGetNumSensors()
. Refer to section 6 for details.
Remarks
For unmapped sensors it would be sensible to set the upper and lower
calibration settings above and below the raw value forced with
fdSetSensorRaw()
and
fdSetSensorRawAll()
.
void fdSetCalibration(fdGlove *pFG, int nSensor, unsigned
short nUpper, unsigned short nLower)
Resets the current auto-calibration settings of the driver for a specific sensor to
user defined values.
Return value
None.
Parameters
pFG
Pointer to a glove device. This is the value returned by
fdOpen()
.
nSensor
Index of the sensor that is being set. The value must lie in the range given by
the enumerated type
EfdSensors
, or alternatively from zero to the value
returned by
fdGetNumSensors()
minus one.