How to modify fuel & spark in code?
Read the manual to see if your question is answered there before posting. If you have questions about MS1/Extra or MS2/Extra or other non-B&G code configuration or tuning, please post them at http://www.msextra.com The full forum rules are here: Forum Rules, be sure to read them all regularly.
How to modify fuel & spark in code?
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!
-
Bernard Fife
- Super Squirter
- Posts: 1009
- Joined: Mon Feb 16, 2004 3:15 pm
Re: How to modify fuel & spark in code?
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.