; GoldenEvo.com logcfg.txt
;  by Michael Golden
;
; donations at Golden at GoldenEvo.com

; Golden 2008 EDM v1 EVOX 

;----------------Debug Output----------------
; Uncomment the line below to minimize the information written to logcfg.out.
; This will greatly decrease the startup time to begin logging if you already
; have a working logcfg.txt without any problems.
;
; debug=noout

;----------------MRMACAN EvoX----------------
; log channel settings
type=mrmacan

;-------------Parameters-------------
;*** ByteRPM ***
paramname=RPM2
paramid=0x80873E
databits=16
scalingrpn=x,3.90625,*

;*** Barometer ***
paramname=Baro
paramid=0x80A8F9
scalingrpn=x,0.07251887,*

;*** PSIG ***
paramname=PSIG
paramid=0x808712
databits=16
scalingrpn=x,0.04824345,*,14.5,-

;*** PSIG Omni ***
;paramname=PSIG_Omni
;paramid=0x808712
;databits=16
;scalingrpn=x,0.058575,*,14.2,-

;*** Load ***
paramname=Load
paramid=0x808766
databits=16
scalingrpn=x,0.3125,*

;*** TimingAdv ***
paramname=TimingAdv
paramid=0x8089FF
scalingrpn=x,20,-

;*** Knock Sum ***
paramname=KnockSum
paramid=0x808A43

;*** TPS ***
paramname=TPS
paramid=0x8086F1
scalingrpn=x,0.392157,*

;*** Active WGDC ***
paramname=WGDC_Active
paramid=0x808B4B
scalingrpn=x,0.5,*

;*** IPW ***
paramname=IPW
paramid=0x80A934
databits=16
scalingrpn=x,0.001,*

;*** MAFCalcs ***
paramname=MAFCalcs
paramid=0x808F58
databits=32
scalingrpn=x,0.006103515625,*

;*** MAPCalcs ***
paramname=MAPCalcs
paramid=0x8087AE
databits=16
scalingrpn=x,0.006103515625,*

;*** Load (MIVEC) and (Timing if IAT GT 75F) ***
paramname=LoadMIVEC
paramid=0x80876C
databits=16
scalingrpn=x,0.3125,*

;*** WGDC Correction ***
paramname=WGDCCorr
paramid=0x808B49
scalingrpn=x,0.5,*,64,-

;*** Accel Pedal Position ***
paramname=APP
paramid=0x8094F9
scalingrpn=x,32,-,0.5059,*

;*** Manifold Air Temp ***
paramname=MAT
paramid=0x808657
scalingrpn=x,1.8,*,40,-

;*** Coolant Temp ***
paramname=ECT
paramid=0x808637
scalingrpn=x,1.8,*,40,-

;*** Intake Air Temp ***
paramname=IAT
paramid=0x808651
scalingrpn=x,1.8,*,40,-

;*** Speed ***
paramname=Speed
paramid=0x8087DF
scalingrpn=x,1.243,*

;*** MAF Volts ***
paramname=MAF
paramid=0x808F48
databits=16
scalingrpn=x,0.004883,*

;*** STFT ***
paramname=STFT
paramid=0x808890
scalingrpn=x,0.1953125,*,25,-

;*** LTFT idle ***
paramname=IdleLTFT
paramid=0x804573
scalingrpn=x,0.1953125,*,25,-

;*** LTFT Cruise ***
paramname=CruiseLTFT
paramid=0x804575
scalingrpn=x,0.1953125,*,25,-

;*** LTFT In Use ***
paramname=CurrentLTFT
paramid=0x8088A1
scalingrpn=x,0.1953125,*,25,-

;*** Air/Fuel Ratio (Map) ***
paramname=AFRMAP
paramid=0x8088ED
scalingrpn=1881.6,x,/

;*** Front O2 ***
paramname=FrontO2
paramid=0x808661
scalingrpn=x,0.01952,*

;*** Rear O2 ***
paramname=O2Sensor2
paramid=0x808665
scalingrpn=x,0.01952,*

;*** Battery Level ***
paramname=Battery
paramid=0x8086E7
scalingrpn=x,0.07333,*

;*** InVVT (target) ***
paramname=InVVTtarget
paramid=0x809422
databits=16
scalingrpn=4096,x,-,0.01953125,*

;*** InVVT (actual) ***
paramname=InVVTactual
paramid=0x80945A
databits=16
scalingrpn=4096,x,-,0.01953125,*

