Commit Graph

1870 Commits

Author SHA1 Message Date
Matthew Kennedy ebe78cbb4b cherry pick rename rusefi.input #391 2024-03-24 22:49:36 -07:00
Matthew Kennedy cbd7e6af56 avoid more undefined behavior 2024-03-22 12:12:53 -07:00
Matthew Kennedy d8898a4665 cherry picks from #385 2024-03-13 00:56:53 -07:00
Matthew Kennedy c9d4befc4d
WiFi tweaks (#374)
* batch all wifi in to one write

* writeCrcPacket already chunks the response, so we don't really need it, but limit maximum TCP write size

* format cleanup

* don't cache wifi stuff (for now)

* h7 fiddling
2024-03-12 16:14:04 -07:00
Matthew Kennedy dba95f57dc except that one can't be final 2024-03-01 12:57:01 -08:00
Matthew Kennedy a85e6c777d make some channels final 2024-03-01 12:46:39 -08:00
Matthew Kennedy 2436e7c105
implement TS console over ATWINC1500 WiFi (#373)
* experimenting with atwinc1500

* rename to cpp

* if/else without curly braces

* nullptr

* static asserts

* unused params

* stub basic bsp and wifi console

* misc c++ fixes

* it appears to compile?

* enable/disable ISR

* idk why this needs to get commented

* dead code

* more wifi plumbing

* move wifi init after hardware init

* wifi bsp

* bsp handles empty SPI read/write, pin init

* build spi_flash.cpp

* don't double-enable interrupts

* maybe no need for extern "C"

* faster SPI

* socket kinda connects?

* wifi updater tool?

* log wifi stuff to efiPrintf

* I'm not sure why you have to skip the reboot it says you have to do

* working tcp implementation

* use lock instead of actually cycling interrupts

* improve socket receive performance

* add firmware info

* avoid locking for spi select/unselect

* allow larger SPI ops

* wifi thread priority

* hooks for pins and SPI device

* guard

* build atlas with wifi

* don't unconditionally define EFI_WIFI, oops

* only build wifi if wifi

* typo

* H7 SPI

* typo
2024-03-01 12:37:55 -08:00
GitHub gen-configs Action 2c42d8d83c Auto-generated configs and docs 2024-01-19 12:02:28 +00: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
GitHub gen-configs Action 5999a2fcbb Auto-generated configs and docs 2024-01-07 23:23:56 +00:00
Matthew Kennedy 9673ff01f3
implement staged injection (#331)
* output channel

* duty cycle etc math for second stage

* action_s utility

* basic enable switch

* staging fraction math

* implement staging logic

* wire up pins for second stage injectors

* staging UI

* Improve staged injection test, check scheduler arguments for other injection tests

* Stage 2 last pulse output channel, correct fuel consumption logic

* wall wet on the whole shot

* int vs size_t

* use a define instead of function so we get line numbers

* fix batch injection

* gauges

* bad test merge

* stub out secondary injector model
2024-01-07 15:22:39 -08:00
Matthew Kennedy 9353af8d99 correctly calculate tooth logger buffer count to avoid overrun 2024-01-06 19:59:36 -08:00
Matthew Kennedy 17c6a46e84 optimize for hot thread stacks and data in CCM 2024-01-06 19:37:35 -08:00
GitHub gen-configs Action 62c27ab01c Auto-generated configs and docs 2023-12-20 23:26:43 +00:00
Matthew Kennedy d224434ced aux linear uses float 2023-12-20 15:25:13 -08:00
GitHub gen-configs Action 429a51eefe Auto-generated configs and docs 2023-12-10 01:27:23 +00:00
GitHub gen-configs Action 4fa3cf6791 Auto-generated configs and docs 2023-11-27 09:31:37 +00:00
Matthew Kennedy c7cc2de16f sanity in IMU data names/ranges 2023-11-27 01:30:18 -08:00
Matthew Kennedy caa7e62b0e
new parser datalog support (#205)
* stale comments

* conform inputs

* implement datalog writing

* stale comment

* s

* stub out more support

* OutputChannelWriter

* tweak inputs so there's less diff later
2023-11-23 18:53:56 -08:00
Matthew Kennedy 9474781a46 small can board 2023-11-03 15:50:39 -07:00
Matthew Kennedy 97c084cc24 fix simulator 2023-11-03 15:08:28 -07:00
Matthew Kennedy cda890a5eb ECU firmware knows what sort of bootloader it has 2023-11-02 15:36:52 -07:00
Matthew Kennedy 9dc183a173
we use small time units here in the future (#287) 2023-11-01 22:31:27 -07:00
Matthew Kennedy a8247afe89 deadish code makes it not build on macos 2023-11-01 21:39:39 -07:00
Matthew Kennedy 52e28d1892 UART DMA connector had a shadow hiding 2023-11-01 17:37:47 -07:00
Matthew Kennedy c54d64a788 safer log field name copy 2023-11-01 16:22:52 -07:00
Matthew Kennedy 6c37f56eb8 status loop 2023-11-01 16:10:43 -07:00
Matthew Kennedy 8e846e8842 avoid vexing parse 2023-11-01 15:51:44 -07:00
Matthew Kennedy a987308055 shadow avoidance 2023-11-01 14:16:09 -07:00
Matthew Kennedy 73ca7c7974 ts channel shadow avoidance 2023-11-01 14:12:15 -07:00
Matthew Kennedy 408862d69f strongly type can bus index so we can't have the same bug again 2023-10-30 23:33:59 -07:00
Matthew Kennedy 91a2827d4f
require all boards to define LED functions (#272)
* require all boards to define LED functions

* f429 nucleo

* small can

* small can
2023-10-25 22:19:52 -07:00
Matthew Kennedy f19eaeb7c8 dead isWarningEnabled 2023-10-24 16:25:53 -07:00
Matthew Kennedy 2231fa4cd8 bench test didn't work on simulator 2023-10-24 01:00:02 -07:00
Matthew Kennedy 3999272d24 fix injection SOI log channel 2023-10-19 14:10:44 -07:00
Matthew Kennedy ad6c5af975
speedo output (#269)
* speedo output

* s

* fix init
2023-10-15 14:59:39 -07:00
Matthew Kennedy e09ed790eb extract injection refactoring from #215 2023-10-12 18:00:33 -07:00
GitHub gen-configs Action 08e68b12b4 Auto-generated configs and docs 2023-10-04 01:31:09 +00:00
Matthew Kennedy 6534650105 Fix autotune in AFR mode: add "gas scale AFR" output channels & gauges 2023-10-03 18:29:17 -07:00
GitHub gen-configs Action 5aa1fc0caf Auto-generated configs and docs 2023-10-03 05:27:44 +00:00
Matthew Kennedy d98c6a9fc3 odometry output channels 2023-10-02 22:25:35 -07:00
rusefillc 7ad5b00f2e
refactoring: vvt is not aux (#263)
* refactoring: vvt is not aux

(cherry picked from commit 6b4c4a583316a32d7723c2cfa16cda39fa9afb1b)

* this repo has VVT conditional at small-can-board
2023-09-27 00:59:04 -07:00
rusefillc 1fa1a407c4
not Idle (#264)
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2023-09-26 15:17:33 -07:00
Matthew Kennedy 4b354f047b
trip odometer (#260) 2023-09-25 13:16:17 -07:00
GitHub gen-configs Action 371e2d099c Auto-generated configs and docs 2023-09-25 18:09:04 +00:00
Matthew Kennedy 2346086b06
knock live data (#261)
* Move knock data to knock controller

* appease tsConfigVersion

* make reapply logic easier to read
2023-09-25 11:06:48 -07:00
GitHub gen-configs Action 7033eafd6a Auto-generated configs and docs 2023-09-18 19:22:21 +00:00
Matthew Kennedy 222bbe8e7c rpm acceleration is signed 2023-09-18 12:20:21 -07:00
GitHub gen-configs Action 657f1ba86c Auto-generated configs and docs 2023-09-18 09:10:54 +00:00