|
|
- Note
- Since these are all constexpr, they should be zero overhead in time & space (unless we take the address of one of them)
|
| static constexpr conversionFactor< uint16_t, uint8_t > | RPM_COARSE = { .scale=100U, .translate=0U } |
| | RPM stored as RPM/100. E.g. 2700 -> 27 -> 2700.
|
| |
| static constexpr conversionFactor< uint16_t, uint8_t > | RPM_MEDIUM = { .scale=10U, .translate=0U } |
| | RPM stored as RPM/10. E.g. 2700 -> 270 -> 2700.
|
| |
| static constexpr conversionFactor< uint16_t, uint8_t > | RPM_FINE = { .scale=5U, .translate=0U } |
| | RPM stored as RPM/5. E.g. 1300->260->1300.
|
| |
| static constexpr conversionFactor< uint32_t, uint8_t > | TIME_TENTH_MILLIS = { .scale=10000U, .translate=0U } |
| | Time values stored in 1/10th milliseconds I.e ms/10.
|
| |
| static constexpr conversionFactor< uint16_t, uint8_t > | TIME_TWENTY_MILLIS = { .scale=5U, .translate=0U } |
| | Time values stored in 20 milliseconds.
|
| |
| static constexpr conversionFactor< uint16_t, uint8_t > | TIME_TEN_MILLIS = { .scale=100U, .translate=0U } |
| | Time values stored in 10 milliseconds.
|
| |
| static constexpr conversionFactor< uint16_t, uint8_t > | MAP = { .scale=2U, .translate=0U } |
| | MAP values: kpa.
|
| |
| static constexpr conversionFactor< int16_t, uint8_t > | MAP_DOT = { .scale=10U, .translate=0U } |
| | MAP rate of change: kpa/s
|
| |
| static constexpr conversionFactor< int16_t, uint8_t > | TPS_DOT = { .scale=10U, .translate=0U } |
| | TPS rate of change: %/s.
|
| |
| static constexpr conversionFactor< uint16_t, uint8_t > | CRANKING_ENRICHMENT = { .scale=5U, .translate=0U } |
| | Cranking enrichment values range from 0% to 1275%.
|
| |
| static constexpr conversionFactor< int8_t, uint8_t > | IGNITION_ADVANCE_LARGE = { .scale=1U, .translate=-40 } |
| | Ignition values from the main spark table are offset 40 degrees downwards to allow for negative spark timing.
|
| |
| static constexpr conversionFactor< int8_t, uint8_t > | IGNITION_ADVANCE_SMALL = { .scale=1U, .translate=-15 } |
| | Ignition advance adjustments can use a smaller offset.
|
| |
| static constexpr conversionFactor< int16_t, uint8_t > | TEMPERATURE = { .scale=1U, .translate=-40 } |
| | All temperature measurements are stored offset by 40 degrees, to represent temperature ranges from -40 to 215.
|
| |
Integer conversions using scale & translate.