I also noticed this in the code, the subtraction went the wrong direction..
Code:
void Trip::update(Trip t){
seconds++; //we call update once a second
injPulses+=t.injPulses;
vssPulses+=t.vssPulses;
injHius+=t.injHius;
if (injHius>=1000000){ //rollover into the injHiSec counter
injHiSec++;
//injHius=1000000-injHius; // **this would result in a negative number
injHius-=1000000; // **correct
}
}
I'd considered using one of the inputs for the MAP signal, and also TPS. As for the fuel pressure changing.. I'm hoping to find more info on the factory FPRs.