Skip to content

Instantly share code, notes, and snippets.

@kosenko-max
Last active April 10, 2016 11:36
Show Gist options
  • Save kosenko-max/57f7287d5d49745accf2c09c14543c5b to your computer and use it in GitHub Desktop.
Save kosenko-max/57f7287d5d49745accf2c09c14543c5b to your computer and use it in GitHub Desktop.
Config file for racecapture3.lua script
-- Copyright 2016 Mash at boostedforums.net
-- TODO: Make converter to single line string with , ; @ delimeters.
-- Address,PID,Priority (1)
-- ,Bits,Name,Min,Max,Unit,Mult(1),Add(0),Signed(0/1 - default 0)
-- ,Bits - skip number of bits forward
-- Length of request calculated automatically
-- Number of digits calculated from multiplicator
--========================= SST ================================================
0x7E1,0x33,10
--TODO: Check why -50/205 instead of -40/215
,8,SstTemp,-50,205,C
0x7E1,0x34,10
,8,SstMode,1,3
0x7E1,0x36,3
,8,Gear,0,11
0x7E1,0xA6
,16,SstSlip1,-8500,8500,RPM,1/2,0,1
,16,SstSlip2,-8500,8500,RPM,1/2,0,1
0x7E1,0xAA
,16,SstPress1,0,30,Bar,1/500,0,1
,16,SstPress2,0,30,Bar,1/500,0,1
0x7E1,0xA5
,16,SstTemp1,-40,215,C,1/4,0,1
,16,SstTemp2,-40,215,C,1/4,0,1
--========================= SST DIAGNOSTICS ====================================
0x7E1,0x38
,8,GearTarget,0,11
0x7E1,0xAB
,16,SstPosF1,-128,128,mm,1/256,0,1
,16,SstPosF2,-128,128,mm,1/256,0,1
0x7E1,0xAC
,16,SstPosF3,-128,128,mm,1/256,0,1
,16,SstPosF4,-128,128,mm,1/256,0,1
0x7E1,0xAD
,16,SstCurF1,0,2048,mA,1/16,0,1
,16,SstCurF2,0,2048,mA,1/16,0,1
0x7E1,0xAE
,16,SstCurCool,0,2048,mA,1/16,0,1
0x7E1,0xAF
,16,SstCurLPS,0,2048,mA,1/16,0,1
0x7E1,0xB0
,16,SstShaft1,0,8500,RPM,1/2,0,1
,16,SstShaft2,0,8500,RPM,1/2,0,1
0x7E1,0xB2
,16,SstDamper,0,8500,RPM,1/2,0,1
--TODO: More codes from CBF
-- https://drive.google.com/file/d/0B2hhlN7v68k8dnN6bnVUUkUxeTQ/view
-- 04: Engine torque
-- 06: Dynamic engine torque
-- 07: Expected engine torque
-- 08: Maximum possible engine torque
-- 09: Minimum engine torque
-- 12: Ambient temperature
-- 2F: Transmission loss torque
-- 2C: Output shaft speed
-- 42: Clutch torque: #1,#2,#1 desired,#2 desired
-- 43: Clutch pressure: #1,#2,#1 desired,#2 desired
-- 44: Acceleration and Deceleration m/sec2
-- B1: Output shaft speed
-- B3: Transmission oil temperature
-- B4: Mechatronic unit temperature
-- B5: Line pressure solenoid
-- B6: Clutch cooling flow solenoid
-- B7: Clutch shift pressure solenoid CSPS1
-- B8: Clutch shift pressure solenoid CSPS2
-- BA: Clutch 1 boost pressures
-- BB: Clutch 2 boost pressures
-- BC: Clutches stroke: 1 pressure,2 pressure,
-- 1 stroke delta pressures (1,2,3),2 stroke delta pressures (1,2,3)
-- C3: Valve CSPS1 and CSPS2 : #1 (0-12),#2 (0-12)
-- C4: Valve LPS - part 1: values 0-19
-- C5: Valve LPS - part 2: values 20-32
-- C6: Valve CCFS: Clutch cooling flow solenoid valve #1(0-8),#2(0-8),#3(0-2)
-- C7: Clutches gain: 1,2
--========================= WHEELS,STEERING AND BRAKES ========================
--TODO: Verify again
0x7E1,0x1B
,16,WheelFR,0,3000,RPM,1/2
,16,WheelRR,0,3000,RPM,1/2
,16,WheelFL,0,3000,RPM,1/2
,16,WheelRL,0,3000,RPM,1/2
0x784,0x02
,16,Steering,-420,420,deg,1/22.885,0,1
--TODO: Unrecognized or wrong shifts (compare to old version)
,32
--TODO: Check order
,16,BrakeMC,0,120,bar,1/100,0,1
,16,BrakeFL,0,120,bar,1/100,0,1
,16,BrakeFR,0,120,bar,1/100,0,1
,16,BrakeRL,0,120,bar,1/100,0,1
,16,BrakeRR,0,120,bar,1/100,0,1
--======================== TEPHRA X MOD V3 LOGGING =============================
0x7E0,0x805100
,16,Load,0,1000,load,10/32
,16,RPM,0,10000,rpm,1000/256
--Omni 4 BAR Sensor. Use 14.5037738/300 for stock one
,16,MAP,0,60,psi,19.3383650667/300
,16,MivecIn,-2.5,37.5,deg,-10/512,80
,16,MivecEx,-37.5,2.5,deg,-10/512,80
,16,IPW,0,32,ms,0.001
--SET OWN CALIBRATIONS
,8,AFR,8,18,afr,0.046872,7.3125
-- Tephra: Meh,if you are doing 255,who cares about logging speed:)
,8,Speed,0,255,kph
,8,Timing,-20,107,deg,1,-20
,8,KnockSum,0,255
,8,TPS,0,100,%,100/255
,8,WGDC,0,100,%,1/2
,8,ECT,-40,215,C,1,-40
,8,MAT,-40,215,C,1,-40
,8,IAT,-40,215,C,1,-40
,8,STFT,-25,25,%,100/512,-25
,8,LTFT,-25,25,%,100/512,-25
,8,MAF,0,5,V,5/255
,16,LoadMAP,0,1000,load,100/16384
,16,LoadMAF,0,1000,load,100/16384
,8,KnockBase,0,255
,8,KnockFilter,0,255
--========================== RAX MAIN DATA =====================================
0x7E0,0x805100
,8,Load,0,398,load,100/64
,8,IPW,0,25.5,ms,1/10
,8,AfrMap,8,20,afr,1/14.7/128
--SKIP XMod3 ones
--SET OWN CALIBRATIONS
--,8,AFR,8,20,afr,0.046872,7.3125
--,8,STFT,-25,25,%,100/512,-25
--,8,LTFT,-25,25,%,100/512,-25
,24
,8,LtftIdle,-25,25,%,100/512,-25
,8,LtftCruise,-25,25,%,100/512,-25
,8,LoadTiming,0,398,load,100/64
--SKIP XMod3 ones
--,7,Timing,-20,107,deg,1,-20
--,6,KnockSum,0,63
--,11,RPM,0,10000,rpm,1000/128
--TODO: Fix - check evoscan
--,9,MAP,0,60,psi,0.09200831631
,33
,7,Baro,0.45*14.5037738,1.725*14.5037738,psi,14.5037738/200,0.45*14.5037738
--SKIP XMod3 ones
--,8,WGDC,0,100,%,1/2
--,8,MAF,0,5,V,5/255
,16
,8,MivecInTar,-2.5,37.5,deg,10/64,-2.5
,8,MivecExTar,-37.5,2.5,deg,-10/64,2.5
--SKIP XMod3 ones
--,8,MivecIn,-2.5,37.5,deg,10/64,-2.5
--,8,MivecEx,-37.5,2.5,deg,-10/64,2.5
--,8,TPS,0,100,%,100/255
,24
--TODO: Calibrate with MUT3
,8,APP,0,100,%,1/2,-16
--SKIP XMod3 ones
--,8,IAT,-40,215,C,1,-40
,8
,8,WgdcCorr,-64,128,%,1/2
,8,SpeedH,0,330,kph,2
,8,EcuVolt,0,18.7,V,18.7/255
--SKIP XMod3 ones
--,8,ECT,-40,215,C,1,-40
--,8,MAT,-40,215,C,1,-40
--,8,LoadMAP,0,398,load,100/64
,24
,8,LoadImap,0,398,load,100/64
--SKIP XMod3 ones
--,8,LoadMAF,0,398,load,100/64
,8
,8,LoadChosen,0,398,load,100/64
--SET TO PROPER ADDRESS ACCORDING TO ROM
0x7E0,0x808661,2
,8,FrontO2,0,1,V,5/255
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment