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 // sd_active_wr
90  case 1301677887:
92 // sd_active_rd
93  case 1301677708:
95 // RPMValue
96  case 1699696209:
98 // rpmAcceleration
99  case -968092482:
101 // speedToRpmRatio
102  case -685727673:
104 // internalMcuTemperature
105  case -871891659:
107 // coolant
108  case -746111499:
109  return engine->outputChannels.coolant;
110 // intake
111  case 81034497:
112  return engine->outputChannels.intake;
113 // auxTemp1
114  case 1331305978:
116 // auxTemp2
117  case 1331305979:
119 // TPSValue
120  case 1272048601:
122 // throttlePedalPosition
123  case -84435626:
125 // tpsADC
126  case 513859492:
127  return engine->outputChannels.tpsADC;
128 // rawMaf
129  case 417956611:
130  return engine->outputChannels.rawMaf;
131 // mafMeasured
132  case -2032003569:
134 // MAPValue
135  case 1281101952:
137 // baroPressure
138  case -2066867294:
140 // lambdaValue
141  case -1119268893:
143 // VBatt
144  case 277722310:
145  return engine->outputChannels.VBatt;
146 // oilPressure
147  case 598268994:
149 // vvtPositionB1I
150  case 1384666006:
152 // actualLastInjection
153  case 681043126:
155 // injectorDutyCycle
156  case -354325031:
158 // tempLogging1
159  case -679828717:
161 // injectionOffset
162  case -243031057:
164 // engineMakeCodeNameCrc16
165  case 1726931380:
167 // wallFuelAmount
168  case 115540725:
170 // wallFuelCorrectionValue
171  case -1511514122:
173 // revolutionCounterSinceStart
174  case -1555114948:
176 // canReadCounter
177  case 1247316691:
179 // tpsAccelFuel
180  case -384925312:
182 // currentIgnitionMode
183  case -3603666:
185 // currentInjectionMode
186  case -921867120:
188 // coilDutyCycle
189  case 1029096098:
191 // etbTarget
192  case -2105094009:
194 // etb1DutyCycle
195  case 1021133095:
197 // fuelTankLevel
198  case 543832183:
200 // totalFuelConsumption
201  case 1417905588:
203 // fuelFlowRate
204  case 822501973:
206 // TPS2Value
207  case 686191307:
209 // tuneCrc16
210  case -1158359776:
212 // veValue
213  case 1933507837:
214  return engine->outputChannels.veValue;
215 // seconds
216  case -1962923820:
217  return engine->outputChannels.seconds;
218 // engineMode
219  case -2073424832:
221 // firmwareVersion
222  case 799075048:
224 // rawIdlePositionSensor
225  case -677561380:
227 // rawWastegatePosition
228  case 2039421097:
230 // accelerationLat
231  case -2133047664:
233 // accelerationLon
234  case -2133047208:
236 // detectedGear
237  case 283558758:
239 // maxTriggerReentrant
240  case -1595441102:
242 // rawLowFuelPressure
243  case -148455898:
245 // rawHighFuelPressure
246  case 990714516:
248 // lowFuelPressure
249  case -628741220:
251 // tcuDesiredGear
252  case 471298448:
254 // flexPercent
255  case 404628421:
257 // wastegatePositionSensor
258  case 53406649:
260 // highFuelPressure
261  case -1973799222:
263 // tempLogging3
264  case -679828715:
266 // tempLogging4
267  case -679828714:
269 // calibrationValue
270  case -1560670902:
272 // calibrationMode
273  case 1774505810:
275 // idleStepperTargetPosition
276  case 356548450:
278 // tsConfigVersion
279  case 1299611400:
281 // totalTriggerErrorCounter
282  case 2018173863:
284 // orderingErrorCounter
285  case -1326404407:
287 // warningCounter
288  case 1492724763:
290 // lastErrorCode
291  case -1346040258:
293 // debugFloatField1
294  case 1240443767:
296 // debugFloatField2
297  case 1240443768:
299 // debugFloatField3
300  case 1240443769:
302 // debugFloatField4
303  case 1240443770:
305 // debugFloatField5
306  case 1240443771:
308 // debugFloatField6
309  case 1240443772:
311 // debugFloatField7
312  case 1240443773:
314 // debugIntField1
315  case -183564276:
317 // debugIntField2
318  case -183564275:
320 // debugIntField3
321  case -183564274:
323 // debugIntField4
324  case -183564273:
326 // debugIntField5
327  case -183564272:
329 // rawTps1Primary
330  case -1051397637:
332 // rawClt
333  case 417946098:
334  return engine->outputChannels.rawClt;
335 // rawIat
336  case 417952269:
337  return engine->outputChannels.rawIat;
338 // rawOilPressure
339  case 2070002124:
341 // rawAcPressure
342  case 2079600300:
344 // fuelClosedLoopBinIdx
345  case 1342844099:
347 // rawPpsPrimary
348  case -347083354:
350 // rawPpsSecondary
351  case -1798336054:
353 // rawRawPpsPrimary
354  case 347493808:
356 // rawRawPpsSecondary
357  case -1318050732:
359 // idlePositionSensor
360  case 782384530:
362 // AFRValue
363  case -1093429509:
365 // VssAcceleration
366  case -513494613:
368 // lambdaValue2
369  case 1718832245:
371 // AFRValue2
372  case -1723435379:
374 // vvtPositionB1E
375  case 1384666002:
377 // vvtPositionB2I
378  case 1384666039:
380 // vvtPositionB2E
381  case 1384666035:
383 // rawTps1Secondary
384  case 2555743:
386 // rawTps2Primary
387  case -1382627620:
389 // rawTps2Secondary
390  case 70357120:
392 // accelerationVert
393  case -1670732400:
395 // gyroYaw
396  case 519838295:
397  return engine->outputChannels.gyroYaw;
398 // turboSpeed
399  case -4187390:
401 // tps1Split
402  case 644036825:
404 // tps2Split
405  case 683172218:
407 // tps12Split
408  case 1533250027:
410 // accPedalSplit
411  case 864210494:
413 // sparkCutReason
414  case -56739846:
416 // fuelCutReason
417  case -1225000603:
419 // mafEstimate
420  case -2045040875:
422 // instantRpm
423  case -658597643:
425 // rawMap
426  case 417956621:
427  return engine->outputChannels.rawMap;
428 // rawAfr
429  case 417943720:
430  return engine->outputChannels.rawAfr;
431 // calibrationValue2
432  case 37467836:
434 // luaInvocationCounter
435  case 1766132801:
437 // luaLastCycleDuration
438  case 823476017:
440 // vssEdgeCounter
441  case 385418550:
443 // issEdgeCounter
444  case 347478025:
446 // auxLinear1
447  case 803810399:
449 // auxLinear2
450  case 803810400:
452 // fallbackMap
453  case -940825965:
455 // instantMAPValue
456  case -1162308767:
458 // maxLockedDuration
459  case -558968637:
461 // canWriteOk
462  case 1193280444:
464 // canWriteNotOk
465  case 1964920685:
467 // triggerPrimaryFall
468  case 248437820:
470 // triggerPrimaryRise
471  case 248878000:
473 // triggerSecondaryFall
474  case 1016089632:
476 // triggerSecondaryRise
477  case 1016529812:
479 // triggerVvtFall
480  case 1537196344:
482 // triggerVvtRise
483  case 1537636524:
485 // triggerVvt2Fall
486  case -873628278:
488 // triggerVvt2Rise
489  case -873188098:
491 // starterState
492  case -1438648277:
494 // starterRelayDisable
495  case 1286045659:
497 // multiSparkCounter
498  case 680091441:
500 // extiOverflowCount
501  case 1630166812:
503 // alternatorStatus.pTerm
504  case -1097329029:
506 // alternatorStatus.iTerm
507  case -1105630476:
509 // alternatorStatus.dTerm
510  case -1111560081:
512 // alternatorStatus.output
513  case -1889531804:
515 // alternatorStatus.error
516  case -1110431971:
518 // alternatorStatus.resetCounter
519  case -1254008074:
521 // idleStatus.pTerm
522  case -1798819555:
524 // idleStatus.iTerm
525  case -1807121002:
527 // idleStatus.dTerm
528  case -1813050607:
530 // idleStatus.output
531  case 731084614:
533 // idleStatus.error
534  case -1811922497:
536 // idleStatus.resetCounter
537  case -424088744:
539 // etbStatus.pTerm
540  case -41846406:
542 // etbStatus.iTerm
543  case -50147853:
545 // etbStatus.dTerm
546  case -56077458:
548 // etbStatus.output
549  case -1418343613:
551 // etbStatus.error
552  case -54949348:
554 // etbStatus.resetCounter
555  case 2098956565:
557 // boostStatus.pTerm
558  case 407130790:
560 // boostStatus.iTerm
561  case 398829343:
563 // boostStatus.dTerm
564  case 392899738:
566 // boostStatus.output
567  case 513001967:
569 // boostStatus.error
570  case 394027848:
572 // boostStatus.resetCounter
573  case 308336833:
575 // wastegateDcStatus.pTerm
576  case 1569192907:
578 // wastegateDcStatus.iTerm
579  case 1560891460:
581 // wastegateDcStatus.dTerm
582  case 1554961855:
584 // wastegateDcStatus.output
585  case 206346164:
587 // wastegateDcStatus.error
588  case 1556089965:
590 // wastegateDcStatus.resetCounter
591  case 156247622:
593 // auxSpeed1
594  case 957036309:
596 // auxSpeed2
597  case 957036310:
599 // ISSValue
600  case 200047729:
602 // rawBattery
603  case 1520918538:
605 // coilState1
606  case -1124698530:
608 // coilState2
609  case -1124698529:
611 // coilState3
612  case -1124698528:
614 // coilState4
615  case -1124698527:
617 // coilState5
618  case -1124698526:
620 // coilState6
621  case -1124698525:
623 // coilState7
624  case -1124698524:
626 // coilState8
627  case -1124698523:
629 // coilState9
630  case -1124698522:
632 // coilState10
633  case 1539654222:
635 // coilState11
636  case 1539654223:
638 // coilState12
639  case 1539654224:
641 // injectorState1
642  case 2081101045:
644 // injectorState2
645  case 2081101046:
647 // injectorState3
648  case 2081101047:
650 // injectorState4
651  case 2081101048:
653 // injectorState5
654  case 2081101049:
656 // injectorState6
657  case 2081101050:
659 // injectorState7
660  case 2081101051:
662 // injectorState8
663  case 2081101052:
665 // injectorState9
666  case 2081101053:
668 // injectorState10
669  case -43142203:
671 // injectorState11
672  case -43142202:
674 // injectorState12
675  case -43142201:
677 // triggerChannel1
678  case -448033693:
680 // triggerChannel2
681  case -448033692:
683 // vvtChannel1
684  case -1764857649:
686 // vvtChannel2
687  case -1764857648:
689 // vvtChannel3
690  case -1764857647:
692 // vvtChannel4
693  case -1764857646:
695 // outputRequestPeriod
696  case 1894184322:
698 // mapFast
699  case -1263258735:
700  return engine->outputChannels.mapFast;
701 // rawMaf2
702  case 907666325:
703  return engine->outputChannels.rawMaf2;
704 // mafMeasured2
705  case 1663359009:
707 // schedulingUsedCount
708  case 967311941:
710 // vehicleSpeedKph
711  case -1925174695:
713 // Gego
714  case 2090288615:
715  return engine->outputChannels.Gego;
716 // testBenchIter
717  case 1092959609:
719 // oilTemp
720  case 1628523935:
721  return engine->outputChannels.oilTemp;
722 // fuelTemp
723  case -1077373465:
725 // ambientTemp
726  case 309572379:
728 // compressorDischargeTemp
729  case 553570450:
731 // compressorDischargePressure
732  case 1404346549:
734 // throttleInletPressure
735  case 769340240:
737 // ignitionOnTime
738  case 795671090:
740 // engineRunTime
741  case -1165835361:
743 // distanceTraveled
744  case -1357387481:
746 // afrGasolineScale
747  case 111403416:
749 // afr2GasolineScale
750  case 2029444810:
752 // wheelSlipRatio
753  case 398495089:
755 // actualLastInjectionStage2
756  case -1434098660:
758 // injectorDutyCycleStage2
759  case -1337459841:
761 // fastAdcErrorsCount
762  case -805019103:
764 // deviceUid
765  case 540029591:
767 // mc33810spiErrorCounter
768  case -1225980502:
770 // sadDwellRatioCounter
771  case -2146292012:
773 // injectionPrimingCounter
774  case 1526237246:
776 // tempLogging2
777  case -679828716:
779 // acPressure
780  case 1644550754:
782 // rawAuxAnalog1
783  case 98140608:
785 // rawAuxAnalog2
786  case 98140609:
788 // rawAuxAnalog3
789  case 98140610:
791 // rawAuxAnalog4
792  case 98140611:
794 // fastAdcErrorCallbackCount
795  case -2045395013:
797 // slowAdcErrorsCount
798  case -276658792:
800 // rawAuxTemp1
801  case -801974332:
803 // rawAuxTemp2
804  case -801974331:
806 // rawAmbientTemp
807  case 1781305509:
809 // totalFuelCorrection
810 #if EFI_ENGINE_CONTROL
811  case -1779658835:
813 #endif
814 // running.postCrankingFuelCorrection
815 #if EFI_ENGINE_CONTROL
816  case -1288205717:
818 #endif
819 // running.intakeTemperatureCoefficient
820 #if EFI_ENGINE_CONTROL
821  case 197173469:
823 #endif
824 // running.coolantTemperatureCoefficient
825 #if EFI_ENGINE_CONTROL
826  case 1822238385:
828 #endif
829 // running.timeSinceCrankingInSecs
830 #if EFI_ENGINE_CONTROL
831  case 526786951:
833 #endif
834 // running.baseFuel
835 #if EFI_ENGINE_CONTROL
836  case -42886021:
838 #endif
839 // running.fuel
840 #if EFI_ENGINE_CONTROL
841  case -794283008:
843 #endif
844 // afrTableYAxis
845 #if EFI_ENGINE_CONTROL
846  case 995190836:
848 #endif
849 // targetLambda
850 #if EFI_ENGINE_CONTROL
851  case -734904659:
853 #endif
854 // targetAFR
855 #if EFI_ENGINE_CONTROL
856  case 2122891301:
857  return engine->fuelComputer.targetAFR;
858 #endif
859 // stoichiometricRatio
860 #if EFI_ENGINE_CONTROL
861  case 341978922:
863 #endif
864 // sdTcharge_coff
865 #if EFI_ENGINE_CONTROL
866  case 1417236183:
868 #endif
869 // sdAirMassInOneCylinder
870 #if EFI_ENGINE_CONTROL
871  case 1650433343:
873 #endif
874 // normalizedCylinderFilling
875 #if EFI_ENGINE_CONTROL
876  case 1599780729:
878 #endif
879 // brokenInjector
880 #if EFI_ENGINE_CONTROL
881  case -1453554940:
883 #endif
884 // idealEngineTorque
885 #if EFI_ENGINE_CONTROL
886  case -791713926:
888 #endif
889 // injectorHwIssue
890 #if EFI_ENGINE_CONTROL
891  case -1237512821:
893 #endif
894 // baseDwell
895  case -1777838088:
897 // sparkDwell
898  case -903101570:
900 // dwellDurationAngle
901  case -1208021110:
903 // cltTimingCorrection
904  case 256951528:
906 // timingIatCorrection
907  case -1886479485:
909 // timingPidCorrection
910  case -319326974:
912 // baseIgnitionAdvance
913  case 493641747:
915 // correctedIgnitionAdvance
916  case 352421907:
918 // tractionAdvanceDrop
919  case -899895696:
921 // dwellVoltageCorrection
922  case -80612537:
924 // luaTimingAdd
925  case -309610760:
927 // luaTimingMult
928  case -1626770351:
930 // luaIgnitionSkip
931  case -1916613921:
933 // m_knockLevel
934  case -1571781441:
936 // m_knockRetard
937  case -94443575:
939 // m_knockThreshold
940  case -504596140:
942 // m_knockCount
943  case -1582096144:
945 // m_maximumRetard
946  case 164334513:
948 // m_knockFrequency
949  case -249826215:
951 // m_deadtime
952 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
953  case -1167844818:
955 #endif
956 // pressureDelta
957 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
958  case -376325528:
960 #endif
961 // pressureRatio
962 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
963  case -359858019:
965 #endif
966 // retardThresholdRpm
967 #if EFI_LAUNCH_CONTROL
968  case -1374156957:
970 #endif
971 // launchActivatePinState
972 #if EFI_LAUNCH_CONTROL
973  case 1928406809:
975 #endif
976 // isPreLaunchCondition
977 #if EFI_LAUNCH_CONTROL
978  case -1872098102:
980 #endif
981 // isLaunchCondition
982 #if EFI_LAUNCH_CONTROL
983  case -1959120957:
985 #endif
986 // isSwitchActivated
987 #if EFI_LAUNCH_CONTROL
988  case 1699495432:
990 #endif
991 // isClutchActivated
992 #if EFI_LAUNCH_CONTROL
993  case 1569151513:
995 #endif
996 // isBrakePedalActivated
997 #if EFI_LAUNCH_CONTROL
998  case 781025153:
1000 #endif
1001 // isValidInputPin
1002 #if EFI_LAUNCH_CONTROL
1003  case -978523544:
1005 #endif
1006 // activateSwitchCondition
1007 #if EFI_LAUNCH_CONTROL
1008  case 1265600943:
1010 #endif
1011 // rpmLaunchCondition
1012 #if EFI_LAUNCH_CONTROL
1013  case 859283926:
1015 #endif
1016 // rpmPreLaunchCondition
1017 #if EFI_LAUNCH_CONTROL
1018  case -774592003:
1020 #endif
1021 // speedCondition
1022 #if EFI_LAUNCH_CONTROL
1023  case 1722712413:
1025 #endif
1026 // tpsCondition
1027 #if EFI_LAUNCH_CONTROL
1028  case 827982787:
1030 #endif
1031 // isTpsInvalid
1032 #if EFI_BOOST_CONTROL
1033  case -575666209:
1034  return ___engine.module<BoostController>()->isTpsInvalid;
1035 #endif
1036 // m_shouldResetPid
1037 #if EFI_BOOST_CONTROL
1038  case 1846215200:
1039  return ___engine.module<BoostController>()->m_shouldResetPid;
1040 #endif
1041 // isBelowClosedLoopThreshold
1042 #if EFI_BOOST_CONTROL
1043  case 1826317915:
1044  return ___engine.module<BoostController>()->isBelowClosedLoopThreshold;
1045 #endif
1046 // isNotClosedLoop
1047 #if EFI_BOOST_CONTROL
1048  case -1642402810:
1049  return ___engine.module<BoostController>()->isNotClosedLoop;
1050 #endif
1051 // isZeroRpm
1052 #if EFI_BOOST_CONTROL
1053  case 2111912944:
1054  return ___engine.module<BoostController>()->isZeroRpm;
1055 #endif
1056 // hasInitBoost
1057 #if EFI_BOOST_CONTROL
1058  case -2011570052:
1059  return ___engine.module<BoostController>()->hasInitBoost;
1060 #endif
1061 // rpmTooLow
1062 #if EFI_BOOST_CONTROL
1063  case 193830616:
1064  return ___engine.module<BoostController>()->rpmTooLow;
1065 #endif
1066 // tpsTooLow
1067 #if EFI_BOOST_CONTROL
1068  case -1033638560:
1069  return ___engine.module<BoostController>()->tpsTooLow;
1070 #endif
1071 // mapTooLow
1072 #if EFI_BOOST_CONTROL
1073  case -734877977:
1074  return ___engine.module<BoostController>()->mapTooLow;
1075 #endif
1076 // isPlantValid
1077 #if EFI_BOOST_CONTROL
1078  case -304796912:
1079  return ___engine.module<BoostController>()->isPlantValid;
1080 #endif
1081 // isBoostControlled
1082 #if EFI_BOOST_CONTROL
1083  case -1074908546:
1084  return ___engine.module<BoostController>()->isBoostControlled;
1085 #endif
1086 // luaTargetAdd
1087 #if EFI_BOOST_CONTROL
1088  case 119157463:
1090 #endif
1091 // boostOutput
1092 #if EFI_BOOST_CONTROL
1093  case 1239062717:
1095 #endif
1096 // luaTargetMult
1097 #if EFI_BOOST_CONTROL
1098  case -362320880:
1100 #endif
1101 // openLoopPart
1102 #if EFI_BOOST_CONTROL
1103  case -1481117304:
1105 #endif
1106 // luaOpenLoopAdd
1107 #if EFI_BOOST_CONTROL
1108  case 1944984220:
1110 #endif
1111 // boostControllerClosedLoopPart
1112 #if EFI_BOOST_CONTROL
1113  case -707712709:
1115 #endif
1116 // boostControlTarget
1117 #if EFI_BOOST_CONTROL
1118  case -1712045196:
1120 #endif
1121 // acButtonState
1122  case -1809939546:
1124 // m_acEnabled
1125  case 449790048:
1126  return engine->module<AcController>()->m_acEnabled;
1127 // engineTooSlow
1128  case 1183441554:
1129  return engine->module<AcController>()->engineTooSlow;
1130 // engineTooFast
1131  case 1182962523:
1132  return engine->module<AcController>()->engineTooFast;
1133 // noClt
1134  case 268704037:
1135  return engine->module<AcController>()->noClt;
1136 // engineTooHot
1137  case 1467505752:
1138  return engine->module<AcController>()->engineTooHot;
1139 // tpsTooHigh
1140  case 249515182:
1141  return engine->module<AcController>()->tpsTooHigh;
1142 // isDisabledByLua
1143  case 1199244598:
1144  return engine->module<AcController>()->isDisabledByLua;
1145 // acCompressorState
1146  case -1015278697:
1147  return engine->module<AcController>()->acCompressorState;
1148 // acPressureTooLow
1149  case -1208328954:
1150  return engine->module<AcController>()->acPressureTooLow;
1151 // acPressureTooHigh
1152  case -1220300524:
1153  return engine->module<AcController>()->acPressureTooHigh;
1154 // latest_usage_ac_control
1155  case 1630756809:
1157 // acSwitchLastChangeTimeMs
1158  case -954065340:
1160 // cranking
1161  case 182391090:
1162  return ___engine.module<FanControl1>()->cranking;
1163 // notRunning
1164  case -496961865:
1165  return ___engine.module<FanControl1>()->notRunning;
1166 // disabledWhileEngineStopped
1167  case 142778571:
1168  return ___engine.module<FanControl1>()->disabledWhileEngineStopped;
1169 // brokenClt
1170  case 545954889:
1171  return ___engine.module<FanControl1>()->brokenClt;
1172 // enabledForAc
1173  case 291043035:
1174  return ___engine.module<FanControl1>()->enabledForAc;
1175 // hot
1176  case 193494032:
1177  return ___engine.module<FanControl1>()->hot;
1178 // cold
1179  case 2090155911:
1180  return ___engine.module<FanControl1>()->cold;
1181 // disabledBySpeed
1182  case 2105103113:
1183  return ___engine.module<FanControl1>()->disabledBySpeed;
1184 // tempAlive
1185  case -1017204596:
1187 // tempCode
1188  case -291050474:
1189  return ___engine.module<FanControl1>()->tempCode;
1190 // isPrime
1191  case -1429286498:
1192  return engine->module<FuelPumpController>()->isPrime;
1193 // engineTurnedRecently
1194  case -1270448973:
1195  return engine->module<FuelPumpController>()->engineTurnedRecently;
1196 // isFuelPumpOn
1197  case -344048084:
1198  return engine->module<FuelPumpController>()->isFuelPumpOn;
1199 // ignitionOn
1200  case -381519965:
1201  return engine->module<FuelPumpController>()->ignitionOn;
1202 // lua.fuelAdd
1203  case 1649801578:
1204  return engine->engineState.lua.fuelAdd;
1205 // lua.fuelMult
1206  case -1390672637:
1207  return engine->engineState.lua.fuelMult;
1208 // lua.clutchUpState
1209  case -427776066:
1211 // lua.brakePedalState
1212  case -1296201087:
1214 // lua.acRequestState
1215  case 1517904291:
1217 // lua.luaDisableEtb
1218  case 2055342630:
1220 // lua.luaIgnCut
1221  case -802271455:
1222  return engine->engineState.lua.luaIgnCut;
1223 // lua.luaFuelCut
1224  case 252935343:
1225  return engine->engineState.lua.luaFuelCut;
1226 // lua.clutchDownState
1227  case 133427185:
1229 // lua.disableDecelerationFuelCutOff
1230  case 1680936043:
1232 // sd.tCharge
1233  case -893334680:
1234  return engine->engineState.sd.tCharge;
1235 // sd.tChargeK
1236  case 584726739:
1237  return engine->engineState.sd.tChargeK;
1238 // crankingFuel.coolantTemperatureCoefficient
1239  case -1206067863:
1241 // crankingFuel.tpsCoefficient
1242  case 20251202:
1244 // crankingFuel.durationCoefficient
1245  case 1541006353:
1247 // crankingFuel.fuel
1248  case -180401224:
1250 // baroCorrection
1251  case -281693247:
1253 // hellenBoardId
1254  case -295556270:
1256 // clutchUpState
1257  case -797965330:
1259 // clutchDownState
1260  case 724244513:
1262 // brakePedalState
1263  case -705383759:
1265 // startStopState
1266  case 897099930:
1268 // smartChipState
1269  case -517673231:
1271 // smartChipRestartCounter
1272  case 1192769173:
1274 // smartChipAliveCounter
1275  case -1945673215:
1277 // startStopPhysicalState
1278  case -1943724937:
1280 // acrActive
1281  case -1548941801:
1282  return engine->engineState.acrActive;
1283 // acrEngineMovedRecently
1284  case -791147982:
1286 // heaterControlEnabled
1287  case -818268726:
1289 // luaDigitalState0
1290  case 945288534:
1292 // luaDigitalState1
1293  case 945288535:
1295 // luaDigitalState2
1296  case 945288536:
1298 // luaDigitalState3
1299  case 945288537:
1301 // startStopStateToggleCounter
1302  case -960645892:
1304 // luaSoftSparkSkip
1305  case -1117430949:
1307 // luaHardSparkSkip
1308  case -1498397570:
1310 // tractionControlSparkSkip
1311  case -1555684830:
1313 // desiredRpmLimit
1314  case -505351565:
1316 // fuelInjectionCounter
1317  case -1839290700:
1319 // globalSparkCounter
1320  case 642962903:
1322 // fuelingLoad
1323  case 583799407:
1324  return engine->engineState.fuelingLoad;
1325 // ignitionLoad
1326  case 1136482406:
1328 // veTableYAxis
1329  case 1568071542:
1331 // overDwellCounter
1332  case 1513852665:
1334 // overDwellNotScheduledCounter
1335  case 1629214715:
1337 // sparkOutOfOrderCounter
1338  case -1595596945:
1340 // vvtCamCounter
1341 #if EFI_SHAFT_POSITION_INPUT
1342  case 477303734:
1344 #endif
1345 // mapVvt_MAP_AT_SPECIAL_POINT
1346 #if EFI_SHAFT_POSITION_INPUT
1347  case -1727829859:
1349 #endif
1350 // mapVvt_MAP_AT_DIFF
1351 #if EFI_SHAFT_POSITION_INPUT
1352  case -1585778708:
1354 #endif
1355 // mapVvt_MAP_AT_CYCLE_COUNT
1356 #if EFI_SHAFT_POSITION_INPUT
1357  case 1637661099:
1359 #endif
1360 // mapVvt_map_peak
1361 #if EFI_SHAFT_POSITION_INPUT
1362  case 845799744:
1364 #endif
1365 // currentEngineDecodedPhase
1366 #if EFI_SHAFT_POSITION_INPUT
1367  case 162105111:
1369 #endif
1370 // triggerToothAngleError
1371 #if EFI_SHAFT_POSITION_INPUT
1372  case -280624712:
1374 #endif
1375 // triggerIgnoredToothCount
1376 #if EFI_SHAFT_POSITION_INPUT
1377  case 989545496:
1379 #endif
1380 // mapCamPrevToothAngle
1381 #if EFI_SHAFT_POSITION_INPUT
1382  case 1581624998:
1384 #endif
1385 // isDecodingMapCam
1386 #if EFI_SHAFT_POSITION_INPUT
1387  case 756216589:
1389 #endif
1390 // triggerElapsedUs
1391 #if EFI_SHAFT_POSITION_INPUT
1392  case 767689023:
1394 #endif
1395 // idleState
1396 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1397  case 1886060228:
1398  return ___engine.module<IdleController>().unmock().idleState;
1399 #endif
1400 // currentIdlePosition
1401 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1402  case -1149240133:
1404 #endif
1405 // baseIdlePosition
1406 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1407  case -580955469:
1408  return ___engine.module<IdleController>().unmock().baseIdlePosition;
1409 #endif
1410 // idleClosedLoop
1411 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1412  case 1267620087:
1413  return ___engine.module<IdleController>().unmock().idleClosedLoop;
1414 #endif
1415 // iacByTpsTaper
1416 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1417  case -2065814304:
1418  return ___engine.module<IdleController>().unmock().iacByTpsTaper;
1419 #endif
1420 // throttlePedalUpState
1421 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1422  case 767668487:
1424 #endif
1425 // mightResetPid
1426 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1427  case 149945022:
1428  return ___engine.module<IdleController>().unmock().mightResetPid;
1429 #endif
1430 // shouldResetPid
1431 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1432  case -226320012:
1433  return ___engine.module<IdleController>().unmock().shouldResetPid;
1434 #endif
1435 // wasResetPid
1436 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1437  case 1830486000:
1438  return ___engine.module<IdleController>().unmock().wasResetPid;
1439 #endif
1440 // mustResetPid
1441 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1442  case 1685322158:
1443  return ___engine.module<IdleController>().unmock().mustResetPid;
1444 #endif
1445 // isCranking
1446 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1447  case -1055526802:
1448  return ___engine.module<IdleController>().unmock().isCranking;
1449 #endif
1450 // isIacTableForCoasting
1451 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1452  case 705044501:
1454 #endif
1455 // notIdling
1456 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1457  case 1304441005:
1458  return ___engine.module<IdleController>().unmock().notIdling;
1459 #endif
1460 // needReset
1461 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1462  case -2049691836:
1463  return ___engine.module<IdleController>().unmock().needReset;
1464 #endif
1465 // isInDeadZone
1466 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1467  case -1661765918:
1468  return ___engine.module<IdleController>().unmock().isInDeadZone;
1469 #endif
1470 // isBlipping
1471 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1472  case 432464630:
1473  return ___engine.module<IdleController>().unmock().isBlipping;
1474 #endif
1475 // useClosedLoop
1476 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1477  case -87867258:
1478  return ___engine.module<IdleController>().unmock().useClosedLoop;
1479 #endif
1480 // badTps
1481 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1482  case -208884349:
1483  return ___engine.module<IdleController>().unmock().badTps;
1484 #endif
1485 // looksLikeRunning
1486 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1487  case -1126009613:
1488  return ___engine.module<IdleController>().unmock().looksLikeRunning;
1489 #endif
1490 // looksLikeCoasting
1491 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1492  case -1786409942:
1493  return ___engine.module<IdleController>().unmock().looksLikeCoasting;
1494 #endif
1495 // looksLikeCrankToIdle
1496 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1497  case -2079775742:
1499 #endif
1500 // isIdleCoasting
1501 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1502  case 2141275671:
1503  return ___engine.module<IdleController>().unmock().isIdleCoasting;
1504 #endif
1505 // isIdleClosedLoop
1506 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1507  case 1473688883:
1508  return ___engine.module<IdleController>().unmock().isIdleClosedLoop;
1509 #endif
1510 // idleTarget
1511 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1512  case 2127645162:
1513  return ___engine.module<IdleController>().unmock().idleTarget;
1514 #endif
1515 // targetRpmByClt
1516 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1517  case -1241725607:
1518  return ___engine.module<IdleController>().unmock().targetRpmByClt;
1519 #endif
1520 // targetRpmAc
1521 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1522  case 1156739423:
1523  return ___engine.module<IdleController>().unmock().targetRpmAc;
1524 #endif
1525 // iacByRpmTaper
1526 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1527  case -1638166696:
1528  return ___engine.module<IdleController>().unmock().iacByRpmTaper;
1529 #endif
1530 // luaAdd
1531 #if EFI_PROD_CODE && EFI_IDLE_CONTROL
1532  case 206059088:
1533  return ___engine.module<IdleController>().unmock().luaAdd;
1534 #endif
1535 // dcOutput0
1536  case 1242329357:
1537  return engine->dc_motors.dcOutput0;
1538 // isEnabled0_int
1539  case -1236599226:
1541 // isEnabled0
1542  case 1691876092:
1543  return engine->dc_motors.isEnabled0;
1544 // vvtTarget
1545 #if EFI_VVT_PID
1546  case -2132393748:
1548 #endif
1549 // vvtOutput
1550 #if EFI_VVT_PID
1551  case 1990697206:
1553 #endif
1554 // lambdaCurrentlyGood
1555 #if EFI_SHAFT_POSITION_INPUT
1556  case 350535927:
1558 #endif
1559 // lambdaMonitorCut
1560 #if EFI_SHAFT_POSITION_INPUT
1561  case 1849938842:
1563 #endif
1564 // lambdaTimeSinceGood
1565 #if EFI_SHAFT_POSITION_INPUT
1566  case 481450608:
1568 #endif
1569  }
1570  return EFI_ERROR_CODE;
1571 }
1572 #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)
luaOpenLoopAdd("Boost: Lua open loop add", SensorCategory.SENSOR_INPUTS, FieldType.INT, 1072, 1.0, -100.0, 100.0, "v")
luaTargetMult("Boost: Lua target mult", SensorCategory.SENSOR_INPUTS, FieldType.INT, 1064, 1.0, -100.0, 100.0, "v")
m_knockLevel("Knock: Current level", SensorCategory.SENSOR_INPUTS, FieldType.INT, 932, 1.0, 0.0, 0.0, "Volts")
m_maximumRetard("Knock: Max retard", SensorCategory.SENSOR_INPUTS, FieldType.INT, 960, 1.0, -1.0, -1.0, "")
pressureDelta("Fuel: Injector pressure delta", SensorCategory.SENSOR_INPUTS, FieldType.INT, 1028, 1.0, -1000.0, 1000.0, "kPa")
luaTargetAdd("Boost: Lua target add", SensorCategory.SENSOR_INPUTS, FieldType.INT16, 1060, 0.5, -100.0, 100.0, "v")
acButtonState("AC switch", SensorCategory.SENSOR_INPUTS, FieldType.INT8, 1080, 1.0, -1.0, -1.0, "")
boostOutput("Boost: Output", SensorCategory.SENSOR_INPUTS, FieldType.INT16, 1062, 0.01, -100.0, 100.0, "percent")
m_knockThreshold("Knock: Threshold", SensorCategory.SENSOR_INPUTS, FieldType.INT, 952, 1.0, -1.0, -1.0, "")
boostControlTarget("Boost: Target", SensorCategory.SENSOR_INPUTS, FieldType.INT16, 1078, 0.03333333333333333, 0.0, 300.0, "kPa")
tempAlive("tempAlive", SensorCategory.SENSOR_INPUTS, FieldType.INT8, 1100, 1.0, -1.0, -1.0, "")
m_knockCount("Knock: Count", SensorCategory.SENSOR_INPUTS, FieldType.INT, 956, 1.0, 0.0, 0.0, "")
openLoopPart("Boost: Open loop", SensorCategory.SENSOR_INPUTS, FieldType.INT, 1068, 1.0, -100.0, 100.0, "v")
latest_usage_ac_control("AC latest activity", SensorCategory.SENSOR_INPUTS, FieldType.INT, 1088, 1.0, -1.0, -1.0, "")
vvtOutput("vvtOutput", SensorCategory.SENSOR_INPUTS, FieldType.INT8, 1746, 0.5, 100.0, 1.0, "%")
m_knockRetard("Knock: Retard", SensorCategory.SENSOR_INPUTS, FieldType.INT, 948, 1.0, 0.0, 0.0, "deg")
m_deadtime("Fuel: injector lag", SensorCategory.SENSOR_INPUTS, FieldType.INT, 1024, 1.0, 0.0, 0.0, "ms")
boostControllerClosedLoopPart("Boost: Closed loop", SensorCategory.SENSOR_INPUTS, FieldType.INT8, 1076, 0.5, -50.0, 50.0, "%")
acSwitchLastChangeTimeMs("acSwitchLastChangeTimeMs", SensorCategory.SENSOR_INPUTS, FieldType.INT, 1092, 1.0, -1.0, -1.0, "")
m_knockFrequency("knock: frequency", SensorCategory.SENSOR_INPUTS, FieldType.INT, 964, 1.0, 0.0, 0.0, "Hz")
pressureRatio("Fuel: Injector pressure ratio", SensorCategory.SENSOR_INPUTS, FieldType.INT, 1032, 1.0, 0.0, 100.0, "")
tempCode("tempCode", SensorCategory.SENSOR_INPUTS, FieldType.INT8, 1101, 1.0, -1.0, -1.0, "")
vvtTarget("vvtTarget", SensorCategory.SENSOR_INPUTS, FieldType.INT16, 1744, 0.1, -90.0, 90.0, "deg")
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, 1000, 1 > rawAuxAnalog4
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< int16_t, 1000, 1 > rawAuxAnalog1
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< int16_t, 1000, 1 > rawAuxTemp1
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 > rawAuxTemp2
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, 1000, 1 > rawAuxAnalog3
scaled_channel< int16_t, 50, 1 > vvtPositionB2E
scaled_channel< int16_t, 1000, 1 > rawAmbientTemp
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, 1000, 1 > rawAcPressure
scaled_channel< int16_t, 100, 1 > auxTemp1
scaled_channel< int16_t, 1000, 1 > rawAuxAnalog2
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