| Line | Branch | Decision | Exec | Source |
|---|---|---|---|---|
| 1 | // content of this file was generated by TuneCanTool.java | |||
| 2 | ||||
| 3 | ✗ | static void cannedsparkDwellValues() { | ||
| 4 | #if DWELL_CURVE_SIZE == 8 | |||
| 5 | static const float hardCodedsparkDwellValues[8] = {4.0, 3.3, 3.2, 3.1, 3.05, 2.97, 2.88, 2.8}; | |||
| 6 | ✗ | copyArray(config->sparkDwellValues, hardCodedsparkDwellValues); | ||
| 7 | #endif | |||
| 8 | ✗ | } | ||
| 9 | ||||
| 10 | ✗ | static void canneddwellVoltageCorrValues() { | ||
| 11 | #if DWELL_CURVE_SIZE == 8 | |||
| 12 | static const float hardCodeddwellVoltageCorrValues[8] = {1.26, 1.2, 1.16, 1.1, 1.06, 1.0, 0.9, 0.8}; | |||
| 13 | ✗ | copyArray(config->dwellVoltageCorrValues, hardCodeddwellVoltageCorrValues); | ||
| 14 | #endif | |||
| 15 | ✗ | } | ||
| 16 | ||||
| 17 | ✗ | static void cannedidleAdvanceBins() { | ||
| 18 | ✗ | } | ||
| 19 | ||||
| 20 | ✗ | static void cannedcltIdleRpm() { | ||
| 21 | #if CLT_CURVE_SIZE == 16 | |||
| 22 | static const float hardCodedcltIdleRpm[16] = {1860.0, 1860.0, 1800.0, 1700.0, 1660.0, 1600.0, 1560.0, 1500.0, 1500.0, 1460.0, 1460.0, 1440.0, 1400.0, 1400.0, 1500.0, 1600.0}; | |||
| 23 | ✗ | copyArray(config->cltIdleRpm, hardCodedcltIdleRpm); | ||
| 24 | #endif // CLT_CURVE_SIZE | |||
| 25 | ✗ | } | ||
| 26 | ||||
| 27 | ✗ | static void cannedidleAdvance() { | ||
| 28 | #if IDLE_ADVANCE_CURVE_SIZE == 8 | |||
| 29 | static const float hardCodedidleAdvance[8] = {10.0, 10.571428, 11.142858, 11.714286, 12.285714, 12.857142, 13.428572, 14.0}; | |||
| 30 | ✗ | copyArray(config->idleAdvance, hardCodedidleAdvance); | ||
| 31 | #endif | |||
| 32 | ✗ | } | ||
| 33 | ||||
| 34 | ✗ | static void cannedignitionRpmBins() { | ||
| 35 | #if (IGN_RPM_COUNT == 16) && (IGN_LOAD_COUNT == 16) | |||
| 36 | static const float hardCodedignitionRpmBins[16] = {800.0, 1000.0, 1300.0, 1600.0, 2000.0, 2500.0, 3000.0, 3600.0, 4000.0, 4400.0, 4900.0, 5300.0, 5800.0, 6200.0, 7100.0, 8000.0}; | |||
| 37 | ✗ | copyArray(config->ignitionRpmBins, hardCodedignitionRpmBins); | ||
| 38 | #endif | |||
| 39 | ✗ | } | ||
| 40 | ||||
| 41 | ✗ | static void cannedignitionLoadBins() { | ||
| 42 | #if (IGN_RPM_COUNT == 16) && (IGN_LOAD_COUNT == 16) | |||
| 43 | static const float hardCodedignitionLoadBins[16] = {15.0, 27.0, 33.0, 45.0, 57.0, 69.0, 81.0, 93.0, 105.0, 129.0, 157.0, 186.0, 214.0, 243.0, 271.0, 300.0}; | |||
| 44 | ✗ | copyArray(config->ignitionLoadBins, hardCodedignitionLoadBins); | ||
| 45 | #endif | |||
| 46 | ✗ | } | ||
| 47 | ||||
| 48 | ✗ | static void cannedveRpmBins() { | ||
| 49 | #if (VE_LOAD_COUNT == 16) && (VE_RPM_COUNT == 16) | |||
| 50 | static const float hardCodedveRpmBins[16] = {800.0, 1000.0, 1300.0, 1600.0, 2000.0, 2500.0, 3000.0, 3600.0, 4000.0, 4400.0, 4900.0, 5300.0, 5800.0, 6200.0, 7100.0, 8000.0}; | |||
| 51 | ✗ | copyArray(config->veRpmBins, hardCodedveRpmBins); | ||
| 52 | #endif | |||
| 53 | ✗ | } | ||
| 54 | ||||
| 55 | ✗ | static void cannedveLoadBins() { | ||
| 56 | #if (VE_LOAD_COUNT == 16) && (VE_RPM_COUNT == 16) | |||
| 57 | static const float hardCodedveLoadBins[16] = {15.0, 27.0, 33.0, 45.0, 57.0, 69.0, 81.0, 93.0, 105.0, 129.0, 157.0, 186.0, 214.0, 243.0, 271.0, 300.0}; | |||
| 58 | ✗ | copyArray(config->veLoadBins, hardCodedveLoadBins); | ||
| 59 | #endif | |||
| 60 | ✗ | } | ||
| 61 | ||||
| 62 | ✗ | static void cannedboostRpmBins() { | ||
| 63 | #if (BOOST_LOAD_COUNT == 8) && (BOOST_RPM_COUNT == 8) | |||
| 64 | static const float hardCodedboostRpmBins[8] = {0.0, 1100.0, 2300.0, 3400.0, 4600.0, 5700.0, 6900.0, 8000.0}; | |||
| 65 | ✗ | copyArray(config->boostRpmBins, hardCodedboostRpmBins); | ||
| 66 | #endif | |||
| 67 | ✗ | } | ||
| 68 | ||||
| 69 | ✗ | static void cannedpedalToTpsRpmBins() { | ||
| 70 | #if PEDAL_TO_TPS_SIZE == 8 | |||
| 71 | static const float hardCodedpedalToTpsRpmBins[8] = {0.0, 1100.0, 2300.0, 3400.0, 4600.0, 5700.0, 6900.0, 8000.0}; | |||
| 72 | ✗ | copyArray(config->pedalToTpsRpmBins, hardCodedpedalToTpsRpmBins); | ||
| 73 | #endif | |||
| 74 | ✗ | } | ||
| 75 | ||||
| 76 | ✗ | static void cannedcltIdleCorr() { | ||
| 77 | #if CLT_IDLE_TABLE_CLT_SIZE == 16 | |||
| 78 | //todo hardCodedcltIdleCorr static const float hardCodedcltIdleCorr[16] = {1.1, 1.1, 0.9333, 0.9333, 0.9333, 0.8333, 0.6333, 0.6333, 0.5, 0.5, 0.4667, 0.3, 0.3, 0.3, 0.3, 0.3}; | |||
| 79 | //todo copyArray(config->cltIdleCorr, hardCodedcltIdleCorr); | |||
| 80 | #endif // CLT_IDLE_TABLE_CLT_SIZE | |||
| 81 | ✗ | } | ||
| 82 | ||||
| 83 | ✗ | static void cannedcltCrankingCorr() { | ||
| 84 | static const float hardCodedcltCrankingCorr[8] = {1.0, 1.0, 1.0, 0.8, 0.8, 0.8, 0.8, 0.8}; | |||
| 85 | ✗ | copyArray(config->cltCrankingCorr, hardCodedcltCrankingCorr); | ||
| 86 | ✗ | } | ||
| 87 |