Minor tweaks

This commit is contained in:
Timur Iskhodzhanov 2021-06-13 18:59:36 -07:00
parent bdbbc59ec8
commit fcb1966b8f
1 changed files with 11 additions and 3 deletions

View File

@ -18,14 +18,22 @@ Engine RPM | 320 | `C + (D & 0x3f) * 256` |
Coolant temperature | 864 | `D - 40` | Coolant temperature | 864 | `D - 40` |
Engine oil temperature | 864 | `C - 40` | Engine oil temperature | 864 | `C - 40` |
Here are a few data channels that might be useful for more detailed analysis, Below is a table with a few more data channels that might be useful for more
but due to limited Bluetooth bandwidth, adding them might affect the update rate detailed analysis. When adding more channels, be aware that it might negatively
of the more essential channels: affect the update rate of the more essential channels, due to limited Bluetooth
bandwidth. However, the communication protocol in RaceChrono is smart enough to
optimize Bluetooth usage if multiple channels share the same PID. As a general
rule, if a new channel has the same PID as an existing channel (such as
"Throttle position" using the same PID 320 as "Accelerator position"), then
adding it should not affect the update rates. Adding a channel based on
a new PID (such as "Wheel speed FL") will likely affect the update rates of all
other channels.
Channel name | PID | Equation | Notes Channel name | PID | Equation | Notes
------------ | --- | -------- | ----- ------------ | --- | -------- | -----
Brake pressure | 209 | `C * 100` | Not sure about the units / multiplier yet. Brake pressure | 209 | `C * 100` | Not sure about the units / multiplier yet.
Clutch position | 320 | `B & 0x80 / 1.28` | Only 0% and "not 0%", unfortunately. Clutch position | 320 | `B & 0x80 / 1.28` | Only 0% and "not 0%", unfortunately.
Gear | 321 | `(G & 0xf) * (1 - (min(G & 0xf, 7)) / 7)` | Car calculates it based on speed, RPM and clutch position. It's pretty slow. I really doubt it's worth wasting one PID for this channel. It's not that hard to see which gear you're in based on speed and RPM in data.
Throttle position | 320 | `G / 2.55` | This is the throttle *valve*, not pedal. Throttle position | 320 | `G / 2.55` | This is the throttle *valve*, not pedal.
Lateral acceleration | 208 | `bytesToIntLe(raw, 6, 1) * 0.2` | Data is noisy. Lateral acceleration | 208 | `bytesToIntLe(raw, 6, 1) * 0.2` | Data is noisy.
Longitudinal acceleration | 208 | `bytesToIntLe(raw, 7, 1) * -0.1` | Data is noisy. Longitudinal acceleration | 208 | `bytesToIntLe(raw, 7, 1) * -0.1` | Data is noisy.