Sign up for our newsletter! 
Home News Products Downloads Forum Distributors Store Contact Us
PPE User Forum
June 17, 2013, 11:38:27 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Calculating boost pressure  (Read 11003 times)
0 Members and 1 Guest are viewing this topic.
mtxpert
Newbie
*
Offline Offline

Posts: 13


View Profile
« on: January 23, 2007, 03:33:23 pm »

From what I understand in order for me to get a boost pressure reading I need to calculate the boost reading from the MAP minus the Barometric pressure reading.
Does the script API recognize IF statements?
var AbsolutePSI = OBii.GetPidValueMetric("SAE.MAP") - 2.45 / .17 ###converts voltage to PSI above 0 PSI####
var Barometric = OBDii.GetPIDValueMetric("SAE.BARO") *.14504 ###converts Barometric KPA to PSI####
var BoostPSI= AbsolutePSI - Barometric

The key here is that the above will readout some weird readings when it's in vacuum.
I really need an if for when voltage is below 2.45V.

Any ideas?
Mike
Logged
BrianP
Administrator
Hero Member
*****
Offline Offline

Posts: 1314


View Profile
« Reply #1 on: January 23, 2007, 03:43:22 pm »

Yes, absolutely!

Since it is Javascript, you can use any valid Javascript code including if/else, for, while, etc. Here's an example:

Code:
var AbsolutePSI = Obdii.GetPidValueMetric("SAE.MAP") - 2.45 / 0.17;
var Barometric = Obdii.GetPidValueMetric("SAE.BARO") * 0.14504;
var BoostPSI= AbsolutePSI - Barometric;

if (BoostPSI >= 25.5)
{
     Obdii.ConsolePrint("Whoa there!");
}
else
{
     Obdii.ConsolePrint("Get more boost!");
}
Logged
mtxpert
Newbie
*
Offline Offline

Posts: 13


View Profile
« Reply #2 on: January 23, 2007, 03:48:38 pm »

Can the output be used for a the virtual gauges?
Smiley
I'm ready to buy whatever I need to get this thing working!!!
LMK,
Mike
« Last Edit: January 23, 2007, 03:55:19 pm by mtxpert » Logged
BrianP
Administrator
Hero Member
*****
Offline Offline

Posts: 1314


View Profile
« Reply #3 on: January 23, 2007, 03:56:44 pm »

When you add a new script parameter, it shows up just like any other parameter does. It will be displayed in the data view, and you can graph it, or hook it to a gauge, or whatever. There are no limitations to the script parameters. Anything you can do with a normal parameter, you can also do with a script parameter. There is nothing extra that you need to buy in order to get the script parameters working. It's all built in. Grin
Logged
mtxpert
Newbie
*
Offline Offline

Posts: 13


View Profile
« Reply #4 on: February 03, 2007, 11:42:14 pm »

OK here's the next step:
I need the gauge to show in HG vs PSI so the if statement would be something like:

if (BoostPSI < 0)
{
var BoostPSI = AbsolutePSI - Barometic * 2.036
}
else
{
var BoostPSI = AbsolutePSI - Barometric
}


Will this still work?
If so we have a winner, I just need to make sure I can order the AutoTAP cheap cable and buy your software so I can have a functional boost gauge via my NAV screen.

Smiley
Logged
mtxpert
Newbie
*
Offline Offline

Posts: 13


View Profile
« Reply #5 on: February 04, 2007, 11:15:51 am »

Well I can now calculate boost effectively from my scans, the bad thing now is that I have to clamp the voltage in order to stop from getting fuel cut due to my bigger turbo. Looks like I'm back to needing an analog input from a pressure sender for an electronic boost gauge.
Sad
Logged
nimikipod
Newbie
*
Offline Offline

Posts: 5


View Profile
« Reply #6 on: August 11, 2009, 04:35:18 pm »

how about calculating the boost from the MAF  ?(for those of us with VAG'S)
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.139 seconds with 19 queries.
Home | News | Products | Downloads | Forum | Distributors | Store | Contact Us
Copyright © 2012 Palmer Performance Engineering, Inc. All Rights Reserved.