Skip to content

Commit 00f2b3c

Browse files
committed
Merge branch 'main' of github.com:amrikarisma/fw-custom-mazduino into mazduino
2 parents 9af1884 + b049022 commit 00f2b3c

21 files changed

Lines changed: 4107 additions & 3928 deletions

board.mk

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,3 @@ DDEFS += -DKNOCK_SPECTROGRAM=TRUE
1818
# assign critical LED to a non-existent pin if you do not have it on your board
1919
# good old PD14 is still the default value
2020
# DDEFS += -DLED_CRITICAL_ERROR_BRAIN_PIN=Gpio::I15
21-
22-
# we do not have much Lua RAM, let's drop some fancy functions
23-
# DDEFS += -DWITH_LUA_CONSUMPTION=FALSE
24-
# DDEFS += -DWITH_LUA_PID=FALSE
25-
# DDEFS += -DWITH_LUA_STOP_ENGINE=FALSE

board_configuration.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,3 +64,6 @@ void customBoardTsAction(uint16_t subSystem, uint16_t index);
6464
custom_board_ts_command = customBoardTsAction;
6565
}
6666

67+
void setup_custom_board_overrides() {
68+
custom_board_DefaultConfiguration = customBoardDefaultConfiguration;
69+
}

ext/rusefi

Submodule rusefi updated 818 files

extra.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
struct_no_prefix extra_s
2+
bit extraBit
3+
int extraInt
24
end_struct

