Pretty sure I found an ini bug...

This is a forum for discussing the development and testing of alpha MS2/Extra code. Documentation
(Runs on MS2 and Microsquirt)

Moderators: jsmcortina, muythaibxr

Post Reply
Mouse!
MS/Extra Newbie
Posts: 18
Joined: Thu Aug 17, 2006 1:40 am

Pretty sure I found an ini bug...

Post by Mouse! »

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.
mike_robert
Helpful MS/Extra'er
Posts: 139
Joined: Sun Feb 10, 2008 8:26 am

Post by mike_robert »

Did you get that backwards? I don't have a machine with any MS software on it available right now but - the 3rd post (yours) in the initial referenced thread indicates the opposite.

-Mike
Mouse!
MS/Extra Newbie
Posts: 18
Joined: Thu Aug 17, 2006 1:40 am

oops.

Post by Mouse! »

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?
Post Reply