
45
The enumerated type
EfdSensors
defines the finger mapping for each
sensor.
void fdSetSensorRawAll(fdGlove *pFG, unsigned short *pData)
Forces the raw value for all the sensors.
Return value
None.
Parameters
pFG
Pointer to a glove device. This is the value returned by
fdOpen()
.
pData
Pointer to an array of 16-bit integers that will contain the raw sensor values. The
size of the array must always match the value returned by
fdGetNumSensors()
.
Remarks
Currently the raw sensor samples are all 12 bit unsigned values. The range is
therefore from 0 to 4095. The enumerated type
EfdSensors
defines the finger
mapping for each sensor. Forcing a sensor value will result in a raw and scaled
output other than the default zero. Values that can be mapped will be
overwritten, rendering the forced value void.
void fdSetSensorRaw(fdGlove *pFG, int nSensor, unsigned
short nRaw)
Forces the raw value for a specific sensor.
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.
nRaw
16 bit raw value of the sensor. If the sensor is unmapped, the scaling
calculations will proceed as normal.
Remarks
The enumerated type
EfdSensors
defines the finger mapping for each
sensor. This function is only useful for sensors that cannot be mapped by a
specific hardware device. Forcing a sensor value will result in a raw and scaled
output other than the default zero. Values that can be mapped will be
overwritten, rendering the forced value void.