From 43a216c4f4e8f695842679971d9cdd8042ae737c Mon Sep 17 00:00:00 2001 From: tmcardle Date: Tue, 5 Feb 2013 12:39:20 +1100 Subject: [PATCH] Added Metric AIRDEN formula. --- utils.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/utils.h b/utils.h index daa0482d..f5c6a5c3 100644 --- a/utils.h +++ b/utils.h @@ -6,10 +6,12 @@ These are some utility functions and variables used through the main code #define US_IN_MINUTE 60000000 -//The following functions help determine the required fuel constant. For more information about these calculations, please refer to http://www.megamanual.com/v22manual/mfuel.htm +/* The following functions help determine the required fuel constant. For more information about these calculations, please refer to http://www.megamanual.com/v22manual/mfuel.htm + Calc below are for metric inputs of temp (degrees C) and MAP (kPa) to produce kg/m3. +*/ int AIRDEN(int MAP, int temp) { - + return (1.2929 * 273.13/(temp+273.13) * MAP/101.325); } /*