2013-02-05 00:27:06 -08:00
|
|
|
/*
|
|
|
|
This file has a few functions that are helpful for testing such as creating dummy maps and faking interrupts
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
Aim is to create an 8x8 table that looks like the below:
|
|
|
|
VE
|
|
|
|
_____________________________________________
|
|
|
|
|100| | | | | | | | 90 |
|
|
|
|
| 88|
|
|
|
|
| 75|
|
|
|
|
| 63|
|
|
|
|
| 50|
|
|
|
|
| 38|
|
|
|
|
| 25|
|
2013-02-05 01:41:41 -08:00
|
|
|
| 13| 15 | 20 |
|
2013-02-05 00:27:06 -08:00
|
|
|
| | 500|1500|2000|2500|3000|4000|5000|6000| RPM
|
|
|
|
|
|
|
|
This is a fairly standard 8x8 VE vs RPM 2D map
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
void dummyFuelTable()
|
|
|
|
{
|
|
|
|
table myFuelTable;
|
|
|
|
|
2013-02-05 01:41:41 -08:00
|
|
|
int tempXAxis[8] = {100,88,75,63,50,38,25,13};
|
|
|
|
*myFuelTable.axisY = *tempXAxis;
|
|
|
|
int tempYAxis[8] = {500,1500,2500,3000,4000,5000,6000};
|
|
|
|
*myFuelTable.axisY = *tempYAxis;
|
2013-02-05 00:27:06 -08:00
|
|
|
}
|