diff --git a/speeduino.ino b/speeduino.ino index 2d17c28c..c29a69c1 100644 --- a/speeduino.ino +++ b/speeduino.ino @@ -145,7 +145,7 @@ void setup() } pinMode(pinTrigger, INPUT); - digitalWrite(pinTrigger, HIGH); + //digitalWrite(pinTrigger, HIGH); attachInterrupt(triggerInterrupt, trigger, FALLING); // Attach the crank trigger wheel interrupt (Hall sensor drags to ground when triggering) //End crank triger interrupt attachment diff --git a/utils.h b/utils.h index 5c93be68..2d4462cd 100644 --- a/utils.h +++ b/utils.h @@ -59,12 +59,14 @@ unsigned int PW(int REQ_FUEL, byte VE, byte MAP, int corrections, int injOpen, b //Convenience functions for Speed Density and Alpha-N unsigned int PW_SD(int REQ_FUEL, byte VE, byte MAP, int corrections, int injOpen) { - return PW(REQ_FUEL, VE, MAP, corrections, injOpen, 100); //Just use 1 in place of the TPS + //return PW(REQ_FUEL, VE, MAP, corrections, injOpen, 100); //Just use 1 in place of the TPS + return PW(REQ_FUEL, VE, 100, corrections, injOpen, 100); //Just use 1 in place of the TPS } unsigned int PW_AN(int REQ_FUEL, byte VE, byte TPS, int corrections, int injOpen) { //Sanity check if(TPS > 100) { TPS = 100; } - return PW(REQ_FUEL, VE, 100, corrections, injOpen, TPS); //Just use 1 in place of the MAP + //return PW(REQ_FUEL, VE, 100, corrections, injOpen, TPS); //Just use 1 in place of the MAP + return PW(REQ_FUEL, VE, 100, corrections, injOpen, 100); //Just use 1 in place of the MAP }