<!--
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) 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="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"/>
	<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="ThrottlePercentage" units="%" toexpr="x*100/255" frexpr="x*255/100" format="%.1f" min="0" max="100" inc="0.392" storagetype="uint16" endian="CHANGEME"/>

	<table name="Tephra Mod Options" category="Mods" address="39218" 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="11">
			<data>Restore ICS State on Ignition?</data>
			<data>Flash ICS when on Alternate Map?</data>
			<data>Enable Alternate Maps Master? ADC0F=1, AutoICS=2</data>
			<data>Enable Valet Mode?</data>
			<data>Flash CEL on Knock?</data>
			<data>Enable Manual ICS Linger?</data>
			<data>Enable Spray ICS 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="3922e" type="1D" scaling="uint16"/>
	<table name="KnockSum Required for Fast CEL" category="Mods" address="39230" type="1D" scaling="uint16"/>
	<table name="Load Required for CEL on Knock" category="Mods" address="39232" type="1D" scaling="Load"/>
	<table name="CEL on Knock flash time" category="Mods" address="39234" type="1D" scaling="ECUTime"/>

	<table name="Valet Rev Limit" category="Mods" address="39236" type="1D" scaling="RPMLimit"/>
	<table name="Valet Rev Limit Time to Activate" category="Mods" address="39238" type="1D" scaling="ECUTime"/>
	<table name="Valet Rev Limit Flash Time" category="Mods" address="3923a" type="1D" scaling="ECUTime"/>

	<table name="Manual ICS Linger Time" category="Mods" address="3923c" type="1D" scaling="ECUTime"/>

	<table name="KnockSum Required for Spray" category="Mods" address="3923e" type="1D" scaling="uint16"/>
	<table name="Load Required for Spray on Knock" category="Mods" address="39240" type="1D" scaling="Load"/>
	<table name="Spray on Knock time" category="Mods" address="39242" type="1D" scaling="ECUTime"/>

	<table name="NLTS RPM Drop" category="Mods" address="39244" type="1D" scaling="uint16"/>
	<table name="NLTS TPS Threshold" category="Mods" address="39246" type="1D" scaling="ThrottlePercentage"/>
	<table name="NLTS Speed Threshold" category="Mods" address="39248" type="1D" scaling="VehicleSpeed"/>
	<table name="NLTS Load Threshold" category="Mods" address="3924a" type="1D" scaling="Load"/>

	<table name="Alternate Map Time to Activate" category="Mods" address="3924c" type="1D" scaling="ECUTime"/>
	<table name="Alternate Map Load Threshold" category="Mods" address="3924e" type="1D" scaling="Load"/>
	<table name="Alternate Map ADC0F Threshold" category="Mods" address="39250" type="1D" scaling="Volts16"/>

	<table name="2byte to 1Byte Load Factor" category="Mods" address="39252" type="1D" scaling="1bytefactor"/>
	
	<table name="StatRevLimit" category="Mods" address="39254" type="1D" scaling="RPMLimit"/>
	<table name="StatRevLimit Speed Threshold" category="Mods" address="39256" type="1D" scaling="VehicleSpeed"/>

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

	<table name="Alternate Hi Octane Fuel Map" category="Mods" address="37b4d" type="3D" swapxy="true" scaling="AFR">
		<table name="Engine Load" address="4fdc" type="X Axis" elements="18" scaling="Load"/>
		<table name="RPM" address="4fb4" type="Y Axis" elements="15" scaling="RPM"/>
	</table>
	<table name="Alternate Lo Octane Fuel Map" category="Mods" address="37c8d" type="3D" swapxy="true" scaling="AFR">
		<table name="Engine Load" address="4fdc" type="X Axis" elements="18" scaling="Load"/>
		<table name="RPM" address="4fb4" type="Y Axis" elements="15" scaling="RPM"/>
	</table>

	<table name="Alternate Hi Octane Ignition Map #123" category="Mods" address="37dcd" type="3D" swapxy="true" scaling="Timing">
		<table name="Engine Load" address="503a" type="X Axis" elements="19" scaling="Load"/>
		<table name="RPM" address="500a" type="Y Axis" elements="19" scaling="RPM"/>
	</table>
	<table name="Alternate Lo Octane Ignition Map #123" category="Mods" address="37fcd" type="3D" swapxy="true" scaling="Timing">
		<table name="Engine Load" address="503a" type="X Axis" elements="19" scaling="Load"/>
		<table name="RPM" address="500a" type="Y Axis" elements="19" scaling="RPM"/>
	</table>

	<table name="Alternate Base Wastegate Duty" category="Mods" address="381c8" type="2D" scaling="WGDuty">
		<table name="RPM" address="5278" type="Y Axis" elements="16" scaling="RPM"/>
	</table>
	<table name="Alternate Boost Desired Engine Load" category="Mods" address="381e8" type="2D" scaling="Load8">
		<table name="RPM" address="5278" type="Y Axis" elements="16" scaling="RPM"/>
	</table>
