Page 1 of 1
Simulate lap data?
Posted: Sun May 26, 2019 5:39 pm
I am trying to program sending various lap data . Doing this would be much easier if I could simulate laps.
Is there a way to simulate lap data so that the various lap statistics  functions will do stuff?
 https://wiki.autosportlabs.com/RaceCapt ... Statistics
Posted: Wed May 29, 2019 12:55 am
I've found this script:
https://wiki.autosportlabs.com/RaceCapt ... ating_Laps
But I'm not sure that this script causes the lap statistics functions to work. Judging from the script's description it's used to help build dashboards for the app, but I need to develop dashboards that are outside of the RCP completely.
Posted: Mon Jun 03, 2019 2:15 pm
Are you trying to send lap data via a CAN bus message?
If so, you can take the lap time data (or whatever) and then scale it up to an unsigned 16 bit value (e.g. multiply by 1000) and then broadcast that in a CAN message, using two of the bytes in a message. At the other end, you would scale it back down to the actual value.
Posted: Tue Jun 04, 2019 12:43 pm
brentp wrote:Are you trying to send lap data via a CAN bus message?
I'm not only trying to send lap data. I'm also trying to send other derivatives of lap data via CAN.
This specific question is about how to / if it's possible to simulate the car moving so that the RCP will record lap information "on the bench". That way I can validate the lap data that's being sent on my dash, or via println statements in Lua.