Commit Graph

338 Commits

Author SHA1 Message Date
Matthew Kennedy e59cee518f
implement persistent lua values (#592)
* implement persistent lua values

* backup ram support in the sim

* 1-based indices for lua

* but don't support unit tests

* changelog it
2025-05-15 00:28:28 -07:00
Matthew Kennedy accb87c8e2 waitForSlowAdc, stepper cleanup 2025-05-04 00:38:54 -07:00
Matthew Kennedy 7b8626dd11 split SD card IO and SD logging 2025-03-16 23:57:30 -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 9dcf76d99c
Remove stack checks (#558)
* remove stack checks

* put one back
2025-02-18 17:33:24 -08:00
Matthew Kennedy 3cf2d07057 use GCC-mode bitfields on Windows simulator build #551 2025-02-13 21:39:53 -08:00
Matthew Kennedy a410166f7b simulator PORT_GUARD_PAGE_SIZE 2025-02-07 22:48:39 -08:00
Nathan Schulte 158ac76144
cast [[nodiscard]] std::remove result to void to silence warning (#536)
https://stackoverflow.com/a/53581957
2025-01-16 15:42:35 -08:00
Matthew Kennedy 0c9c858ed2 cleanup 2025-01-07 20:47:38 -08:00
Matthew Kennedy 6299890abb simulator initBoardSensors 2025-01-03 14:06:22 -08:00
Matthew Kennedy a034cd59eb remove EFI_ERROR_CODE 2024-12-28 15:21:47 -08:00
Matthew Kennedy 8e97cd4999 CAN cleanup 2024-12-26 00:34:00 -08:00
Matthew Kennedy cf58ece693 nix on SENT 2024-12-23 22:06:05 -08:00
Matthew Kennedy 0dba68be8d make chconf.h more similar to each other 2024-10-31 16:19:47 -07:00
Matthew Kennedy 9e3126a920 aux serial cleanup/removal #61 2024-09-18 22:38:16 -07:00
Matthew Kennedy ac8f2d2495 analog sensors are never optional 2024-09-18 22:22:06 -07:00
Matthew Kennedy 096b0c4199 crusty TRIGGER_EXTREME_LOGGING cleanup 2024-09-18 22:18:12 -07:00
Matthew Kennedy 8c87c19b5c SPARK_EXTREME_LOGGING cleanup 2024-09-18 22:11:13 -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 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 0b31777623 adc inputs cleanup 2024-08-12 18:13:51 -07:00
Matthew Kennedy 48b8f08cb8 EFI_ACTIVE_CONFIGURATION_IN_FLASH 2024-08-07 12:09:30 -07:00
Matthew Kennedy 1913853adb more dead efifeatures 2024-08-07 12:03:10 -07:00
Matthew Kennedy baa76180fe simulator efifeatures 2024-08-07 12:01:16 -07:00
Matthew Kennedy 1452a1dcc7 Revert "simulator: more arguments (#432)"
This reverts commit be7a2ddc9c.
2024-08-05 13:40:04 -07:00
Nathan Schulte be7a2ddc9c
simulator: more arguments (#432)
* simulator: improve READMEs

* simulator: use argp for argument parsing

* simulator: plumb SocketCAN device argument

* simulator: change verbosity argument

use a --quiet instead, as --verbose is a "set-only" option without
arguments and cannot be "unset" if default

* simulator: timeout is an option, not an argument

* simulator: github workflow uses --timeout option
2024-08-05 11:43:07 -07:00
Matthew Kennedy 4b4d2ac4d5
ethernet console as engine module (#453)
* 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

* move ethernet console to engine module

* oops

* s

* final

* dead line
2024-07-23 20:52:37 -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 e61e4c4b09 remove scheduleByTimestamp() 2024-07-11 16:38:42 -07:00
Matthew Kennedy 1731b30337 remove scheduleForLater 2024-07-11 16:27:30 -07:00
Matthew Kennedy 9aaa7d9507 dead pwm tester 2024-07-11 16:19:34 -07:00
Matthew Kennedy 3f8931f341 we often mean inline when we say static 2024-03-28 18:20:40 -07:00
Matthew Kennedy a9d47da54e make clean deletes generated 2024-03-15 01:06:00 -07:00
Matthew Kennedy d8898a4665 cherry picks from #385 2024-03-13 00:56:53 -07:00
Matthew Kennedy da1ad5b34f scripts should fail harder when they fail 2024-03-07 22:17:37 -08:00
Matthew Kennedy e5fb7f7f3f
gen config with make (#363) 2024-02-22 10:58:03 -08:00
Matthew Kennedy 829a0f6b17 simulator crust 2024-02-16 14:10:26 -08:00
Matthew Kennedy 58679fb81a s 2024-01-17 16:15:09 -08:00
Matthew Kennedy fe930d0859 simulator gets short board name 2024-01-17 15:48:42 -08:00
Matthew Kennedy 31a23e2aca missing defines for simulator 2024-01-17 15:02:09 -08:00
Matthew Kennedy f3b335fe8d
all generated files in one dir (#348)
* delete existing generated source files

* ignore new generated dir

* move all the generated files

* cleanup

* jars

* makefile

* bootloader

* simulator+tests
2024-01-17 14:25:00 -08:00
rusefillc d2eb532126
signal_executor_sleep is not part of real firmware (#334)
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2024-01-07 12:39:26 -08:00
Matthew Kennedy e5a751e3b1
remove ccache (#288) 2023-11-02 11:28:14 -07:00
Matthew Kennedy eed689eb03 properly include rules mk in simulator 2023-11-01 16:42:12 -07:00
Matthew Kennedy 77f2b95c6f sim 2023-11-01 16:12:13 -07:00
Matthew Kennedy fc308d400a prep adding Werror=shadow 2023-11-01 15:37:00 -07:00
Matthew Kennedy 8974d9d680 more init logic more common 2023-10-26 12:35:42 -07:00
Matthew Kennedy f19eaeb7c8 dead isWarningEnabled 2023-10-24 16:25:53 -07:00
Matthew Kennedy 60710c2c18 vvt didn't work in simulator either 2023-10-24 01:02:11 -07:00