There are two relevant files that should have the same data static/constants.py and static/constants.json.
For this documenation we will only reference the constants.py file.
This file is used to keep a running dictionary of available PIDs and supporting information for each PID. For example:
"0x0B": {
'name': 'INTAKE_MANIFOLD_ABSOLUTE_PRESSURE', 'shortName' : 'MAP', 'decimals' : '0', 'units' : 'kPa',
'Min' : 0, 'Max' : 255
},
The above PID allows us to stash the following info:
Min/Max: Value ( This is important in setting the rotational step value ) tells use the expected range of values for this data point.
shortName: If a shortname value is provided then that is what will be displayed by default for the PID label.
decimals: Is used to determine how many decimal places should be rendered for the current value displayed.
units: The units of the data.