
46
void fdGetSensorScaledAll(fdGlove *pFG, float *pData)
Obtains the most recent scaled (auto-calibrated) sensor values from the
currently connected glove.
Return value
None.
Parameters
pFG
Pointer to a glove device. This is the value returned by
fdOpen()
.
pData
Pointer to an array of floating point numbers that will contain the scaled sensor
values. The size of the array must always match the value returned by
fdGetNumSensors()
.
Remarks
The sensor range is a value from zero to the value defined by the
fdSetSensorMax()
and
fdSetSensorMaxAll()
functions. The glove
driver defaults to a range of [0...1]. The automatic calibration process is
described in section 6. The enumerated type
EfdSensors
defines the finger
mapping for each sensor.
float fdGetSensorScaled(fdGlove *pFG, int nSensor)
Obtains the most recent scaled (auto-calibrated) value for a specific sensor
from the currently connected glove.
Return value
Returns a floating point sensor value.
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.
Remarks
The sensor range is a value from zero to the value defined by the
fdSetSensorMax()
and
fdSetSensorMaxAll()
functions. The glove
driver defaults to a range of [0...1]. The automatic calibration process is
described in section 6. The enumerated type
EfdSensors
defines the finger
mapping for each sensor.
int fdGetNumGestures(fdGlove *pFG)
Obtains the number of available gestures that can be recognized by the glove
driver.