Page 1 of 1

How to modify fuel & spark in code?

Posted: Sun Oct 26, 2008 12:05 pm
by bkanber
Hey guys,

The MS code is a little hard to decipher, so I figured I'd ask my question here:

I want to attach a microcontroller to the CAN bus that performs traction control functions for the MS. What I don't know, however, is how to 1) use CAN on the MS, and 2) How do I retard spark and cut fuel in the MS code? Code snippets, if you have, would be super helpful.. but if not, a point in the right direction would also be very appreciated.

Thanks for your help!

Re: How to modify fuel & spark in code?

Posted: Sun Oct 26, 2008 1:56 pm
by Bernard Fife
bkanber,

Al added the CAN based fuel, spark and idle step adjustments in the 2.8X code. They are:

FuelAdj,SpkAdj, // Adjustments for fuel(% +/- to ve),spark(degx10),idle step,spare
IdleAdj,SprAdj; // for GPIO boards.

You can look in the code to see how each is used (the FuelAdj simply modifies the current VE, for example).

There are details on the CAN implementation/protocol here: http://www.megamanual.com/com/CAN.htm

Lance.