[TunerStudio]
    signature      = "MLV Custom Tune ini MS3" ;
                    ; 123456789.123456789.
    iniSpecVersion = 3.60 
[ConstantsExtensions]
    maximumElements = veTable1, 576
    defaultValue = veRows, 16
    defaultValue = veCols, 16
    defaultValue = veDigits, 2

    maximumElements = afrTable1, 576
    defaultValue = afrRows, 16
    defaultValue = afrCols, 16
    defaultValue = afrDigits, 1  

    ;defaultValue = advRows, 16
    ;defaultValue = advCols, 16
    ;defaultValue = advDigits, 1
					   
[Constants]
    nPages              = 1
    pageSize            = 6000

    page = 1 

    ;name, class, dataType, offset, shape, units,  scale, trans, lo, hi, digits;
    veRows  = scalar,   U08,  0,     "",      1.0,       0,          1.0,  24.0,    0
    veCols  = scalar,   U08,  1,     "",      1.0,       0,          1.0,  24.0,    0
    veDigits = scalar,   U08,  2,     "",     1.0,       0,         0.0,  4.0,    0

    afrRows  = scalar,   U08,  3,     "",     1.0,       0,          1.0,  24.0,    0
    afrCols  = scalar,   U08,  4,     "",     1.0,       0,          1.0,  24.0,    0
    afrDigits = scalar,  U08,  5,     "",     1.0,       0,         0.0,  4.0,    0

    ;advRows  = scalar,   U08,  6,     "",     1.0,       0,          1.0,  24.0,    0
    ;advCols  = scalar,   U08,  7,     "",     1.0,       0,          1.0,  24.0,    0
    ;advDigits = scalar,  U08,  8,     "",     1.0,       0,         0.0,  4.0,    0

    frpm_table1     = array , U16, 100, [{veCols}],         "RPM",  1.00,   0,  0, 12500.0,      0 ;  
    fmap_table1     = array , U16, 148, [{veRows}],         "",     1.00,   0,  0,  1000.0,      0 ;  
    veTable1        = array , U16, 196, [{veCols}x{veRows}],"%",     0.01,   0,  0,  1000.0, {veDigits} ;

    arpm_table1     = array , U16, 2100, [{afrCols}],       "RPM",  1.00,   0,  0, 12500.0,      0 ;  
    amap_table1     = array , U16, 2148, [{afrRows}],       "",     1.00,   0,  0,  1000.0,      0 ;  
    afrTable1       = array , U16, 2196, [{afrCols}x{afrRows}],"",  0.01,   0,  0,  1000.0, {afrDigits} ;

;    srpm_table1     = array , U16, 4100, [{advCols}],       "RPM",  1.00,   0,  0, 12500.0,      0 ;  
;    smap_table1     = array , U16, 4148, [{advRows}],       "",     1.00,   0,  0,  1000.0,      0 ;  
;    advanceTable1   = array , U16, 4196, [{advCols}x{advRows}],"DBTDC",  0.01,   0,  0,  1000.0, {advDigits} ;

[TableEditor]
table = veTable1, veTable1Map, "Fuel Table", 1
      xBins       = frpm_table1, rpm
      yBins       = fmap_table1, fuelload
      zBins       = veTable1
      upDownLabel = "RICHER", "LEANER"
      gridOrient  = 250,   0, 340 

table = afrTable1, afrTable1Map, "AFR Table", 2
      xBins       = arpm_table1, rpm
      yBins       = amap_table1, afrload
      zBins       = afrTable1
      upDownLabel = "Up", "Down"
      gridOrient  = 250,   0, 340		  
  
;table = ign, ignitionMap1, "Spark Table", 3
;     xBins       = srpm_table1, rpm
;     yBins       = smap_table1, ignload
;     zBins       = advanceTable1
;     upDownLabel = "ADVANCING", "RETARDING"
;     gridOrient  = 250,   0, 340

[OutputChannels]
rpm  = scalar, U16,    0, "RPM", 1.000, 0.0
fuelload  = scalar, U16,   2, "Fuel Load", 1.000, 0.0
afrload  = scalar, U16,   4, "AFR Load", 1.000, 0.0
ignload  = scalar, U16,   6, "Ignition Load", 1.000, 0.0

