Simulate lap data?

Discussion on the Lua Scripting capabilities for RaceCapture/Pro. Also see the <a href="http://autosportlabs.net/RaceCapturePro_Lua_Scripting">Lua Scripting Guide</a>

Moderators: JeffC, stieg

Post Reply
thoraxe
Posts: 47
Joined: Wed Dec 14, 2016 2:29 am
Location: Atlanta, GA
Contact:

Simulate lap data?

Post by thoraxe »

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] viewtopic.php?t=6143
[2] https://wiki.autosportlabs.com/RaceCapt ... Statistics

thoraxe
Posts: 47
Joined: Wed Dec 14, 2016 2:29 am
Location: Atlanta, GA
Contact:

Post by thoraxe »

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.

brentp
Site Admin
Posts: 6282
Joined: Wed Jan 24, 2007 6:36 am

Post by brentp »

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

thoraxe
Posts: 47
Joined: Wed Dec 14, 2016 2:29 am
Location: Atlanta, GA
Contact:

Post by thoraxe »

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.

Post Reply