$Id: ChangeLog,v 1.58 2010/04/12 16:12:43 racingmini Exp $
MS2/Extra ChangeLog
-------------------
OK, so there's three years of changes missing....

2009-10-28 JSM
Stacking soft registers when assembler ISR call C functions, fixes major bug. (Backport from MS3)
Add config error to prevent trigger angle/offset with trigger wheel or EDIS. Grey menu.
Change CAN passthrough to use "MS3 fix", removing other method.
Extend CAN protocol to allow 32 tables

2009-10-31 KWC
Merge back MAF (untested) and ITB mode (tested) to ms2/extra.

2009-11-4 KWC
Merge back adding eaeload and afrload to outpc, and small idle code fix.

2009-11-06 JSM
Made ign_in a FAR subroutine
Backport MS3 changes to:
-distributor
-trigger return
-twin trigger
-1,2,3 cyl rpm / squirts calcs
Fix rotary (was broken)
Minimal testing

2009-11-07 JSM
Ported 6/7 COP from MS3
Ported NGC 2.2/2.4 alternate cam from MS3
Limited testing on scope.

2009-11-10 JB
Corrected ms2extra_structs.inc to align flash5 variables correctly
(post release)
Added text38 section to DOS makefile 

2009-11-10 KWC
Make closed loop idle lockout settings less prone to false triggering.

2009-11-12 JSM
Backported Nissan QR25DE from MS3

2009-11-17 KWC
More CL idle fixes. Make rpmdot a part of outpc and make it calculate smoothly.

2009-11-21 JSM
Backport 'spkmode' variable from MS3.
Add dedicated crank/cam logger modes for capturing new wheels.
init changes to use _CAM_ flags.
Changed check for no. triggers

2009-11-23 JSM
Fix EDIS rpm
Allow stepper motor with Microsquirt for module

2009-12-05 JSM
Fix near-360 tooth #1 angle problem
Fix 0x60 bitmask for rising/falling
Add 'every cylinder' 2nd trigger mode.

2009-12-05 JB
Corrected assignment of temp_pw to pair channels 1 with 3 and 2 with 4
Removed unwanted sync for Subaru 6/7 mode when using cam information
Added missing sync flag updates
Corrected EAE computation when using sequential and staged injection
Moved pw_calcx computations to have all 4 done at the same time. Removed unneeded DISABLE_INTERRUPTS (16-bit values)

2009-12-21 JSM
Backport syncfirst improvements from MS3.
Fix logic error introduced with 'every cylinder' 2nd trigger mode.
Move log buffer clear to sub to free space in main()

2009-12-27 JSM
Backport LS1 mode from MS3
Make tooth logger work as expected with double edged crank triggering

2009-12-28 JSM
LS1 tweak (tested on COP/Seq engine)
Add automatic polarity noise filter.
Actually enable normal crank polarity check.
Get trigger wizard working with EDIS.
RC51 changes

2010-01-02 JSM
RC51 / FSC600 wheel changes

2010-01-17 JSM
ASE bugfix

2010-01-19 JSM
Make syncfirst changes conditional on rpm to prevent high rpm sync failure

2010-01-23 JSM
Fix 60-2+cam ancient trigger bug.
Fix getting stuck in cranking mode.
Use ENGINE_ defines.
Remove copyini and other Megatune-isms. Single ini file.
Fix for incorrect trigger teeth on V2 oddfire w/s.
syncfirst was not working correctly with V2 evenfire w/s (no_triggers==1)

2010-01-26 JSM
Dual+missing with odd-fire or 5cyl could generate invalid trigger teeth.
Comment WCOP feature.

2010-01-27 JSM
Add YZF1000 wheel mode
conf error bugfix from MS3
32 tooth wheel support

2010-02-04 JSM
Fully removed WCOP
Calc rpm from tooth time before first rpm period.

2010-02-11 JSM
Re-arrange EDIS rpm calcs to use lag and to calc rpmdot
Backported sliding windows rpmdot from MS3
Added CRC32 checking of ram page

2010-02-14 KWC
Port cycle_deg changes to ms2 to see if that helps the injector issues
being reported.

2010-02-15 JSM
Added support for CRC32 via CAN
Moved flash11 to unbanked flash and delete _3a lookup function.
Support flash11 tuning via CAN (was missing)

2010-02-16 JSM
Spare ports initial values

2010-02-20 JSM
IAW-Weber-Marelli mode should now work in wasted spark / COP

2010-02-22 KWC
Fix hang when using sequential fuel.

2010-03-01 JSM
High rpm resync broke map sampling. Simple code error.

2010-03-01 JB
Updated ini for injector advance limits to -360 to 720 degrees from -360 to 360 degrees.
Corrected blip in injector pulse when scheduling beginning of pulse
Updated default remote CAN offset

2010-03-02 JB
Moved gpioport to the end of realtime data to keep 16-bit data aligned on even word for CAN transfer

2010-03-04 KWC
Merge Rob's interpolation work. Saves ~100-300 usec off mainloop time, and
appears to be at least as accurate if not more accurate.

2010-03-08 JSM
Tooth/trigger logger fixes.

2010-03-11 JB
Added support for remote flex fuel input using PWM input
Added support for remote knock input

2010-03-12 JB
Added support for additional injectors when not using sequential injection
Made sure that PWM not used when using additional injectors
Added injector test output for channels 3 and 4

2010-03-18 JSM
Moved inj isrs to TEXT3 to allow code to compile for me.

2010-03-23 JSM
Add test and config error for broken CAN transceiver.

2010-03-26 JSM
Twin trigger. 2nd output polarity was inverted. Rotary dwell overflow was broken.
Get config error pump output working and reduce 'flash' rate.
Test mode now works if twin trigger used on stim with rpm input.

2010-03-28 JB
Added the possibility of using the remote CAN data as a slave (not actively polling the CAN bus)

2010-03-29 JSM
Noisefilter high rpm resync fix backport from MS3. (untested)

2010-04-09 JB
Added a mechanism to prevent rescheduling the same injector channel in one engine cycle/rev

2010-04-12 JB
Added condition to cover single cylinder when masking forced injection
