Search found 4 matches

by SportRotary
Tue May 07, 2019 10:50 pm
Forum: Lua Scripting
Topic: Re-scale/ID CAN data to drive gauge cluster
Replies: 5
Views: 2035

Started it up today and confirmed that everything is working properly. This script not only runs the gauge cluster as mentioned; but it also sends the proper CAN data to the electric power steering controller for that to work. Confirmed today that that is working also!
by SportRotary
Tue May 07, 2019 2:36 am
Forum: Lua Scripting
Topic: Re-scale/ID CAN data to drive gauge cluster
Replies: 5
Views: 2035

I think you want to use getChannel() as defined here in the API: https://wiki.autosportlabs.com/RaceCapturePro_Lua_Scripting#getChannel.28_Channel_ID_or_name_.29 Ah ha! I tried that before but wasn't having any luck. The reason was that my mapped channels were @ 10hz or 1hz, but the lua script was ...
by SportRotary
Mon May 06, 2019 11:57 pm
Forum: Lua Scripting
Topic: Re-scale/ID CAN data to drive gauge cluster
Replies: 5
Views: 2035

For reference, this is the script I wrote to manually control the RX-8 gauge cluster: setTickRate(25) function onTick() RPMreal = 1000 -- rpm input RPMscale = (RPMreal)*3.85 -- scale to what RX8 canbus is expecting RPML = bit.band(RPMscale, 0xFF) -- mask out high byte...
by SportRotary
Mon May 06, 2019 5:19 pm
Forum: Lua Scripting
Topic: Re-scale/ID CAN data to drive gauge cluster
Replies: 5
Views: 2035

Re-scale/ID CAN data to drive gauge cluster

I have an RX-8 with a 13b-REW engine swap (FD engine) and Megasquirt ECU. I'm trying to use my RaceCapture/Track MK2 to drive the OEM RX-8 gauge cluster which uses CAN data for RPM, speed, coolant temp, and oil pressure. I need the Lua script to: 1. Receive CAN data from the Megasquirt and store as ...