generated/console/binary/generated/data_logs.ini

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ entry = RPMValue, "RPM", int, "%d"
3434
entry = rpmAcceleration, "dRPM", int, "%d"
3535
entry = speedToRpmRatio, "Gearbox Ratio", float, "%.3f"
3636
entry = internalMcuTemperature, "ECU: CPU Temperature", int, "%d"
37+
entry = internalVref, "internalVref", float, "%.3f"
3738
entry = coolant, "CLT", float, "%.3f"
3839
entry = intake, "IAT", float, "%.3f"
3940
entry = auxTemp1, "auxTemp1", float, "%.3f"
@@ -50,6 +51,7 @@ entry = VBatt, "VBatt", float, "%.3f"
5051
entry = oilPressure, "Oil Pressure", float, "%.3f"
5152
entry = vvtPositionB1I, "VVT: bank 1 intake", float, "%.3f"
5253
entry = actualLastInjection, "Fuel: Last inj pulse width", float, "%.3f"
54+
entry = actualLastInjectionRatio, "Fuel: Last inj pulse growth", float, "%.3f"
5355
entry = stopEngineCode, "stopEngineCode", int, "%d"
5456
entry = injectorDutyCycle, "Fuel: injector duty cycle", float, "%.3f"
5557
entry = tempLogging1, "tempLogging1", int, "%d"
@@ -169,11 +171,13 @@ entry = tps1Split, "tps1Split", float, "%.3f"
169171
entry = tps2Split, "tps2Split", float, "%.3f"
170172
entry = tps12Split, "tps12Split", float, "%.3f"
171173
entry = accPedalSplit, "accPedalSplit", float, "%.3f"
174+
entry = accPedalUnfiltered, "accPedalUnfiltered", float, "%.3f"
172175
entry = sparkCutReason, "Ign: Cut Code", int, "%d"
173176
entry = fuelCutReason, "Fuel: Cut Code", int, "%d"
174177
entry = mafEstimate, "Air: Flow estimate", float, "%.3f"
175178
entry = instantRpm, "sync: instant RPM", int, "%d"
176179
entry = rawMap, "rawMap", float, "%.3f"
180+
entry = rawMapFast, "rawMapFast", float, "%.3f"
177181
entry = rawAfr, "rawAfr", float, "%.3f"
178182
entry = calibrationValue2, "calibrationValue2", float, "%.3f"
179183
entry = luaInvocationCounter, "Lua: Tick counter", int, "%d"
@@ -330,6 +334,8 @@ entry = targetAfrBlendBias1, "targetAfrBlendBias 1", float, "%.3f"
330334
entry = targetAfrBlendBias2, "targetAfrBlendBias 2", float, "%.3f"
331335
entry = targetAfrBlendOutput1, "targetAfrBlendOutput 1", float, "%.3f"
332336
entry = targetAfrBlendOutput2, "targetAfrBlendOutput 2", float, "%.3f"
337+
entry = targetAfrBlendYAxis1, "targetAfrBlendYAxis 1", float, "%.3f"
338+
entry = targetAfrBlendYAxis2, "targetAfrBlendYAxis 2", float, "%.3f"
333339
entry = coilState1, "coilState1", int, "%d"
334340
entry = coilState2, "coilState2", int, "%d"
335341
entry = coilState3, "coilState3", int, "%d"
@@ -360,6 +366,7 @@ entry = vvtChannel1, "bank 1 intake cam input", int, "%d"
360366
entry = vvtChannel2, "bank 1 exhaust cam input", int, "%d"
361367
entry = vvtChannel3, "bank 2 intake cam input", int, "%d"
362368
entry = vvtChannel4, "bank 2 exhaust cam input", int, "%d"
369+
entry = isMapPredictionActive, "AE: Map Prediction Active", int, "%d"
363370
entry = outputRequestPeriod, "outputRequestPeriod", int, "%d"
364371
entry = mapFast, "mapFast", float, "%.3f"
365372
entry = luaGauges1, "Lua: Gauge 1", float, "%.3f"
@@ -413,12 +420,12 @@ entry = injectorDiagnostic10, "injectorDiagnostic 10", int, "%d"
413420
entry = injectorDiagnostic11, "injectorDiagnostic 11", int, "%d"
414421
entry = injectorDiagnostic12, "injectorDiagnostic 12", int, "%d"
415422
entry = actualLastInjectionStage2, "Fuel: Last inj pulse width stg 2", float, "%.3f"
423+
entry = actualLastInjectionRatioStage2, "Fuel: Last inj pulse growth stg 2", float, "%.3f"
416424
entry = injectorDutyCycleStage2, "Fuel: injector duty cycle stage 2", float, "%.3f"
417425
entry = rawFlexFreq, "rawFlexFreq", int, "%d"
418426
entry = canReWidebandCmdStatus, "canReWidebandCmdStatus", int, "%d"
419427
entry = deviceUid, "deviceUid", int, "%d"
420428
entry = mc33810spiErrorCounter, "mc33810spiErrorCounter", int, "%d"
421-
entry = sadDwellRatioCounter, "sadDwellRatioCounter", int, "%d"
422429
entry = injectionPrimingCounter, "injectionPrimingCounter", int, "%d"
423430
entry = tempLogging2, "tempLogging2", int, "%d"
424431
entry = acPressure, "A/C pressure", float, "%.3f"
@@ -614,6 +621,7 @@ entry = luaTargetAdd, "Boost: Lua target add", float, "%.3f"
614621
entry = luaTargetMult, "Boost: Lua target mult", float, "%.3f"
615622
entry = boostControlTarget, "Boost: Target", float, "%.3f"
616623
entry = openLoopPart, "Boost: Open loop", float, "%.3f"
624+
entry = openLoopYAxis, "openLoopYAxis", float, "%.3f"
617625
entry = luaOpenLoopAdd, "Boost: Lua open loop add", float, "%.3f"
618626
entry = boostControllerClosedLoopPart, "Boost: Closed loop", float, "%.3f"
619627
entry = boostOutput, "Boost: Output", float, "%.3f"
@@ -720,9 +728,13 @@ entry = globalSparkCounter, "Ign: Spark counter", int, "%d"
720728
entry = fuelingLoad, "Fuel: Load", float, "%.3f"
721729
entry = ignitionLoad, "Ignition: load", float, "%.3f"
722730
entry = veTableYAxis, "veTableYAxis", float, "%.3f"
723-
entry = overDwellCounter, "overDwellCounter", int, "%d"
724-
entry = overDwellNotScheduledCounter, "overDwellNotScheduledCounter", int, "%d"
725-
entry = sparkOutOfOrderCounter, "sparkOutOfOrderCounter", int, "%d"
731+
entry = veTableIdleYAxis, "veTableIdleYAxis", float, "%.3f"
732+
entry = overDwellCanceledCounter, "Ignition: overcharge canceled", int, "%d"
733+
entry = overDwellNotScheduledCounter, "Ignition: overDwellNotScheduled", int, "%d"
734+
entry = sparkOutOfOrderCounter, "Ignition: sparkOutOfOrder", int, "%d"
735+
entry = dwellUnderChargeCounter, "Ignition: undecharge warnings", int, "%d"
736+
entry = dwellOverChargeCounter, "Ignition: overcharge warnings", int, "%d"
737+
entry = dwellActualRatio, "Ignition: Dwell deviation", float, "%.3f"
726738
entry = stftCorrection1, "STFT: Bank 1", float, "%.3f"
727739
entry = stftCorrection2, "STFT: Bank 2", float, "%.3f"
728740
entry = tpsFrom, "Fuel: TPS AE from", float, "%.3f"
@@ -831,7 +843,6 @@ entry = iacByTpsTaper, "idle: iacByTpsTaper portion", float, "%.3f"
831843
entry = mightResetPid, "idle: mightResetPid", int, "%d"
832844
entry = shouldResetPid, "Idle: shouldResetPid", int, "%d"
833845
entry = wasResetPid, "Idle: wasResetPid", int, "%d"
834-
entry = mustResetPid, "Idle: mustResetPid", int, "%d"
835846
entry = isCranking, "Idle: cranking", int, "%d"
836847
entry = isIacTableForCoasting, "isIacTableForCoasting", int, "%d"
837848
entry = needReset, "Idle: reset", int, "%d"
@@ -843,7 +854,10 @@ entry = looksLikeCoasting, "looksLikeCoasting", int, "%d"
843854
entry = looksLikeCrankToIdle, "looksLikeCrankToIdle", int, "%d"
844855
entry = isIdleCoasting, "Idle: coasting", int, "%d"
845856
entry = isIdleClosedLoop, "Idle: Closed loop active", int, "%d"
857+
entry = isIdling, "Idle: idling", int, "%d"
846858
entry = idleTarget, "Idle: Target RPM", int, "%d"
859+
entry = idleEntryRpm, "Idle: Entry threshold", int, "%d"
860+
entry = idleExitRpm, "Idle: Exit threshold", int, "%d"
847861
entry = targetRpmByClt, "Idle: Target RPM base", int, "%d"
848862
entry = targetRpmAc, "Idle: Target A/C RPM", int, "%d"
849863
entry = iacByRpmTaper, "idle: iacByRpmTaper portion", float, "%.3f"

