I was recently playing with a narrow band o2 sensor and I got some strange results. I talked about it in this thread.
It seems to be caused by a bug in megasquirt-ii.ini in all ms2 extra versions:
egoTarget = scalar, U08, 598, "v", -0.004883, -204.800, 0.00, 2.00, 4 ; * ( 1 byte)
should be:
egoTarget = scalar, U08, 598, "v", 0.01000, 0.00000, 0.00, 2.00, 4 ; * ( 1 byte)
I'm in a bit over my head, but some comments in ms2_extra_misc.c seemed to indicate the ms ego unit is Vx100, and the fix works for me.
Pretty sure I found an ini bug...
Moderators: jsmcortina, muythaibxr
-
- Helpful MS/Extra'er
- Posts: 139
- Joined: Sun Feb 10, 2008 8:26 am
oops.
Good catch, I had it backwards in the other thread. I'm glad there is a whole community to work on this project.
Again, I'm pretty sure the MS expects the value in hundredths of a volt. I have no idea where the conversion in the ini comes from. ADC counts, maybe?
Again, I'm pretty sure the MS expects the value in hundredths of a volt. I have no idea where the conversion in the ini comes from. ADC counts, maybe?