rusEFI
The most advanced open source ECU
Loading...
Searching...
No Matches
canam_canned.cpp
Go to the documentation of this file.
1// content of this file was generated by TuneCanTool.java
2
3static 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
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
17static void cannedidleAdvanceBins() {
18}
19
20static 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};
24#endif // CLT_CURVE_SIZE
25}
26
27static 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
34static 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};
38#endif
39}
40
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};
45#endif
46}
47
48static 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};
52#endif
53}
54
55static 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};
59#endif
60}
61
62static 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
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
76static 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
83static 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}
static void cannedboostRpmBins()
static void cannedveLoadBins()
static void cannedcltCrankingCorr()
static void cannedignitionRpmBins()
static void cannedidleAdvance()
static void canneddwellVoltageCorrValues()
static void cannedveRpmBins()
static void cannedsparkDwellValues()
static void cannedpedalToTpsRpmBins()
static void cannedcltIdleRpm()
static void cannedignitionLoadBins()
static void cannedidleAdvanceBins()
static void cannedcltIdleCorr()
static constexpr persistent_config_s * config
static const uint8_t hardCodedveLoadBins[16]
static const uint16_t hardCodedveRpmBins[16]
static const float hardCodedignitionLoadBins[16]
static const float hardCodedignitionRpmBins[16]
static const float hardCodedcltIdleRpm[16]
scaled_channel< uint8_t, 50, 1 > dwellVoltageCorrValues[DWELL_CURVE_SIZE]
scaled_channel< uint8_t, 1, 100 > boostRpmBins[BOOST_RPM_COUNT]
scaled_channel< uint8_t, 1, 100 > pedalToTpsRpmBins[PEDAL_TO_TPS_RPM_SIZE]
scaled_channel< uint8_t, 1, 20 > cltIdleRpm[CLT_CURVE_SIZE]
scaled_channel< uint16_t, 100, 1 > sparkDwellValues[DWELL_CURVE_SIZE]