-- Dashboard Configurator Script -----------------------------------------------

-- StartDiagSuite - Version: 0.0.0.0
-- DateTime: 2023/12/05 - 03:06:37:360

-- PIDs Requests: --------------------------------------------------------------

--[[ Engine load percentage (Scale = 100/255) ]]
PR_1 = {	RemoteID = 2016,
		LocalID = 2024,
		SID = 1,
		DID = 4,
		Start = 0,
		Length = 1,
		Offset = 0,
		Scale = 0.39215
}
--[[ ECT ]]
PR_2 = {	RemoteID = 2016,
		LocalID = 2024,
		SID = 1,
		DID = 5,
		Start = 0,
		Length = 1,
		Offset = -40,
		Scale = 1
}
--[[ Engine RPM (Scale = 1/4) ]]
PR_3 = {	RemoteID = 2016,
		LocalID = 2024,
		SID = 1,
		DID = 12,
		Start = 0,
		Length = 2,
		Offset = 0,
		Scale = 0.25
}
--[[ Speed ]]
PR_4 = {	RemoteID = 2016,
		LocalID = 2024,
		SID = 1,
		DID = 13,
		Start = 0,
		Length = 1,
		Offset = 0,
		Scale = 1
}
--[[ IAT ]]
PR_5 = {	RemoteID = 2016,
		LocalID = 2024,
		SID = 1,
		DID = 15,
		Start = 0,
		Length = 1,
		Offset = -40,
		Scale = 1
}
--[[ MAF (Scale = 1/100) ]]
PR_6 = {	RemoteID = 2016,
		LocalID = 2024,
		SID = 1,
		DID = 16,
		Start = 0,
		Length = 2,
		Offset = 0,
		Scale = 0.01
}

-- Composite PIDs: -------------------------------------------------------------

PC_1 = pid.pidBegin(PR_1)
PC_2 = pid.pidBegin(PR_2)
PC_3 = pid.pidBegin(PR_3)
PC_4 = pid.pidBegin(PR_4)
PC_5 = pid.pidBegin(PR_5)
PC_6 = pid.pidBegin(PR_6)

-- Gauges (gauge configurations): ----------------------------------------------

GC_1 = {	Desc = "ELoad%",
		Units = "%",
		DigitVal = 0,
		ValMin = 0,
		ValMax = 100,
		DecNumb = 0,
		ZoneAColorID = "Green",
		ZoneBColorID = "Yellow",
		ZoneCColorID = "Red",
		ZoneBstart = 75,
		ZoneCstart = 90,
		AlarmMin = 0,
		AlarmMinOn = 0,
		AlarmMax = 90,
		AlarmMaxOn = 1
}
GC_2 = {	Desc = "ECT",
		Units = "°C",
		DigitVal = 0,
		ValMin = -40,
		ValMax = 215,
		DecNumb = 0,
		ZoneAColorID = "Green",
		ZoneBColorID = "Yellow",
		ZoneCColorID = "Red",
		ZoneBstart = 50,
		ZoneCstart = 130,
		AlarmMin = 0,
		AlarmMinOn = 0,
		AlarmMax = 130,
		AlarmMaxOn = 0
}
GC_3 = {	Desc = "Eng RPM",
		Units = "RPM",
		DigitVal = 0,
		ValMin = 0,
		ValMax = 16384,
		DecNumb = 0,
		ZoneAColorID = "None",
		ZoneBColorID = "None",
		ZoneCColorID = "None",
		ZoneBstart = 0,
		ZoneCstart = 0,
		AlarmMin = 0,
		AlarmMinOn = 0,
		AlarmMax = 0,
		AlarmMaxOn = 0
}
GC_4 = {	Desc = "Speed",
		Units = "Km/h",
		DigitVal = 0,
		ValMin = 0,
		ValMax = 255,
		DecNumb = 0,
		ZoneAColorID = "None",
		ZoneBColorID = "None",
		ZoneCColorID = "None",
		ZoneBstart = nil,
		ZoneCstart = nil,
		AlarmMin = nil,
		AlarmMinOn = 0,
		AlarmMax = nil,
		AlarmMaxOn = 0
}
GC_5 = {	Desc = "IAT",
		Units = "°C",
		DigitVal = 0,
		ValMin = -40,
		ValMax = 215,
		DecNumb = 0,
		ZoneAColorID = "None",
		ZoneBColorID = "None",
		ZoneCColorID = "None",
		ZoneBstart = nil,
		ZoneCstart = nil,
		AlarmMin = nil,
		AlarmMinOn = 0,
		AlarmMax = nil,
		AlarmMaxOn = 0
}
GC_6 = {	Desc = "MAF",
		Units = "g/s",
		DigitVal = 0,
		ValMin = 0,
		ValMax = 655.35,
		DecNumb = 0,
		ZoneAColorID = "Yellow",
		ZoneBColorID = "Green",
		ZoneCColorID = "Red",
		ZoneBstart = nil,
		ZoneCstart = nil,
		AlarmMin = nil,
		AlarmMinOn = 0,
		AlarmMax = nil,
		AlarmMaxOn = 0
}

-- Dashboard (binding Composite PIDs to Gauges): -------------------------------

pid.request(
	{GaugeID = 1, gConf = GC_1, pConf = PC_1},
	{GaugeID = 2, gConf = GC_2, pConf = PC_2},
	{GaugeID = 3, gConf = GC_3, pConf = PC_3},
	{GaugeID = 4, gConf = GC_4, pConf = PC_4},
	{GaugeID = 5, gConf = GC_5, pConf = PC_5},
	{GaugeID = 6, gConf = GC_6, pConf = PC_6}
)

-- DateTime: 2023/12/05 - 03:06:37:361

-- End of file -----------------------------------------------------------------