;*** ExVVT (target) ***
paramname=ExVVTtarget
paramid=0x80942E
databits=16
scalingrpn=4096,x,-,0.01953125,*

;*** ExVVT (actual) ***
paramname=ExVVTactual
paramid=0x809466
databits=16
scalingrpn=4096,x,-,0.01953125,*

;*** MAF Hz ***
paramname=MAFHz
paramid=0x8087D3
scalingrpn=x,6.25,*

;*** knock_adc_processed ***
;paramname=knock_adc_processed
;paramid=0x808A49

;*** knock_base ***
paramname=knock_base
paramid=0x80A92B

;*** knock_var ***
paramname=knock_var
paramid=0x80A927

;*** knock_change ***
paramname=knock_change
paramid=0x80A92D

;*** knock_dynamics ***
paramname=knock_dynamics
paramid=0x808A57

;*** knock_flag ***
paramname=knock_flag
paramid=0x80812D

;*** Cruise Light ***
;paramname=CruiseLight
;paramid=0x8045C5


;--------------------------------

type=calc

               
paramname=LogEntryDate  ; Dummy entry - Designed to produce an EvoScan style format
                        ; that can be loaded into "Log and Power Graph" without (much)
scalingrpn=0            ; reformatting.

paramname=LogEntryTime  ; Dummy entry
scalingrpn=0

paramname=LogNotes      ; Dummy entry
scalingrpn=0

paramname=Custom        ; Dummy entry - EvoScan seems to need this at the end
scalingrpn=0


;----------------adc-----------------
; log from built in ADC channels
; on newer subarus pin 8 is connected to the ignition voltage
; paramid is pin number on OBD connector
; values are pre-scaled to millivolt

;type=adc
;paramname=AFR
;paramid=12
			
;scalingrpn=x,0.002375,*,7.815,+    ; here we scale to volts


;-------------Triggers---------------
;
; Note that parameters must be previously defined
; before defining triggers using them.
;
; Triggers allow you to control when logging starts and stops.
; This example sets up triggers such that logging only occurs
; when the cruise control is on.
;
; Triggers consist of some evaluation of the form [trigparam] [condition] [value]
; and a resulting action which is done if the evaluation is true.

;paramname=CruiseLight
;paramid= 0x8045C5
;databits=1
;offsetbits=5
;isvisible=0
;priority=2

;conditionrpn = CruiseLight,1,==
;action = start

;conditionrpn = CruiseLight,0,==
;action = stop


;----------------Inno----------------
; Uncomment the lines with 2 semicolons ;;
;;type=inno
; Log from an Innovate MTS bus via the 3/32" jack.
; Multiple LC-1 and other MTS devices (e.g. TC-4) are supported.
;
; Each MTS parameter has a special parameter ID:
;
; paramid   parameter
; 0x0101    LC-1 #1 lambda
; 0x0102    LC-1 #1 AFR
; 0x0201    LC-1 #2 lambda
; 0x0202    LC-1 #2 AFR
; 0x0301    LC-1 #3 lambda
; 0x0302    LC-1 #4 AFR
;           (etc)
;
; 0x0001    aux #1 data (e.g. TC-4 #1 channel 1)
; 0x0002    aux #2 data (e.g. TC-4 #1 channel 2)
; 0x0003    aux #3 data (e.g. TC-4 #1 channel 3)
; 0x0004    aux #4 data (e.g. TC-4 #1 channel 4)
; 0x0005    aux #5 data (e.g. TC-4 #2 channel 1)
;           (etc)

; The LC-1 parameters are already scaled correctly and require no scalingrpn setting.
; However, the LC-1 is known to lose its stored AFR multiplier, so we recommend calculating
; AFR from lambda like this.

;;paramname = mylc1.afr
;;paramid = 0x0101       ; Get lambda from first LC-1
;;scalingrpn = x,14.7,*  ; Scale to an AFR

; Since the MTS bus does not describe the contents of the aux channels, you need to know what they are
; and how to scale them. In this example we assume you have a TC-4 connected and you want to view the
; thermocouple readings in celsius, two of which are in the EGT mode, two in CHT mode.

;paramname = mytc4.egt1
;paramid = 0x0001
;scalingrpn = x,1.06842619,*

;paramname = mytc4.egt2
;paramid = 0x0002
;scalingrpn = x,1.06842619,*

;paramname = mytc4.cht1
;paramid = 0x0003
;scalingrpn = x,0.293255131,*

;paramname = mytc4.cht2
;paramid = 0x0004
;scalingrpn = x,0.293255131,*



