Commit Graph

541 Commits

Author SHA1 Message Date
Matthew Kennedy b34682af5d refactor fan & main relay bench testing #587 2025-05-04 01:40:23 -07:00
Matthew Kennedy 442c75cc4c
Remove sensor chart (#568)
* delete sensor chart from firmware

* delete sensor sniffer UI
2025-03-07 03:28:29 -08:00
Matthew Kennedy f6e4239bcb reset ignition schedule too on trigger loss 2025-02-13 23:19:34 -08:00
Matthew Kennedy 1d6ca9f989 Reset injection schedule upon trigger sync loss 2025-02-13 22:03:30 -08:00
Matthew Kennedy d35d734a7f crust cleanup 2025-01-02 22:15:34 -08:00
Matthew Kennedy 4bc73255d4 small can board 2024-12-29 02:03:44 -08:00
Matthew Kennedy 66576f0d61 Use batch fuel until cam sync happens 2024-12-24 19:32:30 -08:00
Matthew Kennedy 4c770b3431 unnecessary includes 2024-12-24 02:15:40 -08:00
Matthew Kennedy f38279f4a3 everybody loves a literally empty function 2024-12-24 01:58:51 -08:00
Matthew Kennedy def72dca22 throttlePedalUpPin is dead 2024-12-14 16:56:32 -08:00
Matthew Kennedy 42ef77c2ef
na miata CAS as cam trigger (#495)
* Added NA Miata cam trigger

* Set cam SyncEdge to both, remove unrelated text change that snuck in

---------

Co-authored-by: alrijleh <alrijleh@gmail.com>
2024-10-01 11:42:06 -07:00
Matthew Kennedy 8952633854 int rpm -> float rpm 2024-09-25 00:16:53 -07:00
Matthew Kennedy 01a397094d
execute critical tasks on one big thread (#462)
* wire up main loop

* remove PeriodicTimerController

* patch up defines, comments

* happy simulator

* format

* simulator

* ETB runs via main loop

* happy tests

* protection against invalid LoopPeriod

* stack size

* ccm

* fix |= operator

* move perf trace

* ordering

* ordering
2024-09-17 15:27:38 -07:00
Matthew Kennedy 8312686f22 AC state change uses a timer 2024-09-12 23:52:10 -07:00
Matthew Kennedy e00bc56666 tachometer onFastCallback 2024-09-03 16:32:22 -07:00
Matthew Kennedy c3e1435f39 move tachometer to modules dir 2024-09-03 16:28:54 -07:00
Matthew Kennedy 761efd862c
MAP avg uses engine module callbacks (#475)
* use engine module callbacks

* happy tests

* happy small-can-board

* interact with map avg via module

* simplify map avg init

* tweaks

* omit module to disable it instead!

* unnecessary guard

* minor cleanups

* unnecessary branch - lookups for these tables are fine at 0 rpm

* oop
2024-08-29 22:38:30 -07:00
Matthew Kennedy 12321d4325 map averaging includes 2024-08-29 13:29:53 -07:00
Matthew Kennedy e4e0824f57 misc format/comment cleanups 2024-08-07 12:01:08 -07:00
Matthew Kennedy f3045af367 AE is engine module 2024-08-01 21:45:54 -07:00
Matthew Kennedy ff5e47c95d
Engine modules participate in the build system (#452)
* infrastructure for engine modules in the build

* fully move fuel pump

* fan

* gear detector

* gear detect

* fan control cleanup

* trip odometer

* shuffle makefiles around a little

* minor format
2024-07-23 18:05:43 -07:00
Matthew Kennedy dd8dea61c0 rename Executor -> Scheduler 2024-07-11 17:03:13 -07:00
Matthew Kennedy f4ddf26313 for loop formatting 2024-07-03 00:26:17 -07:00
Matthew Kennedy cf87e64119 compile-time enforcement of printf strings 2024-06-10 00:51:14 -07:00
Matthew Kennedy e70d4c7528 implement mazda L cam 2024-05-27 21:07:57 -07:00
Matthew Kennedy f6f20f96d7 fix main relay 2024-04-25 16:45:36 -07:00
Matthew Kennedy e6442f06f0 main relay bench test uses a timer 2024-04-25 16:22:16 -07:00
dynfer 79aaec84de
Lua idle rpm adder (#409)
* lua idle rpm adder

* idle target fix
2024-04-09 22:40:31 -07:00
Matthew Kennedy 97c084cc24 fix simulator 2023-11-03 15:08:28 -07:00
Matthew Kennedy 7b955cb1b3 fixAngle -> wrapAngle 2023-10-19 14:34:29 -07:00
Matthew Kennedy ad6c5af975
speedo output (#269)
* speedo output

* s

* fix init
2023-10-15 14:59:39 -07:00
Matthew Kennedy d734d2d116
remove warning message from configuration (#259)
* remove warning_message

* dead type

* don't zero a field that isn't there
2023-09-25 02:07:42 -07:00
Matthew Kennedy 4ddd1ffbdb rename 2jz -> toyota 3 tooth 2023-09-14 13:53:16 -07:00
Matthew Kennedy 727f3a7a76 boost is engine module 2023-09-07 12:41:56 -07:00
Matthew Kennedy cb498f726a boost control runs in fast callback 2023-09-07 12:32:21 -07:00
Matthew Kennedy 94c29d4cfb
simplify cam input single tooth modes (#178) 2023-08-03 00:52:19 -07:00
Matthew Kennedy fb8cb4987e
fan control is engine module (#203)
* fan is engine module

* mockable AC

* mockable AC

* mock AC controller in fan test

* constexpr fan livedata

* isPtr
2023-07-21 01:28:25 -07:00
Matthew Kennedy 3337510d11 #35 2023-06-05 14:28:50 -07:00
Matthew Kennedy 06b39dbb07
trigger and engine types -> enum class (#113)
* trigger type is enum class

* java tooling

* enum class engine_type_e

* enum class engine_type_e
2023-06-01 13:47:49 -07:00
Matthew Kennedy 8b5825adc4 indent formatting 2023-06-01 11:10:58 -07:00
Matthew Kennedy d5f9479f28
ObdCode is enum class (#77)
* change ObdCode to enum class builds firmware

* test builds

* don't need this line at all

* can we go down to uint16_t?
2023-04-12 23:44:33 -07:00
Matthew Kennedy 404c0a8550 cleanup 2023-02-26 17:16:13 -08:00
Matthew Kennedy 5d7a30ce2b no qc 2023-02-22 14:53:31 -08:00
Matthew Kennedy 959f14fae6 more dead 2023-02-21 11:54:24 -08:00
Matthew Kennedy 4b5fa68d13 fix 4g63 vs 9x naming, add cam-only test (#5093) 2023-02-16 23:22:34 -05:00
Matthew Kennedy dc4cbb9c37 mitsu 4g63 (#5001)
* mitsu 4g63

* file header
2023-01-24 06:53:40 +05:30
rusefillc 91e70738f4 refactoring: inside the boost controller instead of depending on the engine god object 2023-01-22 07:40:42 -05:00
rusefillc 6cc92c25bc https://rusefi.com/forum/viewtopic.php?f=2&t=2484 luaIgnCut 2023-01-02 17:46:56 -05:00
Andrey fe780d477e kinetis asking for guard, also I've must have messed up something 2022-12-17 18:04:54 -05:00
rusefillc 41a8a90b3d guards 2022-12-17 14:43:51 -05:00