generated/console/binary/generated/fancy_content.ini

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ indicatorPanel = launch_control_stateIndicatorPanel, 2
175175
indicator = {speedCondition}, "speedCondition No", "speedCondition Yes"
176176
indicator = {tpsCondition}, "tpsCondition No", "tpsCondition Yes"
177177
indicator = {luaLaunchState}, "luaLaunchState No", "luaLaunchState Yes"
178+
indicator = {luaLaunchState}, "luaLaunchState No", "luaLaunchState Yes"
178179

179180
dialog = launch_control_stateDialog, "launch_control_state"
180181
panel = launch_control_stateIndicatorPanel
@@ -234,6 +235,7 @@ dialog = boost_controlDialog, "boost_control"
234235
graphLine = boostControlTarget
235236
graphLine = openLoopPart
236237
liveGraph = boost_control_2_Graph, "Graph", South
238+
graphLine = openLoopYAxis
237239
graphLine = luaOpenLoopAdd
238240
graphLine = boostControllerClosedLoopPart
239241
graphLine = boostOutput
@@ -492,7 +494,6 @@ indicatorPanel = idle_stateIndicatorPanel, 2
492494
indicator = {mightResetPid}, "mightResetPid No", "mightResetPid Yes"
493495
indicator = {shouldResetPid}, "shouldResetPid No", "shouldResetPid Yes"
494496
indicator = {wasResetPid}, "wasResetPid No", "wasResetPid Yes"
495-
indicator = {mustResetPid}, "mustResetPid No", "mustResetPid Yes"
496497
indicator = {isCranking}, "isCranking No", "isCranking Yes"
497498
indicator = {isIacTableForCoasting}, "isIacTableForCoasting No", "isIacTableForCoasting Yes"
498499
indicator = {needReset}, "needReset No", "needReset Yes"
@@ -504,6 +505,7 @@ indicatorPanel = idle_stateIndicatorPanel, 2
504505
indicator = {looksLikeCrankToIdle}, "looksLikeCrankToIdle No", "looksLikeCrankToIdle Yes"
505506
indicator = {isIdleCoasting}, "isIdleCoasting No", "isIdleCoasting Yes"
506507
indicator = {isIdleClosedLoop}, "isIdleClosedLoop No", "isIdleClosedLoop Yes"
508+
indicator = {isIdling}, "isIdling No", "isIdling Yes"
507509

508510
dialog = idle_stateDialog, "idle_state"
509511
panel = idle_stateIndicatorPanel
@@ -513,16 +515,18 @@ dialog = idle_stateDialog, "idle_state"
513515
graphLine = iacByTpsTaper
514516
graphLine = idleTarget
515517
liveGraph = idle_state_2_Graph, "Graph", South
518+
graphLine = idleEntryRpm
519+
graphLine = idleExitRpm
516520
graphLine = targetRpmByClt
517521
graphLine = targetRpmAc
522+
liveGraph = idle_state_3_Graph, "Graph", South
518523
graphLine = iacByRpmTaper
519524
graphLine = luaAdd
520-
liveGraph = idle_state_3_Graph, "Graph", South
521525
graphLine = m_lastTargetRpm
522526
graphLine = idleClosedLoop
527+
liveGraph = idle_state_4_Graph, "Graph", South
523528
graphLine = currentIdlePosition
524529
graphLine = idleTargetAirmass
525-
liveGraph = idle_state_4_Graph, "Graph", South
526530
graphLine = idleTargetFlow
527531

528532
indicatorPanel = electronic_throttle0IndicatorPanel, 2

0 commit comments

Comments
 (0)