Commit Graph
13 Commits
Author SHA1 Message Date
h3cx 7502b354dc Implemented "full" ignition timing system
This is a first implementation of a "full" timing system, with proper
handling for cases wher the ignition charge time overlaps with the
compression pulse, the spark has a more complex state machine system
with the option to defer charge from the intake pulse to the compression
pulse, and further defferal of the spark release schedule to the ISR
that triggers when the output compare triggers for the charge

Preliminary error counters have been put in place, they still require
handling error conditions that would force a soft shutdown on the
ignition IC. Alongside this the code still needs to be verified so that
all non critical errors (ie missed charge schedules) reset the state
machine and increment a global spark miss counter to avoid having these
errors breaking the state machine as they can easily be recovered from

Cases where the coil would already be charging and an error occurs
require as stated above a full recovery procedure with soft shutdown of
the ignition IC and a clean cycle of the state machine to ensure a full
recovery
2026-09-26 22:11:51 +02:00
h3cx f8b73ea1bc Broken spark implementation 2026-06-03 17:45:48 +02:00
h3cx f23f852b6c Merge branch 'dev' of git.h3cx.dev:Exergie/NeoECU-Firmware into dev 2026-06-03 14:21:29 +02:00
h3cx 16fd59535e Update config for CH3 output compare 2026-06-03 14:19:55 +02:00
Pierre Barbier 1771904eac Added Injection time and a phase macro 2026-06-03 13:52:01 +02:00
Pierre Barbier 31bdeeaf50 delat macros and crank miss filter 2026-06-03 12:02:17 +02:00
Pierre Barbier c5d5e89461 fixed a little problem in cam 2026-06-03 11:49:04 +02:00
h3cx 5fed925b7f Updated crank to use macros 2026-06-03 11:48:40 +02:00
Pierre Barbier e75f21ccf6 things 2026-06-03 11:44:27 +02:00
Pierre Barbier 0909c180e8 added cam double trigger and pragma once in GS 2026-06-03 11:35:21 +02:00
h3cx e346c67e00 Ring buffer fixes and spark time compute 2026-06-03 11:18:44 +02:00
h3cx 42e64b673c Initial sync implementation
Implemented system sync with crank and cam state and simple error
handling
2026-06-03 10:56:28 +02:00
h3cx 22c732be02 Refactor handler to external
Moved task handler functions to external functions, signatures are in
tasks.h, each function has its own .c file in Src/tasks
2026-06-02 20:11:07 +02:00