MegaTune (2006-03-16 04:43:08)

Note that MegaTunix is the reference tuningsoftware (used by most developers). MegaTunix works on windows and Linux.

Megatune has serious problems, testing and debugging (mainly configuration) might be needed to get it work.

[[Manual: Detailed.General]]

TODO

[megatune 2.25 with half-working ini files]


Developer Section

Ini files:

I need some help with firmware-support

KPA_CONFIG_RESOLUTION=2 must not be default - it confused every user who tried.

If we don't directly maintain the ini, but generate the ini file from template (maybe with C preprocessor? or perl?), that has say %%KPA_CONFIG_RESOLUTION%% which gets substituted, than maintenance is not a headache. Actually the example my_make defines KPA_CONFIG_RESOLUTION in a bad way(== instead of =), which results in 1kPa. For 1 kpa resolution, changes needed in some mapBins* lines from 2.0 to 1.0 to get good kpa reading and easier tuning. Note that the r007 ini seems to pretend that some config variables (eg. ego_maxmap) are 1.0 kPa resolution that are 2.0 when KPA_CONFIG_RESOLUTION is defined as 2.


mmtf - the way to configure other tables with old megatune that only knows about VE table

Often used with megatune 2.16 and 2.20.

mmtf (menu megatune fool) makes it possible to trick old VE-only megatune to think it talks to the VE table (j[]) while it is in fact talks to ignition advance (n[]) or lambdacorr (l[]) table.

We keep an internal pointer (called megatune_table), which default points to ve.ref_table (so default behaviour is consistent):

Don't enter the space, only provided on command boundaries for easier reading.

The mtt. command switches to n(,j,l respectively) table and the mmtf fool megatune to see that table instead of the default j[].

You better only issue mtf command when the VE-tuning screen in megatune is closed. Otherwise you risk writing data into the ignition table that you read from the injection table previously, or the other way around, not good..

Most convenient to issue the table-switching command from a directly attached KeyBoard. Issuing it from TerminalProgram works, but more strokes:

TODO: lambda info should live on a subpage of GenBoard/Manual/Tables

The ve.lambda is the fixing of megasquirt mix-multiple of two tables:

the VE and the lambda. Lambda is 1.0 for an AFR of 14.7 for gasoline.

Of course lambda can be left 0.8 all over the place initially if you like (but take care not to lean where you shouldn't). Some decimal values for l[] lamdacorr table (use numberformat=10 option or convert to hexa)

Lambda table is important when the system learns the VE, or when WideBand controls the AFR. The original, multiplied together, value is useless, since the ECM cannot figure out from that what AFR target the user wants. This was no issue for original Megasquirt, since it cannot learn, nor control for a (MAP, RPM) dependant WBO2 target.


Misc notes

The reason for this is that mstweak is broken: idle condition confuses it.

We should propose to include the feature to record mono or stereo wav-s that are syncronized to engine logs. It is often useful. Eg. when

Who writes a mail to the appropriate forum ?

[[Manual: Basics.Install.Software]]