View Single Post
Old 10-09-2013, 09:21 PM   #171 (permalink)
t vago
MPGuino Supporter
 
t vago's Avatar
 
Join Date: Oct 2010
Location: Hungary
Posts: 1,807

iNXS - '10 Opel Zafira 111 Anniversary

Suzi - '02 Suzuki Swift GL
Thanks: 829
Thanked 708 Times in 456 Posts
Quote:
Originally Posted by josemapiro View Post
I've tried but it gives the following error:
mpguino_1_86_tav_c: 5607: error: 'idxCorrFactor' was not declared in this scope
mpguino_1_86_tav_c: 5630: error: 'idxCorrFactor' was not declared in this scope

Thank you
José Rodrigues
Ah... that was the other thing.

Go to about line 1758, and there should be something that looks like:

Code:
#ifdef useChryslerMAPCorrection
const uint8_t idxCorrFactor = nextAllowedValue + 1;
#define nextAllowedValue idxCorrFactor
#endif
Then, make this change:
Code:
#ifdef useIsqrt
const uint8_t idxCorrFactor = nextAllowedValue + 1;
#define nextAllowedValue idxCorrFactor
#endif
Also, go to line 870, and change this line from:
Code:
const uint8_t pInjectorCountIdx = 				nextAllowedValue + 1;
to this:
Code:
const uint8_t pInjectorCountIdx = 				pRefFuelPressureIdx + 1;
Failure to do that will result in code, compiling with the "useCalculatedFuelFactor" option enabled, to display wildly inaccurate fuel rates and speeds, as I learned to my great surprise the other day. Ugh...

I can't post the latest code yet, because I just got done reverting the fuel injector interrupt code back to using two separate pins, and I haven't yet tested it yet to see if it works.

  Reply With Quote