<!--
NOTES:
1) Change your ENDIAN just below, ECUFlash version 1.31 and higher = "big", 1.30 and lower = "little"
2) Remove/Rename your current "Boost Desired Engine Load" #2 and #3, only #1 matters anymore
3) Remove/Rename your current "Base Wastegate Duty" #2 and #3, only #1 matters anymore
4) Remove/Rename your current Hi/Lo Octane Fuel+Timing #2 and #3, only #1 matters anymore
5) Please test the features of this rom before driving off, if anything doesn't work as expected report back to Tephra.
-->

<-- THE BLOCK BELOW GOES INTO ECUFLASH XML BEFORE "</ROM>" at end of file -->

 	<scaling name="ECUTime" units="ms" toexpr="1000*x/102" frexpr="102*x/1000" format="%.0f" min="0" max="100000" inc="1" storagetype="uint16" endian="CHANGEME"/>
	<scaling name="1bytefactor" units="units" toexpr="x/((32/10)*100)" frexpr="x*((32/10)*100)" format="%.1f" min="1" max="2" inc="0.1" storagetype="uint16" endian="CHANGEME"/>	
	<table name="Tephra Mod Options" category="Mods" address="4818c" type="3D" scaling="uint16">
		<table name="X" type="Static X Axis" elements="1">
			<data>Value</data>
		</table>
		<table name="Y" type="Static Y Axis" elements="8">
			<data>Flash ICS when on Alternate Map?</data>
			<data>Enable Alternate Maps Master? ADC0F=1</data>
			<data>Enable Valet Mode?</data>
			<data>Flash CEL on Knock?</data>
			<data>Enable No Lift to Shift?</data>
			<data>Enable Auto-Valet on Fresh Ignition?</data>
			<data>Enable RearO2 Simulator?</data>
			<data>Enable MAP Averaging?</data>
		</table>
	</table>

  <table name="KnockSum Required for Slow CEL" category="Mods" address="4819c" type="1D" scaling="uint16"/>
	<table name="KnockSum Required for Fast CEL" category="Mods" address="4819e" type="1D" scaling="uint16"/>
	<table name="Load Required for CEL on Knock" category="Mods" address="481a0" type="1D" scaling="Load"/>
	<table name="CEL on Knock flash time" category="Mods" address="481a2" type="1D" scaling="ECUTime"/>

	<table name="Valet Rev Limit" category="Mods" address="481a4" type="1D" scaling="RPMLimit"/>
	<table name="Valet Rev Limit Time to Activate" category="Mods" address="481a6" type="1D" scaling="ECUTime"/>
	<table name="Valet Rev Limit Flash Time" category="Mods" address="481a8" type="1D" scaling="ECUTime"/>

	<table name="NLTS RPM Drop" category="Mods" address="481aa" type="1D" scaling="uint16"/>
	<table name="NLTS TPS Threshold" category="Mods" address="481ac" type="1D" scaling="ThrottlePercentage"/>
	<table name="NLTS Speed Threshold" category="Mods" address="481ae" type="1D" scaling="VehicleSpeed"/>
	<table name="NLTS Load Threshold" category="Mods" address="481b0" type="1D" scaling="Load"/>

	<table name="Alternate Map Time to Activate" category="Mods" address="481b2" type="1D" scaling="ECUTime"/>
	<table name="Alternate Map Load Threshold" category="Mods" address="481b4" type="1D" scaling="Load"/>
	<table name="Alternate Map ADC0F Threshold" category="Mods" address="481b6" type="1D" scaling="Volts16"/>

	<table name="2byte to 1Byte Load Factor" category="Mods" address="481b8" type="1D" scaling="1bytefactor"/>

	<table name="Alternate Injector Scaling" category="Mods" address="49b40" type="1D" scaling="InjectorScaling"/>

  <table name="Alternate Hi Octane Fuel Map" category="Mods" address="49b4d" type="3D" swapxy="true" scaling="AFR">
		<table name="Engine Load" address="6ec8" type="X Axis" elements="20" scaling="Load"/>
		<table name="RPM" address="6ea0" type="Y Axis" elements="15" scaling="RPM"/>
	</table>
	<table name="Alternate Lo Octane Fuel Map" category="Mods" address="49c8d" type="3D" swapxy="true" scaling="AFR">
		<table name="Engine Load" address="6ec8" type="X Axis" elements="20" scaling="Load"/>
		<table name="RPM" address="6ea0" type="Y Axis" elements="15" scaling="RPM"/>
	</table>

	<table name="Alternate Hi Octane Ignition Map #123" category="Mods" address="49dcd" type="3D" swapxy="true" scaling="Timing">
		<table name="Engine Load" address="6f2c" type="X Axis" elements="21" scaling="Load"/>
		<table name="RPM" address="6efa" type="Y Axis" elements="20" scaling="RPM"/>
	</table>
	<table name="Alternate Lo Octane Ignition Map #123" category="Mods" address="49f8d" type="3D" swapxy="true" scaling="Timing">
		<table name="Engine Load" address="6f2c" type="X Axis" elements="21" scaling="Load"/>
		<table name="RPM" address="6efa" type="Y Axis" elements="20" scaling="RPM"/>
	</table>

	<table name="Alternate Base Wastegate Duty" category="Mods" address="4a138" type="2D" scaling="WGDuty">
		<table name="RPM" address="722e" type="Y Axis" elements="16" scaling="RPM"/>
	</table>
	<table name="Alternate Boost Desired Engine Load" category="Mods" address="4a158" type="2D" scaling="Load8">
		<table name="RPM" address="722e" type="Y Axis" elements="16" scaling="RPM"/>
	</table>
