RegisterSearchFAQMemberlistUsergroupsLog in
Reply to topic Page 1 of 1
Simulate lap data?
Author Message
Reply with quote
Post Simulate lap data? 
I am trying to program sending various lap data [1]. 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 [2] functions will do stuff?

[1] https://forum.autosportlabs.com/viewtopic.php?t=6143
[2] https://wiki.autosportlabs.com/RaceCapturePro_Lua_Scripting#Lap_Statistics

View user's profile Send private message Visit poster's website
Reply with quote
Post  
I've found this script:

https://wiki.autosportlabs.com/RaceCapturePro_Lua_Scripting_Examples#Simulating_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.

View user's profile Send private message Visit poster's website
Reply with quote
Post  
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.


_________________
Brent Picasso
CEO and Founder, Autosport Labs
Facebook | Twitter
View user's profile Send private message Send e-mail
Reply with quote
Post  
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.

View user's profile Send private message Visit poster's website
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum