With my DIY CAN reader, I've achieved a ~50 Hz refresh rate on a bunch of data channels, including the data from accelerometers of my car's ESC system.
However, there are a couple of problems now:
1) The data from accelerometers is pretty noisy
2) The GPS data channel seems to have a ~0.5s delay compared to the CAN data
See example screenshot here: https://imgur.com/Vdjma0r
Colors: green — accelerator pedal; orange — brake pedal; cyan —combined acceleration from GPS; purples — combined acceleration calculated from the CAN bus data.
I'm thinking that both problems can be worked around by introducing a software 0.5s buffer, and by applying some averaging/filtering to the accelerometer data coming from the CAN bus.
However, is this the right strategy?
Or perhaps RaceChrono could offer some tools to
a) apply configurable averaging/filtering/smoothing for data channels
b) allow offsetting data from individual data sources
Should I just wait until such improvements are made, or if they are unlikely to arrive in the next few months, perhaps I should invest into the workaround described above, at least temporarily?
Let me know how to proceed with my project more effectively.