Update 4/3/2006 -- The ecu_base.xml file I was planning on using will
not be used. Inheritance is now supported and this idea has been abandoned.
----------------------------------
I haven't even started on the ECU definition editor yet, but when I do, I'll use an XML definition file similar (or hopefully exactly like) this example. When a user creates a new ECU definition, they will have the opportunity to load a base definition from this file and fill in the blanks rather than recreate each definition from scratch.
Originally these tags were to be found in the ecu_defs.xml as includes. I've decided to go ahead and move them to another file, probably called ecu_base.xml.
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ecurom>
<roms>
<rom>
<romid>
<xmlid>wrxbase</xmlid>
</romid>
<table type="3D" name="Main Ignition Map" category="Timing" swapxy="false" flipx="false" flipy="false" storagetype="uint8" endian="little" sizex="16" sizey="16">
<scaling units="degrees" type="linear" scalefactor="1" offset="0"/>
<table type="X Axis" name="Engine Load in Air per Cylinder Charge" storagetype="uint8"
endian="little" sizex="16">
<scaling units="grams" type="linear" scalefactor="1" offset="0" />
</table>
<table type="Y Axis" name="Engine RPM" storagetype="uint8" endian="little" sizey="16">
<scaling units="grams" type="linear" scalefactor="100" offset="0" />
</table>
<description>"This is a map of base ignition values."</description>
</table>
<table type="2D" name="Rev Limit" storagetype="uint8" endian="little" sizey="2">
<scaling units="RPM" type="linear" scalefactor="0.1953125" offset="0" />
<description>"RPM at which limiter turns on and off."</description>
<table type="Static Y Axis" name="Condition" units="" sizey="2">
<data>on</data>
<data>off</data>
</table>
</table>
<table type="1D" name="Injector Flow Scaling" category="Fuel" storagetype="uint16" endian="little">
<scaling units="cc" type="inverse" scalefactor="2447960" offset="0" />
<description>"Injector flow rating in cc/min"</description>
</table>
</rom>
</roms>