Still not finished. Will edit this post later. Waiting on suggestions or examples of more real life data.
I would use the NEW PID. I will edit the OLD PID. The OLD pid is based off data points of cars in general. The NEW pid is based off the scientific calc from our cars. Really the whole things just bumps up the HP values a little. It matters though when speeding in 4th gear. Now if you guys get me data on a tilt sensor I can add in inclines heheh. That is simply based off the vehicles weight and how much of it is going to fight the car based off + or - cos(inclination)*mass*gravity!
*CLC-00-004
hp -200.00 600.00 .1 "0.00006*{SAE.VSS.mph}^3-0.0006*{SAE.VSS.m# ================================================== ============================
# File details
# ------------
#
# This section defines various details about the file format.
*FILE
#Parameter Value Description
#---------- ---------------- ---------------------------------------------------
VERSION 7.1.1 File version
DECSEP . Decimal separator used in this file
# ================================================== ============================
# Units
# -------------------
# See sae_generic.txt for more information on the *UNITS section
*UNITS
#Code System Abbr Description
#-------- ---------- -------- -------------------------------------------------------------
MPG Imperial MPG "MPG"
LPK Metric LPK "Litre X KM"
# ================================================== ============================
# Add slot definitions here
# --------------------------------
# See sae_generic.txt for more information on "SLOT" formats
#
#Units Low High Fmt Expression
#------------ ------------- ------------- ---- --------------------------------------------------------------
################################################## #################################
#Wide Band PID
*CLC-00-001
V 0.0 5.0 0.1 "{EXT.AD1}"
AFR 10.00 16.8 0.1 "{EXT.AD1}*1.36 + 10"
factor 0.5 1.5 0.01 "({EXT.AD1}*1.36 + 10) / {GM.AFR}"
################################################## #################################
#Fuel Economy
*CLC-00-002
MPG 0.00 99.99 .1 "{SAE.VSS.mph}/({GM.INJFLOW.lbpm} * {GM.IBPW1} * {SAE.RPM} * 4 / 6250)"
LPK 0.00 99.99 .1 "235.2145584/{SAE.VSS.mph}/({GM.INJFLOW.lbpm} * {GM.IBPW1} * {SAE.RPM} * 4 / 6250)"
################################################## #################################
#Aero Drag, power lost to go down road without changing speed.
*CLC-00-003
hp -200.00 600.00 .1 "0.000070146*{SAE.VSS.mph}^3-0.0007566*{SAE.VSS.mph}^2+0.13894268*{SAE.VSS.mph}-0.1634172"
kW -200.00 600.00 .1 "0.745699872*(0.000070146*{SAE.VSS.mph}^3-0.0007566*{SAE.VSS.mph}^2+0.13894268*{SAE.VSS.mph}-0.1634172)"
################################################## #################################
#Raw Power, power you are using to to change speed.
*CLC-00-004
hp -200.00 600.00 .1 "((gvmlb()+({GM.FUELREM}*6.350)+130)*{SAE.VSS.mph} )*dx({SAE.VSS.mph},6)/8226.63"
kW -200.00 600.00 .1 "0.745699872*(((gvmlb()+({GM.FUELREM}*6.350)+130)* {SAE.VSS.mph})*dx({SAE.VSS.mph},6))/8226.63"
################################################## #################################
#Raw Force, force that must be applied to change speed.
*CLC-00-005
ftlb -200.00 600.00 .1 "({CALC.RawHP}*5252)/{SAE.RPM}"
Nm -200.00 600.00 .1 "1.356*({CALC.RawHP}*5252)/{SAE.RPM}"
################################################## #################################
#Power Demanded, Real wheel power it is taking to go down road AND change speed.
*CLC-00-006
hp -200.00 600.00 .1 "{CALC.RawHP}+{CALC.Powerlost}"
kW -200.00 600.00 .1 "0.745699872*({CALC.RawHP}+{CALC.Powerlost})"
# ================================================== ============================
*PRN - Parameter Reference Numbers
# --------------------------------
# See sae_generic.txt for more information on the *PRN section
#
#Code PRN SLOT Units System Description
#------------------------- ---- ------------ ---------------- ---------------- ------------------------------------------
################################################## #################################
#Wide Band PID
CALC.LM1 F021 CLC-00-001 "AFR,V,factor" Custom "A Custom PID for the LM1 WB in Voltage, AFR, or BEN."
################################################## #################################
#Fuel Economy
CALC.FuelEcon F031 CLC-00-002 "MPG,LPK" Custom "MPG o L/100kM."
################################################## #################################
#Aero Drag, power lost to go down road without changing speed.
CALC.Powerlost F041 CLC-00-003 "hp" Custom "HP Lost from air and rolling resistance."
################################################## #################################
#Raw Power, power you are using to to change speed.
CALC.RawHP F051 CLC-00-004 "hp,kW" Custom "RealRoadPower, Net HP/kW after grade, wind, rolling resis, ect."
################################################## #################################
#Raw Force, force that must be applied to change speed.
CALC.RealRoadTorque F061 CLC-00-005 "ftlb,Nm" Custom "RealRoadMoment, Net Ftlb/Nm after grade wind rolling resis ect."
################################################## #################################
#Power Demanded, Real wheel power it is taking to go down road AND change speed.
CALC.PowerDemanded F071 CLC-00-006 "hp" Custom "Estimate of crank hp. hp from accel + drag + aero."ph}^2-0.0275*{SAE.VSS.mph}"
*CLC-00-005
hp -200.00 600.00 .1 "((3600+({GM.FUELREM}*6.350)+135)*{SAE.VSS.mph})*d x({SAE.VSS.mph},2)/8226.63"
kW -200.00 600.00 .1 "0.745699872*(((3600+({GM.FUELREM}*6.350)+135)*{SA E.VSS.mph})*dx({SAE.VSS.mph},2))/8226.63"
*CLC-00-006
ftlb -200.00 600.00 .1 "({CALC.OldRoadPower.hp}*5252)/{SAE.RPM}"
Nm -200.00 600.00 .1 "1.356*({CALC.OldRoadPower.hp}*5252)/{SAE.RPM}"
*CLC-00-007
hp -200.00 600.00 .1 "{CALC.OldRoadPower.hp}+{CALC.OldDragLoss.hp}+{CAL C.NEWRollFric}"
*CLC-00-008
hp -200.00 600.00 .1 "0.00001917*{SAE.VSS.mph}^3-0.001789*{SAE.VSS.mph}^2+0.13239343*{SAE.VSS.mph} -0.0004866"
*CLC-00-009
hp -200.00 600.00 .1 "0.000053295*{SAE.VSS.mph}^3"
*CLC-00-010
hp -200.00 600.00 .1 "{CALC.OldRoadPower.hp}+{CALC.NEWRollFric.hp}+{CAL C.NEWAeroFric.hp}"
CALC.OldDragLoss F051 CLC-00-004 "hp" Custom "OLD Aero Drag Losses."
CALC.OldRoadPower F061 CLC-00-005 "hp,kW" Custom "OLD HP Estimated From Accel, Road Power."
CALC.OldRoadTorque F071 CLC-00-006 "ftlb,Nm" Custom "OLD Torque Estimated from Accel, Road Torque."
CALC.oldCrankHP F081 CLC-00-007 "hp" Custom "OLD Estimated Crank HP, RoadPower + Drag Losses."
CALC.NEWRollFric F091 CLC-00-008 "hp" Custom "Newer Estimate of Rolling friction, 2002 Camaro."
CALC.NEWAeroFric F092 CLC-00-009 "hp" Custom "Newer Estimate of Aero Friction, 2002 Camaro."
CALC.NEWCrankPower F093 CLC-00-010 "hp" Custom "Newer Estimate of HP from Accel plus Drag Losses--> New Estimated Crank, 2002 Camaro."