Sign up for our newsletter! 
Home News Products Downloads Forum Distributors Store Contact Us
PPE User Forum
May 22, 2013, 05:59:19 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Volumetric Efficiency  (Read 1255 times)
0 Members and 1 Guest are viewing this topic.
duz
Newbie
*
Offline Offline

Posts: 1


View Profile
« on: March 12, 2012, 03:47:46 am »

Just wrote a volumetric efficiency script (I think) but can't figure a way to import into the iPhone version of dashcommand...

if someone cold confirm as to weather it works or not, that would be cool...

Code:
function GetRequiredPids()
{

Obdii.AddRequiredPid("SAE.RPM");
Obdii.AddRequiredPid("SAE.MAF");
Obdii.AddRequiredPid("SAE.IAT");
Obdii.GetVehicleSetting("Engine displacement", "in³")
}

var EngineRPM = Obdii.GetPidValueEnglish("SAE.RPM");
var Intaketemp = Obdii.GetPidValueEnglish("SAE.IAT");
var MAF = Obdii.GetPidValueEnglish("SAE.MAF");
var disp = Obdii.GetVehicleSetting("Engine displacement", "in³")
var CalculatedValue;
var indense;
var volflowrate;
var theoairflow;
var voleff;



if (EngineRPM == null)
{
CalculatedValue = 0;
}
else
{
indense = (491.67/(459.67+Intaketemp))*0.0808;
volflowrate = MAF/indense;
theoariflow = (disp*EngineRPM*1)/(2*1728);
voleff = volflowrate/theoairflow
}

Obdii.PidValue.English = voleff;
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.13 | SMF © 2006-2011, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.117 seconds with 19 queries.
Home | News | Products | Downloads | Forum | Distributors | Store | Contact Us
Copyright © 2012 Palmer Performance Engineering, Inc. All Rights Reserved.