rusEFI
The most advanced open source ECU
output_lookup_generated.cpp
Go to the documentation of this file.
1 #if !EFI_UNIT_TEST
2 // generated by GetOutputValueConsumer.java
3 #include "pch.h"
4 #include "value_lookup.h"
5 float getOutputValueByName(const char *name) {
6  int hash = djb2lowerCase(name);
7  switch(hash) {
8 // sd_present
9  case -230533156:
11 // sd_logging_internal
12  case 708639006:
14 // triggerScopeReady
15  case -770506808:
17 // antilagTriggered
18  case 1155330306:
20 // isFanOn
21  case -1441751117:
23 // isO2HeaterOn
24  case 438683128:
26 // checkEngine
27  case -1790051911:
29 // needBurn
30  case 1368986296:
32 // sd_msd
33  case 459787871:
35 // isFan2On
36  case -333212891:
38 // toothLogReady
39  case -1662199734:
41 // isTpsError
42  case 14587330:
44 // isCltError
45  case 518760558:
47 // isMapError
48  case 23640681:
50 // isIatError
51  case 1505102185:
53 // isTriggerError
54  case -1746157889:
56 // hasCriticalError
57  case -2015383594:
59 // isWarnNow
60  case -1919072851:
62 // isPedalError
63  case -2035612655:
65 // isKnockChipOk
66  case 1830366389:
68 // launchTriggered
69  case -52473827:
71 // isTps2Error
72  case -1529936844:
74 // injectorFault
75  case 1608791711:
77 // ignitionFault
78  case -1158382750:
80 // isMainRelayOn
81  case -822552576:
83 // isUsbConnected
84  case 1836976702:
86 // dfcoActive
87  case -622949795:
89 // RPMValue
90  case 1699696209:
92 // rpmAcceleration
93  case -968092482:
95 // speedToRpmRatio
96  case -685727673:
98 // internalMcuTemperature
99  case -871891659:
101 // coolant
102  case -746111499:
103  return engine->outputChannels.coolant;
104 // intake
105  case 81034497:
106  return engine->outputChannels.intake;
107 // auxTemp1
108  case 1331305978:
110 // auxTemp2
111  case 1331305979:
113 // TPSValue
114  case 1272048601:
116 // throttlePedalPosition
117  case -84435626:
119 // tpsADC
120  case 513859492:
121  return engine->outputChannels.tpsADC;
122 // rawMaf
123  case 417956611:
124  return engine->outputChannels.rawMaf;
125 // mafMeasured
126  case -2032003569:
128 // MAPValue
129  case 1281101952:
131 // baroPressure
132  case -2066867294:
134 // lambdaValue
135  case -1119268893:
137 // VBatt
138  case 277722310:
139  return engine->outputChannels.VBatt;
140 // oilPressure
141  case 598268994:
143 // vvtPositionB1I
144  case 1384666006:
146 // actualLastInjection
147  case 681043126:
149 // injectorDutyCycle
150  case -354325031:
152 // injectionOffset
153  case -243031057:
155 // engineMakeCodeNameCrc16
156  case 1726931380:
158 // wallFuelAmount
159  case 115540725:
161 // wallFuelCorrectionValue
162  case -1511514122:
164 // revolutionCounterSinceStart
165  case -1555114948:
167 // canReadCounter
168  case 1247316691:
170 // tpsAccelFuel
171  case -384925312:
173 // currentIgnitionMode
174  case -3603666:
176 // currentInjectionMode
177  case -921867120:
179 // coilDutyCycle
180  case 1029096098:
182 // etbTarget
183  case -2105094009:
185 // etb1DutyCycle
186  case 1021133095:
188 // fuelTankLevel
189  case 543832183:
191 // totalFuelConsumption
192  case 1417905588:
194 // fuelFlowRate
195  case 822501973:
197 // TPS2Value
198  case 686191307:
200 // tuneCrc16
201  case -1158359776:
203 // veValue
204  case 1933507837:
205  return engine->outputChannels.veValue;
206 // seconds
207  case -1962923820:
208  return engine->outputChannels.seconds;
209 // engineMode
210  case -2073424832:
212 // firmwareVersion
213  case 799075048:
215 // rawIdlePositionSensor
216  case -677561380:
218 // rawWastegatePosition
219  case 2039421097:
221 // accelerationLat
222  case -2133047664:
224 // accelerationLon
225  case -2133047208:
227 // detectedGear
228  case 283558758:
230 // maxTriggerReentrant
231  case -1595441102:
233 // rawLowFuelPressure
234  case -148455898:
236 // rawHighFuelPressure
237  case 990714516:
239 // lowFuelPressure
240  case -628741220:
242 // tcuDesiredGear
243  case 471298448:
245 // flexPercent
246  case 404628421:
248 // wastegatePositionSensor
249  case 53406649:
251 // highFuelPressure
252  case -1973799222:
254 // calibrationValue
255  case -1560670902:
257 // calibrationMode
258  case 1774505810:
260 // idleStepperTargetPosition
261  case 356548450:
263 // tsConfigVersion
264  case 1299611400:
266 // totalTriggerErrorCounter
267  case 2018173863:
269 // orderingErrorCounter
270  case -1326404407:
272 // warningCounter
273  case 1492724763:
275 // lastErrorCode
276  case -1346040258:
278 // debugFloatField1
279  case 1240443767:
281 // debugFloatField2
282  case 1240443768:
284 // debugFloatField3
285  case 1240443769:
287 // debugFloatField4
288  case 1240443770:
290 // debugFloatField5
291  case 1240443771:
293 // debugFloatField6
294  case 1240443772:
296 // debugFloatField7
297  case 1240443773:
299 // debugIntField1
300  case -183564276:
302 // debugIntField2
303  case -183564275:
305 // debugIntField3
306  case -183564274:
308 // debugIntField4
309  case -183564273:
311 // debugIntField5
312  case -183564272:
314 // rawTps1Primary
315  case -1051397637:
317 // rawClt
318  case 417946098:
319  return engine->outputChannels.rawClt;
320 // rawIat
321  case 417952269:
322  return engine->outputChannels.rawIat;
323 // rawOilPressure
324  case 2070002124:
326 // fuelClosedLoopBinIdx
327  case 1342844099:
329 // rawPpsPrimary
330  case -347083354:
332 // rawPpsSecondary
333  case -1798336054:
335 // rawRawPpsPrimary
336  case 347493808:
338 // rawRawPpsSecondary
339  case -1318050732:
341 // idlePositionSensor
342  case 782384530:
344 // AFRValue
345  case -1093429509:
347 // VssAcceleration
348  case -513494613:
350 // lambdaValue2
351  case 1718832245:
353 // AFRValue2
354  case -1723435379:
356 // vvtPositionB1E
357  case 1384666002:
359 // vvtPositionB2I
360  case 1384666039:
362 // vvtPositionB2E
363  case 1384666035:
365 // rawTps1Secondary
366  case 2555743:
368 // rawTps2Primary
369  case -1382627620:
371 // rawTps2Secondary
372  case 70357120:
374 // accelerationVert
375  case -1670732400:
377 // gyroYaw
378  case 519838295:
379  return engine->outputChannels.gyroYaw;
380 // turboSpeed
381  case -4187390:
383 // tps1Split
384  case 644036825:
386 // tps2Split
387  case 683172218:
389 // tps12Split
390  case 1533250027:
392 // accPedalSplit
393  case 864210494:
395 // sparkCutReason
396  case -56739846:
398 // fuelCutReason
399  case -1225000603:
401 // mafEstimate
402  case -2045040875:
404 // instantRpm
405  case -658597643:
407 // rawMap
408  case 417956621:
409  return engine->outputChannels.rawMap;
410 // rawAfr
411  case 417943720:
412  return engine->outputChannels.rawAfr;
413 // calibrationValue2
414  case 37467836:
416 // luaInvocationCounter
417  case 1766132801:
419 // luaLastCycleDuration
420  case 823476017:
422 // vssEdgeCounter
423  case 385418550:
425 // issEdgeCounter
426  case 347478025:
428 // auxLinear1
429  case 803810399:
431 // auxLinear2
432  case 803810400:
434 // fallbackMap
435  case -940825965:
437 // instantMAPValue
438  case -1162308767:
440 // maxLockedDuration
441  case -558968637:
443 // canWriteOk
444  case 1193280444:
446 // canWriteNotOk
447  case 1964920685:
449 // triggerPrimaryFall
450  case 248437820:
452 // triggerPrimaryRise
453  case 248878000:
455 // triggerSecondaryFall
456  case 1016089632:
458 // triggerSecondaryRise
459  case 1016529812:
461 // triggerVvtFall
462  case 1537196344:
464 // triggerVvtRise
465  case 1537636524:
467 // triggerVvt2Fall
468  case -873628278:
470 // triggerVvt2Rise
471  case -873188098:
473 // starterState
474  case -1438648277:
476 // starterRelayDisable
477  case 1286045659:
479 // multiSparkCounter
480  case 680091441:
482 // extiOverflowCount
483  case 1630166812:
485 // alternatorStatus.pTerm
486  case -1097329029:
488 // alternatorStatus.iTerm
489  case -1105630476:
491 // alternatorStatus.dTerm
492  case -1111560081:
494 // alternatorStatus.output
495  case -1889531804:
497 // alternatorStatus.error
498  case -1110431971:
500 // alternatorStatus.resetCounter
501  case -1254008074:
503 // idleStatus.pTerm
504  case -1798819555:
506 // idleStatus.iTerm
507  case -1807121002:
509 // idleStatus.dTerm
510  case -1813050607:
512 // idleStatus.output
513  case 731084614:
515 // idleStatus.error
516  case -1811922497:
518 // idleStatus.resetCounter
519  case -424088744:
521 // etbStatus.pTerm
522  case -41846406:
524 // etbStatus.iTerm
525  case -50147853:
527 // etbStatus.dTerm
528  case -56077458:
530 // etbStatus.output
531  case -1418343613:
533 // etbStatus.error
534  case -54949348:
536 // etbStatus.resetCounter
537  case 2098956565:
539 // boostStatus.pTerm
540  case 407130790:
542 // boostStatus.iTerm
543  case 398829343:
545 // boostStatus.dTerm
546  case 392899738:
548 // boostStatus.output
549  case 513001967:
551 // boostStatus.error
552  case 394027848:
554 // boostStatus.resetCounter
555  case 308336833:
557 // wastegateDcStatus.pTerm
558  case 1569192907:
560 // wastegateDcStatus.iTerm
561  case 1560891460:
563 // wastegateDcStatus.dTerm
564  case 1554961855:
566 // wastegateDcStatus.output
567  case 206346164:
569 // wastegateDcStatus.error
570  case 1556089965:
572 // wastegateDcStatus.resetCounter
573  case 156247622:
575 // auxSpeed1
576  case 957036309:
578 // auxSpeed2
579  case 957036310:
581 // ISSValue
582  case 200047729:
584 // rawBattery
585  case 1520918538:
587 // coilState1
588  case -1124698530:
590 // coilState2
591  case -1124698529:
593 // coilState3
594  case -1124698528:
596 // coilState4
597  case -1124698527:
599 // coilState5
600  case -1124698526:
602 // coilState6
603  case -1124698525:
605 // coilState7
606  case -1124698524:
608 // coilState8
609  case -1124698523:
611 // coilState9
612  case -1124698522:
614 // coilState10
615  case 1539654222:
617 // coilState11
618  case 1539654223:
620 // coilState12
621  case 1539654224:
623 // injectorState1
624  case 2081101045:
626 // injectorState2
627  case 2081101046:
629 // injectorState3
630  case 2081101047:
632 // injectorState4
633  case 2081101048:
635 // injectorState5
636  case 2081101049:
638 // injectorState6
639  case 2081101050:
641 // injectorState7
642  case 2081101051:
644 // injectorState8
645  case 2081101052:
647 // injectorState9
648  case 2081101053:
650 // injectorState10
651  case -43142203:
653 // injectorState11
654  case -43142202:
656 // injectorState12
657  case -43142201:
659 // triggerChannel1
660  case -448033693:
662 // triggerChannel2
663  case -448033692:
665 // vvtChannel1
666  case -1764857649:
668 // vvtChannel2
669  case -1764857648:
671 // vvtChannel3
672  case -1764857647:
674 // vvtChannel4
675  case -1764857646:
677 // outputRequestPeriod
678  case 1894184322:
680 // mapFast
681  case -1263258735:
682  return engine->outputChannels.mapFast;
683 // rawMaf2
684  case 907666325:
685  return engine->outputChannels.rawMaf2;
686 // mafMeasured2
687  case 1663359009:
689 // schedulingUsedCount
690  case 967311941:
692 // vehicleSpeedKph
693  case -1925174695:
695 // Gego
696  case 2090288615:
697  return engine->outputChannels.Gego;
698 // testBenchIter
699  case 1092959609:
701 // oilTemp
702  case 1628523935:
703  return engine->outputChannels.oilTemp;
704 // fuelTemp
705  case -1077373465:
707 // ambientTemp
708  case 309572379:
710 // compressorDischargeTemp
711  case 553570450:
713 // compressorDischargePressure
714  case 1404346549:
716 // throttleInletPressure
717  case 769340240:
719 // ignitionOnTime
720  case 795671090:
722 // engineRunTime
723  case -1165835361:
725 // distanceTraveled
726  case -1357387481:
728 // afrGasolineScale
729  case 111403416:
731 // afr2GasolineScale
732  case 2029444810:
734 // wheelSlipRatio
735  case 398495089:
737 // actualLastInjectionStage2
738  case -1434098660:
740 // injectorDutyCycleStage2
741  case -1337459841:
743 // adc13bitCounter
744  case 1866067408:
746 // fastAdcErrorsCount
747  case -805019103:
749 // deviceUid
750  case 540029591:
752 // unexpectedAdcSample
753  case 605344036:
755 // sadDwellRatioCounter
756  case -2146292012:
758 // injectionPrimingCounter
759  case 1526237246:
761 // totalFuelCorrection
762 #if EFI_ENGINE_CONTROL
763  case -1779658835:
765 #endif
766 // running.postCrankingFuelCorrection
767 #if EFI_ENGINE_CONTROL
768  case -1288205717:
770 #endif
771 // running.intakeTemperatureCoefficient
772 #if EFI_ENGINE_CONTROL
773  case 197173469:
775 #endif
776 // running.coolantTemperatureCoefficient
777 #if EFI_ENGINE_CONTROL
778  case 1822238385:
780 #endif
781 // running.timeSinceCrankingInSecs
782 #if EFI_ENGINE_CONTROL
783  case 526786951:
785 #endif
786 // running.baseFuel
787 #if EFI_ENGINE_CONTROL
788  case -42886021:
790 #endif
791 // running.fuel
792 #if EFI_ENGINE_CONTROL
793  case -794283008:
795 #endif
796 // afrTableYAxis
797 #if EFI_ENGINE_CONTROL
798  case 995190836:
800 #endif
801 // targetLambda
802 #if EFI_ENGINE_CONTROL
803  case -734904659:
805 #endif
806 // targetAFR
807 #if EFI_ENGINE_CONTROL
808  case 2122891301:
809  return engine->fuelComputer.targetAFR;
810 #endif
811 // stoichiometricRatio
812 #if EFI_ENGINE_CONTROL
813  case 341978922:
815 #endif
816 // sdTcharge_coff
817 #if EFI_ENGINE_CONTROL
818  case 1417236183:
820 #endif
821 // sdAirMassInOneCylinder
822 #if EFI_ENGINE_CONTROL
823  case 1650433343:
825 #endif
826 // normalizedCylinderFilling
827 #if EFI_ENGINE_CONTROL
828  case 1599780729:
830 #endif
831 // brokenInjector
832 #if EFI_ENGINE_CONTROL
833  case -1453554940:
835 #endif
836 // idealEngineTorque
837 #if EFI_ENGINE_CONTROL
838  case -791713926:
840 #endif
841 // injectorHwIssue
842 #if EFI_ENGINE_CONTROL
843  case -1237512821:
845 #endif
846 // baseDwell
847  case -1777838088:
849 // sparkDwell
850  case -903101570:
852 // dwellDurationAngle
853  case -1208021110:
855 // cltTimingCorrection
856  case 256951528:
858 // timingIatCorrection
859  case -1886479485:
861 // timingPidCorrection
862  case -319326974:
864 // baseIgnitionAdvance
865  case 493641747:
867 // correctedIgnitionAdvance
868  case 352421907:
870 // tractionAdvanceDrop
871  case -899895696:
873 // dwellVoltageCorrection
874  case -80612537:
876 // luaTimingAdd
877  case -309610760:
879 // luaTimingMult
880  case -1626770351:
882 // luaIgnitionSkip
883  case -1916613921:
885 // m_knockLevel
886  case -1571781441:
888 // m_knockRetard
889  case -94443575:
891 // m_knockThreshold
892  case -504596140:
894 // m_knockCount
895  case -1582096144:
897 // m_maximumRetard
898  case 164334513:
900 // m_knockFrequency
901  case -249826215:
903 // m_deadtime
904 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
905  case -1167844818:
907 #endif
908 // pressureDelta
909 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
910  case -376325528:
912 #endif
913 // pressureRatio
914 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
915  case -359858019:
917 #endif
918 // retardThresholdRpm
919 #if EFI_LAUNCH_CONTROL
920  case -1374156957:
922 #endif
923 // launchActivatePinState
924 #if EFI_LAUNCH_CONTROL
925  case 1928406809:
927 #endif
928 // isPreLaunchCondition
929 #if EFI_LAUNCH_CONTROL
930  case -1872098102:
932 #endif
933 // isLaunchCondition
934 #if EFI_LAUNCH_CONTROL
935  case -1959120957:
937 #endif
938 // isSwitchActivated
939 #if EFI_LAUNCH_CONTROL
940  case 1699495432:
942 #endif
943 // isClutchActivated
944 #if EFI_LAUNCH_CONTROL
945  case 1569151513:
947 #endif
948 // isValidInputPin
949 #if EFI_LAUNCH_CONTROL
950  case -978523544:
952 #endif
953 // activateSwitchCondition
954 #if EFI_LAUNCH_CONTROL
955  case 1265600943:
957 #endif
958 // rpmLaunchCondition
959 #if EFI_LAUNCH_CONTROL
960  case 859283926:
962 #endif
963 // rpmPreLaunchCondition
964 #if EFI_LAUNCH_CONTROL
965  case -774592003:
967 #endif
968 // speedCondition
969 #if EFI_LAUNCH_CONTROL
970  case 1722712413:
972 #endif
973 // tpsCondition
974 #if EFI_LAUNCH_CONTROL
975  case 827982787:
977 #endif
978 // isTpsInvalid
979 #if EFI_BOOST_CONTROL
980  case -575666209:
981  return ___engine.module<BoostController>()->isTpsInvalid;
982 #endif
983 // m_shouldResetPid
984 #if EFI_BOOST_CONTROL
985  case 1846215200:
986  return ___engine.module<BoostController>()->m_shouldResetPid;
987 #endif
988 // isBelowClosedLoopThreshold
989 #if EFI_BOOST_CONTROL
990  case 1826317915:
991  return ___engine.module<BoostController>()->isBelowClosedLoopThreshold;
992 #endif
993 // isNotClosedLoop
994 #if EFI_BOOST_CONTROL
995  case -1642402810:
996  return ___engine.module<BoostController>()->isNotClosedLoop;
997 #endif
998 // isZeroRpm
999 #if EFI_BOOST_CONTROL
1000  case 2111912944:
1001  return ___engine.module<BoostController>()->isZeroRpm;
1002 #endif
1003 // hasInitBoost
1004 #if EFI_BOOST_CONTROL
1005  case -2011570052:
1006  return ___engine.module<BoostController>()->hasInitBoost;
1007 #endif
1008 // rpmTooLow
1009 #if EFI_BOOST_CONTROL
1010  case 193830616:
1011  return ___engine.module<BoostController>()->rpmTooLow;
1012 #endif
1013 // tpsTooLow
1014 #if EFI_BOOST_CONTROL
1015  case -1033638560:
1016  return ___engine.module<BoostController>()->tpsTooLow;
1017 #endif
1018 // mapTooLow
1019 #if EFI_BOOST_CONTROL
1020  case -734877977:
1021  return ___engine.module<BoostController>()->mapTooLow;
1022 #endif
1023 // isPlantValid
1024 #if EFI_BOOST_CONTROL
1025  case -304796912:
1026  return ___engine.module<BoostController>()->isPlantValid;
1027 #endif
1028 // isBoostControlled
1029 #if EFI_BOOST_CONTROL
1030  case -1074908546:
1031  return ___engine.module<BoostController>()->isBoostControlled;
1032 #endif
1033 // luaTargetAdd
1034 #if EFI_BOOST_CONTROL
1035  case 119157463:
1037 #endif
1038 // boostOutput
1039 #if EFI_BOOST_CONTROL
1040  case 1239062717:
1042 #endif
1043 // luaTargetMult
1044 #if EFI_BOOST_CONTROL
1045  case -362320880:
1047 #endif
1048 // openLoopPart
1049 #if EFI_BOOST_CONTROL
1050  case -1481117304:
1052 #endif
1053 // luaOpenLoopAdd
1054 #if EFI_BOOST_CONTROL
1055  case 1944984220:
1057 #endif
1058 // boostControllerClosedLoopPart
1059 #if EFI_BOOST_CONTROL
1060  case -707712709:
1062 #endif
1063 // boostControlTarget
1064 #if EFI_BOOST_CONTROL
1065  case -1712045196:
1067 #endif
1068 // acButtonState
1069  case -1809939546:
1071 // m_acEnabled
1072  case 449790048:
1073  return engine->module<AcController>()->m_acEnabled;
1074 // engineTooSlow
1075  case 1183441554:
1076  return engine->module<AcController>()->engineTooSlow;
1077 // engineTooFast
1078  case 1182962523:
1079  return engine->module<AcController>()->engineTooFast;
1080 // noClt
1081  case 268704037:
1082  return engine->module<AcController>()->noClt;
1083 // engineTooHot
1084  case 1467505752:
1085  return engine->module<AcController>()->engineTooHot;
1086 // tpsTooHigh
1087  case 249515182:
1088  return engine->module<AcController>()->tpsTooHigh;
1089 // isDisabledByLua
1090  case 1199244598:
1091  return engine->module<AcController>()->isDisabledByLua;
1092 // acCompressorState
1093  case -1015278697:
1094  return engine->module<AcController>()->acCompressorState;
1095 // latest_usage_ac_control
1096  case 1630756809:
1098 // acSwitchLastChangeTimeMs
1099  case -954065340:
1101 // cranking
1102  case 182391090:
1103  return ___engine.module<FanControl1>()->cranking;
1104 // notRunning
1105  case -496961865:
1106  return ___engine.module<FanControl1>()->notRunning;
1107 // disabledWhileEngineStopped
1108  case 142778571:
1109  return ___engine.module<FanControl1>()->disabledWhileEngineStopped;
1110 // brokenClt
1111  case 545954889:
1112  return ___engine.module<FanControl1>()->brokenClt;
1113 // enabledForAc
1114  case 291043035:
1115  return ___engine.module<FanControl1>()->enabledForAc;
1116 // hot
1117  case 193494032:
1118  return ___engine.module<FanControl1>()->hot;
1119 // cold
1120  case 2090155911:
1121  return ___engine.module<FanControl1>()->cold;
1122 // disabledBySpeed
1123  case 2105103113:
1124  return ___engine.module<FanControl1>()->disabledBySpeed;
1125 // tempAlive
1126  case -1017204596:
1128 // tempCode
1129  case -291050474:
1130  return ___engine.module<FanControl1>()->tempCode;
1131 // isPrime
1132  case -1429286498:
1133  return engine->module<FuelPumpController>()->isPrime;
1134 // engineTurnedRecently
1135  case -1270448973:
1136  return engine->module<FuelPumpController>()->engineTurnedRecently;
1137 // isFuelPumpOn
1138  case -344048084:
1139  return engine->module<FuelPumpController>()->isFuelPumpOn;
1140 // ignitionOn
1141  case -381519965:
1142  return engine->module<FuelPumpController>()->ignitionOn;
1143 // lua.fuelAdd
1144  case 1649801578:
1145  return engine->engineState.lua.fuelAdd;
1146 // lua.fuelMult
1147  case -1390672637:
1148  return engine->engineState.lua.fuelMult;
1149 // lua.clutchUpState
1150  case -427776066:
1152 // lua.brakePedalState
1153  case -1296201087:
1155 // lua.acRequestState
1156  case 1517904291:
1158 // lua.luaDisableEtb
1159  case 2055342630:
1161 // lua.luaIgnCut
1162  case -802271455:
1163  return engine->engineState.lua.luaIgnCut;
1164 // sd.tCharge
1165  case -893334680:
1166  return engine->engineState.sd.tCharge;
1167 // sd.tChargeK
1168  case 584726739:
1169  return engine->engineState.sd.tChargeK;
1170 // crankingFuel.coolantTemperatureCoefficient
1171  case -1206067863:
1173 // crankingFuel.tpsCoefficient
1174  case 20251202:
1176 // crankingFuel.durationCoefficient
1177  case 1541006353:
1179 // crankingFuel.fuel
1180  case -180401224:
1182 // baroCorrection
1183  case -281693247:
1185 // hellenBoardId
1186  case -295556270:
1188 // clutchUpState
1189  case -797965330:
1191 // clutchDownState
1192  case 724244513:
1194 // brakePedalState
1195  case -705383759:
1197 // startStopState
1198  case 897099930:
1200 // smartChipState
1201  case -517673231:
1203 // smartChipRestartCounter
1204  case 1192769173:
1206 // smartChipAliveCounter
1207  case -1945673215:
1209 // startStopPhysicalState
1210  case -1943724937:
1212 // acrActive
1213  case -1548941801:
1214  return engine->engineState.acrActive;
1215 // acrEngineMovedRecently
1216  case -791147982:
1218 // heaterControlEnabled
1219  case -818268726:
1221 // luaDigitalState0
1222  case 945288534:
1224 // luaDigitalState1
1225  case 945288535:
1227 // luaDigitalState2
1228  case 945288536:
1230 // luaDigitalState3
1231  case 945288537:
1233 // startStopStateToggleCounter
1234  case -960645892:
1236 // luaSoftSparkSkip
1237  case -1117430949:
1239 // luaHardSparkSkip
1240  case -1498397570:
1242 // tractionControlSparkSkip
1243  case -1555684830:
1245 // desiredRpmLimit
1246  case -505351565:
1248 // fuelInjectionCounter
1249  case -1839290700:
1251 // globalSparkCounter
1252  case 642962903:
1254 // fuelingLoad
1255  case 583799407:
1256  return engine->engineState.fuelingLoad;
1257 // ignitionLoad
1258  case 1136482406:
1260 // veTableYAxis
1261  case 1568071542:
1263 // overDwellCounter
1264  case 1513852665:
1266 // overDwellNotScheduledCounter
1267  case 1629214715:
1269 // sparkOutOfOrderCounter
1270  case -1595596945:
1272 // vvtCamCounter
1273 #if EFI_SHAFT_POSITION_INPUT
1274  case 477303734:
1276 #endif
1277 // mapVvt_MAP_AT_SPECIAL_POINT
1278 #if EFI_SHAFT_POSITION_INPUT
1279  case -1727829859:
1281 #endif
1282 // mapVvt_MAP_AT_DIFF
1283 #if EFI_SHAFT_POSITION_INPUT
1284  case -1585778708:
1286 #endif
1287 // mapVvt_MAP_AT_CYCLE_COUNT
1288 #if EFI_SHAFT_POSITION_INPUT
1289  case 1637661099:
1291 #endif
1292 // mapVvt_map_peak
1293 #if EFI_SHAFT_POSITION_INPUT
1294  case 845799744:
1296 #endif
1297 // currentEngineDecodedPhase
1298 #if EFI_SHAFT_POSITION_INPUT
1299  case 162105111:
1301 #endif
1302 // triggerToothAngleError
1303 #if EFI_SHAFT_POSITION_INPUT
1304  case -280624712:
1306 #endif
1307 // triggerIgnoredToothCount
1308 #if EFI_SHAFT_POSITION_INPUT
1309  case 989545496:
1311 #endif
1312 // mapCamPrevToothAngle
1313 #if EFI_SHAFT_POSITION_INPUT
1314  case 1581624998:
1316 #endif
1317 // isDecodingMapCam
1318 #if EFI_SHAFT_POSITION_INPUT
1319  case 756216589:
1321 #endif
1322 // triggerElapsedUs
1323 #if EFI_SHAFT_POSITION_INPUT
1324  case 767689023:
1326 #endif
1327 // idleState
1328 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1329  case 1886060228:
1330  return ___engine.module<IdleController>().unmock().idleState;
1331 #endif
1332 // currentIdlePosition
1333 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1334  case -1149240133:
1336 #endif
1337 // baseIdlePosition
1338 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1339  case -580955469:
1340  return ___engine.module<IdleController>().unmock().baseIdlePosition;
1341 #endif
1342 // idleClosedLoop
1343 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1344  case 1267620087:
1345  return ___engine.module<IdleController>().unmock().idleClosedLoop;
1346 #endif
1347 // iacByTpsTaper
1348 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1349  case -2065814304:
1350  return ___engine.module<IdleController>().unmock().iacByTpsTaper;
1351 #endif
1352 // throttlePedalUpState
1353 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1354  case 767668487:
1356 #endif
1357 // mightResetPid
1358 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1359  case 149945022:
1360  return ___engine.module<IdleController>().unmock().mightResetPid;
1361 #endif
1362 // shouldResetPid
1363 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1364  case -226320012:
1365  return ___engine.module<IdleController>().unmock().shouldResetPid;
1366 #endif
1367 // wasResetPid
1368 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1369  case 1830486000:
1370  return ___engine.module<IdleController>().unmock().wasResetPid;
1371 #endif
1372 // mustResetPid
1373 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1374  case 1685322158:
1375  return ___engine.module<IdleController>().unmock().mustResetPid;
1376 #endif
1377 // isCranking
1378 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1379  case -1055526802:
1380  return ___engine.module<IdleController>().unmock().isCranking;
1381 #endif
1382 // isIacTableForCoasting
1383 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1384  case 705044501:
1386 #endif
1387 // notIdling
1388 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1389  case 1304441005:
1390  return ___engine.module<IdleController>().unmock().notIdling;
1391 #endif
1392 // needReset
1393 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1394  case -2049691836:
1395  return ___engine.module<IdleController>().unmock().needReset;
1396 #endif
1397 // isInDeadZone
1398 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1399  case -1661765918:
1400  return ___engine.module<IdleController>().unmock().isInDeadZone;
1401 #endif
1402 // isBlipping
1403 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1404  case 432464630:
1405  return ___engine.module<IdleController>().unmock().isBlipping;
1406 #endif
1407 // useClosedLoop
1408 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1409  case -87867258:
1410  return ___engine.module<IdleController>().unmock().useClosedLoop;
1411 #endif
1412 // badTps
1413 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1414  case -208884349:
1415  return ___engine.module<IdleController>().unmock().badTps;
1416 #endif
1417 // looksLikeRunning
1418 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1419  case -1126009613:
1420  return ___engine.module<IdleController>().unmock().looksLikeRunning;
1421 #endif
1422 // looksLikeCoasting
1423 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1424  case -1786409942:
1425  return ___engine.module<IdleController>().unmock().looksLikeCoasting;
1426 #endif
1427 // looksLikeCrankToIdle
1428 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1429  case -2079775742:
1431 #endif
1432 // isIdleCoasting
1433 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1434  case 2141275671:
1435  return ___engine.module<IdleController>().unmock().isIdleCoasting;
1436 #endif
1437 // isIdleClosedLoop
1438 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1439  case 1473688883:
1440  return ___engine.module<IdleController>().unmock().isIdleClosedLoop;
1441 #endif
1442 // idleTarget
1443 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1444  case 2127645162:
1445  return ___engine.module<IdleController>().unmock().idleTarget;
1446 #endif
1447 // targetRpmByClt
1448 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1449  case -1241725607:
1450  return ___engine.module<IdleController>().unmock().targetRpmByClt;
1451 #endif
1452 // targetRpmAc
1453 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1454  case 1156739423:
1455  return ___engine.module<IdleController>().unmock().targetRpmAc;
1456 #endif
1457 // iacByRpmTaper
1458 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1459  case -1638166696:
1460  return ___engine.module<IdleController>().unmock().iacByRpmTaper;
1461 #endif
1462 // luaAdd
1463 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1464  case 206059088:
1465  return ___engine.module<IdleController>().unmock().luaAdd;
1466 #endif
1467 // dcOutput0
1468  case 1242329357:
1469  return engine->dc_motors.dcOutput0;
1470 // isEnabled0_int
1471  case -1236599226:
1473 // isEnabled0
1474  case 1691876092:
1475  return engine->dc_motors.isEnabled0;
1476 // vvtTarget
1477 #if EFI_VVT_PID
1478  case -2132393748:
1480 #endif
1481 // vvtOutput
1482 #if EFI_VVT_PID
1483  case 1990697206:
1485 #endif
1486 // lambdaCurrentlyGood
1487 #if EFI_SHAFT_POSITION_INPUT
1488  case 350535927:
1490 #endif
1491 // lambdaMonitorCut
1492 #if EFI_SHAFT_POSITION_INPUT
1493  case 1849938842:
1495 #endif
1496 // lambdaTimeSinceGood
1497 #if EFI_SHAFT_POSITION_INPUT
1498  case 481450608:
1500 #endif
1501  }
1502  return EFI_ERROR_CODE;
1503 }
1504 #endif
FuelComputer fuelComputer
Definition: engine.h:121
TriggerCentral triggerCentral
Definition: engine.h:286
dc_motors_s dc_motors
Definition: engine.h:314
IgnitionState ignitionState
Definition: engine.h:210
LaunchControlBase launchController
Definition: engine.h:192
EngineState engineState
Definition: engine.h:312
constexpr auto & module()
Definition: engine.h:177
LambdaMonitor lambdaMonitor
Definition: engine.h:207
TunerStudioOutputChannels outputChannels
Definition: engine.h:99
int djb2lowerCase(const char *str)
Definition: efilib.cpp:154
Engine ___engine
Engine * engine
float getOutputValueByName(const char *name)
tempCode("tempCode", SensorCategory.SENSOR_INPUTS, FieldType.INT8, 1093, 1.0, -1.0, -1.0, "")
m_deadtime("Fuel: injector lag", SensorCategory.SENSOR_INPUTS, FieldType.INT, 1016, 1.0, 0.0, 0.0, "ms")
acSwitchLastChangeTimeMs("acSwitchLastChangeTimeMs", SensorCategory.SENSOR_INPUTS, FieldType.INT, 1084, 1.0, -1.0, -1.0, "")
luaTargetMult("Boost: Lua target mult", SensorCategory.SENSOR_INPUTS, FieldType.INT, 1056, 1.0, -100.0, 100.0, "v")
tempAlive("tempAlive", SensorCategory.SENSOR_INPUTS, FieldType.INT8, 1092, 1.0, -1.0, -1.0, "")
luaOpenLoopAdd("Boost: Lua open loop add", SensorCategory.SENSOR_INPUTS, FieldType.INT, 1064, 1.0, -100.0, 100.0, "v")
acButtonState("AC switch", SensorCategory.SENSOR_INPUTS, FieldType.INT8, 1072, 1.0, -1.0, -1.0, "")
luaTargetAdd("Boost: Lua target add", SensorCategory.SENSOR_INPUTS, FieldType.INT16, 1052, 0.5, -100.0, 100.0, "v")
latest_usage_ac_control("AC latest activity", SensorCategory.SENSOR_INPUTS, FieldType.INT, 1080, 1.0, -1.0, -1.0, "")
openLoopPart("Boost: Open loop", SensorCategory.SENSOR_INPUTS, FieldType.INT, 1060, 1.0, -100.0, 100.0, "v")
pressureDelta("Fuel: Injector pressure delta", SensorCategory.SENSOR_INPUTS, FieldType.INT, 1020, 1.0, -1000.0, 1000.0, "kPa")
m_knockThreshold("Knock: Threshold", SensorCategory.SENSOR_INPUTS, FieldType.INT, 944, 1.0, -1.0, -1.0, "")
m_knockFrequency("knock: frequency", SensorCategory.SENSOR_INPUTS, FieldType.INT, 956, 1.0, 0.0, 0.0, "Hz")
m_maximumRetard("Knock: Max retard", SensorCategory.SENSOR_INPUTS, FieldType.INT, 952, 1.0, -1.0, -1.0, "")
pressureRatio("Fuel: Injector pressure ratio", SensorCategory.SENSOR_INPUTS, FieldType.INT, 1024, 1.0, 0.0, 100.0, "")
boostControlTarget("Boost: Target", SensorCategory.SENSOR_INPUTS, FieldType.INT16, 1070, 0.03333333333333333, 0.0, 300.0, "kPa")
vvtTarget("vvtTarget", SensorCategory.SENSOR_INPUTS, FieldType.INT16, 1736, 0.1, -90.0, 90.0, "deg")
boostOutput("Boost: Output", SensorCategory.SENSOR_INPUTS, FieldType.INT16, 1054, 0.01, -100.0, 100.0, "percent")
m_knockCount("Knock: Count", SensorCategory.SENSOR_INPUTS, FieldType.INT, 948, 1.0, 0.0, 0.0, "")
boostControllerClosedLoopPart("Boost: Closed loop", SensorCategory.SENSOR_INPUTS, FieldType.INT8, 1068, 0.5, -50.0, 50.0, "%")
m_knockRetard("Knock: Retard", SensorCategory.SENSOR_INPUTS, FieldType.INT, 940, 1.0, 0.0, 0.0, "deg")
vvtOutput("vvtOutput", SensorCategory.SENSOR_INPUTS, FieldType.INT8, 1738, 0.5, 100.0, 1.0, "%")
m_knockLevel("Knock: Current level", SensorCategory.SENSOR_INPUTS, FieldType.INT, 924, 1.0, 0.0, 0.0, "Volts")
scaled_channel< uint16_t, 100, 1 > fuel
uint8_t isEnabled0_int
cranking_fuel_s crankingFuel
scaled_channel< uint16_t, 100, 1 > veTableYAxis
uint32_t startStopStateToggleCounter
uint8_t overDwellNotScheduledCounter
scaled_channel< uint16_t, 1000, 1 > targetAFR
scaled_channel< uint16_t, 1000, 1 > stoichiometricRatio
scaled_channel< uint16_t, 10000, 1 > targetLambda
scaled_channel< uint16_t, 100, 1 > afrTableYAxis
percent_t currentIdlePosition
percent_t baseIdlePosition
percent_t idleClosedLoop
percent_t iacByTpsTaper
idle_state_e idleState
scaled_channel< int16_t, 100, 1 > timingPidCorrection
scaled_channel< int16_t, 50, 1 > baseIgnitionAdvance
scaled_channel< int16_t, 100, 1 > cltTimingCorrection
scaled_channel< int16_t, 50, 1 > correctedIgnitionAdvance
scaled_channel< int16_t, 50, 1 > tractionAdvanceDrop
scaled_channel< int16_t, 100, 1 > timingIatCorrection
scaled_channel< uint16_t, 100, 1 > lambdaTimeSinceGood
scaled_channel< uint16_t, 1000, 1 > afrGasolineScale
scaled_channel< int16_t, 100, 1 > compressorDischargeTemp
scaled_channel< int16_t, 1000, 1 > rawBattery
scaled_channel< uint16_t, 30, 1 > throttleInletPressure
scaled_channel< int16_t, 100, 1 > auxTemp2
scaled_channel< uint16_t, 100, 1 > speedToRpmRatio
scaled_channel< uint16_t, 100, 1 > coilDutyCycle
scaled_channel< int16_t, 1000, 1 > accelerationLat
scaled_channel< int16_t, 100, 1 > idlePositionSensor
scaled_channel< int16_t, 100, 1 > wastegatePositionSensor
scaled_channel< int16_t, 1000, 1 > accelerationVert
scaled_channel< uint16_t, 100, 1 > vehicleSpeedKph
scaled_channel< int16_t, 10, 1 > highFuelPressure
scaled_channel< uint16_t, 10, 1 > fallbackMap
scaled_channel< int16_t, 1000, 1 > rawTps2Secondary
scaled_channel< int16_t, 1000, 1 > rawTps1Secondary
scaled_channel< int16_t, 100, 1 > TPS2Value
scaled_channel< uint16_t, 10, 1 > mafEstimate
scaled_channel< uint16_t, 10000, 1 > lambdaValue
scaled_channel< int16_t, 1000, 1 > rawHighFuelPressure
scaled_channel< uint16_t, 1000, 1 > rawMaf
scaled_channel< int16_t, 100, 1 > ambientTemp
scaled_channel< uint16_t, 30, 1 > oilPressure
scaled_channel< int16_t, 1000, 1 > rawTps1Primary
scaled_channel< int16_t, 1000, 1 > rawOilPressure
scaled_channel< uint16_t, 30, 1 > baroPressure
scaled_channel< uint16_t, 1000, 1 > afr2GasolineScale
scaled_channel< uint8_t, 2, 1 > injectorDutyCycle
scaled_channel< int16_t, 100, 1 > tps12Split
scaled_channel< int16_t, 1000, 1 > rawWastegatePosition
scaled_channel< uint16_t, 10, 1 > veValue
scaled_channel< uint16_t, 1000, 1 > VBatt
scaled_channel< int16_t, 100, 1 > fuelTankLevel
scaled_channel< int16_t, 50, 1 > vvtPositionB1E
scaled_channel< uint16_t, 300, 1 > VssAcceleration
scaled_channel< int16_t, 1000, 1 > accelerationLon
scaled_channel< int16_t, 1000, 1 > rawIat
scaled_channel< uint16_t, 1000, 1 > AFRValue2
scaled_channel< int16_t, 100, 1 > accPedalSplit
scaled_channel< int16_t, 100, 1 > fuelTemp
scaled_channel< int16_t, 100, 1 > wallFuelCorrectionValue
scaled_channel< uint16_t, 30, 1 > compressorDischargePressure
scaled_channel< int16_t, 1000, 1 > rawLowFuelPressure
scaled_channel< int16_t, 100, 1 > etbTarget
scaled_channel< int16_t, 300, 1 > tpsAccelFuel
scaled_channel< uint16_t, 1000, 1 > rawMap
scaled_channel< uint16_t, 1000, 1 > AFRValue
scaled_channel< uint16_t, 100, 1 > Gego
scaled_channel< int16_t, 30, 1 > lowFuelPressure
scaled_channel< int16_t, 1000, 1 > rawClt
scaled_channel< int16_t, 100, 1 > etb1DutyCycle
scaled_channel< uint16_t, 30, 1 > MAPValue
scaled_channel< int16_t, 100, 1 > intake
scaled_channel< int16_t, 1000, 1 > gyroYaw
scaled_channel< int16_t, 50, 1 > vvtPositionB2E
scaled_channel< uint16_t, 300, 1 > actualLastInjectionStage2
scaled_channel< int16_t, 100, 1 > tps1Split
scaled_channel< uint16_t, 100, 1 > wallFuelAmount
scaled_channel< uint8_t, 2, 1 > flexPercent
scaled_channel< uint16_t, 1000, 1 > rawMaf2
scaled_channel< int16_t, 100, 1 > oilTemp
scaled_channel< uint16_t, 10, 1 > distanceTraveled
scaled_channel< int16_t, 100, 1 > throttlePedalPosition
scaled_channel< uint16_t, 10, 1 > mafMeasured2
scaled_channel< int16_t, 100, 1 > tps2Split
scaled_channel< uint16_t, 10, 1 > mafMeasured
scaled_channel< uint16_t, 200, 1 > fuelFlowRate
scaled_channel< uint8_t, 2, 1 > injectorDutyCycleStage2
scaled_channel< uint16_t, 1000, 1 > rawAfr
scaled_channel< uint16_t, 10000, 1 > lambdaValue2
scaled_channel< uint16_t, 300, 1 > actualLastInjection
scaled_channel< uint16_t, 30, 1 > instantMAPValue
scaled_channel< int16_t, 1000, 1 > rawIdlePositionSensor
scaled_channel< int16_t, 100, 1 > coolant
scaled_channel< int16_t, 50, 1 > vvtPositionB2I
scaled_channel< int16_t, 50, 1 > vvtPositionB1I
scaled_channel< int16_t, 100, 1 > TPSValue
scaled_channel< int16_t, 1000, 1 > rawTps2Primary
scaled_channel< int16_t, 100, 1 > auxTemp1
scaled_channel< int16_t, 100, 1 > dTerm
scaled_channel< int16_t, 100, 1 > error
scaled_channel< int16_t, 100, 1 > output
scaled_channel< int16_t, 100, 1 > iTerm
scaled_channel< uint16_t, 100, 1 > baseFuel
scaled_channel< uint16_t, 100, 1 > fuel
scaled_channel< int16_t, 100, 1 > tCharge