Matthew Kennedy
cf87e64119
compile-time enforcement of printf strings
2024-06-10 00:51:14 -07:00
Matthew Kennedy
6bb5bd998c
process plain command only if no second byte ( #440 )
...
* process plain command only if no second byte
* print in case of not understood single-byte cmd
2024-06-09 23:07:05 -07:00
Matthew Kennedy
2eb6c25313
ts refactoring ( #439 )
...
* replace large buffer instances
* handlePageReadCommand uses locked
* cleanup
* explicitly call big vs. small packet implementation
* correctness
* unused UNUSED
* cleaner TS logging & cleanup
* about time we bumped this
2024-06-09 20:26:27 -07:00
Matthew Kennedy
dfc2da083b
support reading output channels with no size/offset
2024-06-09 15:45:31 -07:00
Matthew Kennedy
4465d20622
remove responseCode from writeCrcPacket
2024-06-03 17:34:21 -07:00
Matthew Kennedy
ed52ff474e
eliminate TsChannelBase::sendResponse
2024-06-03 17:28:14 -07:00
Matthew Kennedy
d4c0df833a
remove TS_RESPONSE_COMMAND_OK when TS_RESPONSE_OK exists
2024-06-03 17:21:26 -07:00
Matthew Kennedy
65e1091179
operate on uint8_t instead of char
2024-06-03 17:02:43 -07:00
Matthew Kennedy
35b46d0e92
TS helper for no-payload responses
2024-06-03 17:02:43 -07:00
Matthew Kennedy
084f848bdb
fix
2024-06-02 13:00:41 -07:00
Matthew Kennedy
3a96c38f2e
NULL -> nullptr
2024-06-02 12:58:07 -07:00
Matthew Kennedy
a22302579e
TS cleanup: ts_response_format_e
2024-06-02 12:49:24 -07:00
Matthew Kennedy
9efd565d29
avoid long -> float conversion
2024-05-11 13:13:59 -07:00
Matthew Kennedy
9fd94a6cee
more timers instead of hand rolled
2024-04-25 16:30:38 -07:00
Matthew Kennedy
55ce26207e
fix
2024-04-25 14:26:25 -07:00
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