This structure is used to describe the values reported by a specific
valuator.
STRUCTURE MEMBERS
gii_cmddata_getvalinfo fields are defined as follow:
number
Number of the queried valuator.
longname
A human-redable NULL terminated string identifying the valuator.
shortname
A NULL terminated abbreviated name for this valuator.
range
Contains the minimum, center and maximum values for this
valuator. Note that this range may change on some devices due to
calibration, but it is usually not expected that a device
recalibrates while in use. You should react gracefully to values
received from the valuator that are outside the specified range,
though.
phystype
Gives the physical quantity the device measures. The idea is to
report the thing the user actually controls. I.e. a Joystick
actually measures resistance, but should report GII_PT_ANGLE or
GII_PT_FORCE, as that is what the user does to the stick and
what results in the changed resistance.
SI_add, SI_mul, SI_div, SI_shift
Using these values, it is possible to give calibration data to
the application or to compute the actual floating point value (in
the unit expressed in phystype) reported by the valuator with
the following formula: