This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--This example configured for E46 CAN | |
-- Automatically starts logging with engine 'on' (RPM triggered) | |
--how frequently we poll for CAN messages | |
tickRate = 30 | |
--the CAN baud rate | |
CAN_baud = 500000 | |
--CAN channel to listen on. 0=first CAN channel, 1=second | |
CAN_chan = 0 | |
--add your virtual channels here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
setTickRate(30) | |
function encodeWheel(value) | |
low_byte = bit.band(value, 0xFF) | |
high_byte = bit.rshift(bit.band(value, 0x1F00), 5) | |
return low_byte, high_byte | |
end | |
lf_wheel = 0 | |
rf_wheel = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--This example configured for E46 CAN | |
-- Automatically starts logging with engine 'on' (RPM triggered) | |
--how frequently we poll for CAN messages | |
tickRate = 30 | |
--the CAN baud rate | |
CAN_baud = 500000 | |
--CAN channel to listen on. 0=first CAN channel, 1=second | |
CAN_chan = 0 | |
--add your virtual channels here |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--this script adequately simulates varying speeds and periodic pit stops | |
--disable all GPS channels | |
--disable lap timing | |
dist = 0 | |
speed = 30 | |
speedDir = 0 | |
maxSpeedDir = 2 | |
minSpeedDir = -2 | |
lapCount = 0 | |
currentLap = 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--RPM simulator! | |
rpm = 0 | |
rpmDir = 100 | |
maxRpm = 10000 | |
rpmId = addChannel("RPM", 10, 0, 0, 10000) | |
setTickRate(50) | |
function onTick() | |
setChannel(rpmId, rpm) | |
rpm=rpm + rpmDir |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fuel2Id = addChannel("Fuel2", 25, 2, 0,10,"%") | |
--change this to make a bigger averaging window | |
--300 = 10 seconds averaging at 30Hz tick rate | |
maxAvg = 300 | |
fuelAvg={} | |
fuel2Index = 1 | |
function updateFuel2(value) | |
local i |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"rcpCfg": { | |
"analogCfg": { | |
"0": { | |
"alpha": 1.0, | |
"map": { | |
"raw": [ | |
0.0, | |
1.25, | |
2.5, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tires = 4 | |
tireZones = 4 | |
tirePrefixes = {'TireTmpFL', 'TireTmpFR', 'TireTmpRL', 'TireTmpRR'} | |
tireValues = {} | |
tireIds = {} | |
minTireVal = 0 | |
maxTireVal = 300 | |
brakes = 4 | |
brakeZones = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Note, If 2.10.2 firmware, AccelX and AccelY need to be inverted in the RCP configuration. | |
tires = 4 | |
tireZones = 4 | |
tirePrefixes = {'TireTmpLF', 'TireTmpRF', 'TireTmpLR', 'TireTmpRR'} | |
tireValues = {} | |
tireIds = {} | |
minTireVal = 0 | |
maxTireVal = 300 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Note, If 2.10.2 firmware, AccelX and AccelY need to be inverted in the RCP configuration. | |
tires = 4 | |
tireZones = 4 | |
tirePrefixes = {'TireTmpLF', 'TireTmpRF', 'TireTmpLR', 'TireTmpRR'} | |
tireValues = {} | |
tireIds = {} | |
minTireVal = 0 | |
maxTireVal = 300 |
OlderNewer