General source code ? and help fixing a specific issue

Testing and development of Megasquirt 3

Moderators: jsmcortina, muythaibxr

Post Reply
kyle_b
MS/Extra Newbie
Posts: 3
Joined: Mon May 04, 2015 10:37 am

General source code ? and help fixing a specific issue

Post by kyle_b »

So i will start with one main issue i am having that led me to dive into the ms3 source.
First, i am using 1.3.2 so if this has been fixed in 1.4.0 please let me know.

I am having an issue with my 2nd stage of injectors opening during cranking. Primaries are
set on the 3x seq outputs, secondaries on the v3 injA and injB
They are set for injector staging and no matter what my settings are they always open.
I set the entire staging table to 0% or turn staging off.

So from what i can tell, the 3x injectors are numbered 0-7 and the mainboard injectors
are 8 and 9. And for the fuel amount variables(such as tmp_pw1,tmp_pw2,lsum_fuel1,pw_staged1)
the 1's are for inj 0-7 and the 2's inj 8,9.

I have not tried the code yet but i have changed the following in ms3_inj.c:1613
function: crank_calcs
tmp_pw2 = tmp_pw1 changes to tmp_pw2=0;

And another note, what makes certain variables need a reset before they are loaded. I notice most that can be modified on the fly are accessed like ram_window.pg10.... while others are ram4... or ram5.... The ram_window is a pointer while the others are direct?

I have successfully added functions like switching staging off via hardware input, so if the nitrous is on, staging is active.

I would really like to gain a deeper understanding of the code and how it was written.
Post Reply