Commit Graph

18581 Commits

Author SHA1 Message Date
Matthew Kennedy aeec11078c adc cleanup 2024-07-21 13:22:28 -07:00
Matthew Kennedy 591b8446fe minor adc_inputs cleanup 2024-07-21 13:21:02 -07:00
GitHub gen-configs Action 86ad90aa00 Auto-generated configs and docs 2024-07-21 20:11:40 +00:00
Matthew Kennedy 1f1ace4ced do the math once instead of per-sample 2024-07-21 13:10:22 -07:00
GitHub set-date Action 550d4326b7 Update date 2024-07-17 00:10:01 +00:00
GitHub gen-configs Action 6e6960cb3f Auto-generated configs and docs 2024-07-16 09:10:03 +00:00
Nathan Schulte 50f7a653a7
Toyota ETCS-i [02/02]: RedundantSensor: partial second (avoid average, etc.) (#431) 2024-07-16 02:08:43 -07:00
GitHub set-date Action d37a5c1405 Update date 2024-07-13 00:10:07 +00:00
GitHub set-date Action d785e4d2c7 Update date 2024-07-12 00:31:28 +00:00
Matthew Kennedy dd8dea61c0 rename Executor -> Scheduler 2024-07-11 17:03:13 -07:00
Matthew Kennedy 07b61ee0b4 doc 2024-07-11 16:49:49 -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 adb5773c5f don't use scheduleForLater 2024-07-11 16:22:08 -07:00
Matthew Kennedy 9aaa7d9507 dead pwm tester 2024-07-11 16:19:34 -07:00
GitHub gen-configs Action 04ddedd7c2 Auto-generated configs and docs 2024-07-11 23:15:45 +00:00
Matthew Kennedy f88bb77825 dead test code 2024-07-11 16:14:21 -07:00
GitHub gen-configs Action dc34635639 Auto-generated configs and docs 2024-07-11 23:13:28 +00:00
Matthew Kennedy db90cb3e0d minor event_queue cleanup 2024-07-11 16:11:47 -07:00
GitHub set-date Action c591b0acc3 Update date 2024-07-09 00:09:19 +00:00
GitHub gen-configs Action 0fc276c3d5 Auto-generated configs and docs 2024-07-08 22:35:03 +00:00
Matthew Kennedy 7485362dec misleading table axis checker names 2024-07-08 15:33:40 -07:00
GitHub set-date Action 4d1945cf0c Update date 2024-07-04 00:09:17 +00:00
Matthew Kennedy 3229e5b403 Merge branch 'master' of https://github.com/fome-tech/fome-fw 2024-07-03 11:02:57 -07:00
Matthew Kennedy 2ce677d5b1 s 2024-07-03 10:58:53 -07:00
GitHub gen-configs Action 83883438ba Auto-generated configs and docs 2024-07-03 08:25:54 +00:00
Matthew Kennedy 06e52a0bc7 put ignition pin back 2024-07-03 01:24:14 -07:00
GitHub gen-configs Action 3986ddab31 Auto-generated configs and docs 2024-07-03 08:16:05 +00:00
Matthew Kennedy 06cbbca238 accel enrich commands 2024-07-03 01:14:03 -07:00
Matthew Kennedy 78ea67371e set ignition/injection pins not used 2024-07-03 01:13:46 -07:00
Matthew Kennedy ca3fd6338c tps commands 2024-07-03 01:08:27 -07:00
Matthew Kennedy 4554e099f4 if you need this command you need a debugger 2024-07-03 01:06:28 -07:00
Matthew Kennedy adfbb283be infinitely many console commands, apparently 2024-07-03 00:54:50 -07:00
Matthew Kennedy c2c22b68f4 yet more dead console commands 2024-07-03 00:52:22 -07:00
Matthew Kennedy 8831512b6b more dead console command cleanup 2024-07-03 00:48:06 -07:00
Matthew Kennedy 23f91d2fca wow, all of this was dead code 2024-07-03 00:37:27 -07:00
Matthew Kennedy 7936c5d90d dead console commands save 2k of flash 2024-07-03 00:31:44 -07:00
Matthew Kennedy f4ddf26313 for loop formatting 2024-07-03 00:26:17 -07:00
Matthew Kennedy 4a15462a41 Merge branch 'master' of https://github.com/fome-tech/fome-fw 2024-07-03 00:23:01 -07:00
Matthew Kennedy bb1d5f26d2 for loop formatting 2024-07-03 00:22:48 -07:00
Matthew Kennedy 050636e4cf fix miata vvt maf table copy 2024-07-03 00:12:35 -07:00
GitHub gen-configs Action 891f6cc083 Auto-generated configs and docs 2024-07-03 03:57:45 +00:00
Matthew Kennedy ae36b44e61 Merge branch 'master' of https://github.com/fome-tech/fome-fw 2024-07-02 20:56:23 -07:00
Matthew Kennedy 61ace6eaa0 compactify MAF table, why was it so big? 2024-07-02 20:56:06 -07:00
GitHub set-date Action 65b8a5d968 Update date 2024-07-03 00:09:24 +00:00
GitHub gen-configs Action f37c19a603 Auto-generated configs and docs 2024-07-02 03:38:52 +00:00
Matthew Kennedy b6bd94c852 redundant tps config compatibility 2024-07-01 20:37:21 -07:00
GitHub set-date Action b6188626f4 Update date 2024-06-29 00:09:03 +00:00
Matthew Kennedy e056d93c48 Merge branch 'master' of https://github.com/fome-tech/fome-fw 2024-06-27 18:04:06 -07:00
Matthew Kennedy 57bb54a036 sensor mocking by name 2024-06-27 18:04:04 -07:00
GitHub gen-configs Action 26314555b7 Auto-generated configs and docs 2024-06-28 00:57:54 +00:00
Matthew Kennedy 45a6b5d134 blink the comm LED slightly instead of static 2024-06-27 17:56:21 -07:00
Matthew Kennedy 938852e139 Merge branch 'master' of https://github.com/fome-tech/fome-fw 2024-06-27 17:43:57 -07:00
Matthew Kennedy 71dfd5d354 refactor LEDs out of PeriodicTimerController 2024-06-27 17:42:48 -07:00
GitHub set-date Action d5d4a0d072 Update date 2024-06-28 00:09:19 +00:00
Matthew Kennedy 0f04cedfee size_t 2024-06-27 15:28:00 -07:00
Matthew Kennedy cc74d09ba7 controller does warning LED 2024-06-27 12:53:58 -07:00
Matthew Kennedy 7a9bfc763c rename task to LED blinking 2024-06-27 12:39:47 -07:00
Matthew Kennedy 030fbf3942 Merge branch 'master' of https://github.com/fome-tech/fome-fw 2024-06-27 12:23:15 -07:00
Matthew Kennedy 507f811852 happy simulator? 2024-06-27 12:23:12 -07:00
GitHub gen-configs Action 6b50413556 Auto-generated configs and docs 2024-06-27 19:08:20 +00:00
Matthew Kennedy 94a5c52186 consoleByteArrived uses std::atomic 2024-06-27 11:51:40 -07:00
GitHub set-date Action b89afc170a Update date 2024-06-27 00:09:15 +00:00
Matthew Kennedy a953294a81 happy tests 2024-06-26 13:14:30 -07:00
Matthew Kennedy cfdce8a59c periodic fast and slow share a controller 2024-06-26 13:10:13 -07:00
GitHub gen-configs Action 79f3b2b75e Auto-generated configs and docs 2024-06-26 20:02:40 +00:00
Matthew Kennedy 897a730de7 EngineStateBlinkingTask -> EngineModule 2024-06-26 13:00:46 -07:00
GitHub set-date Action b0467b53d2 Update date 2024-06-16 00:10:00 +00:00
Matthew Kennedy 7e07d87088 bundle up MAP samplers 2024-06-15 14:52:29 -07:00
GitHub gen-configs Action defe1741aa Auto-generated configs and docs 2024-06-15 06:13:45 +00:00
Matthew Kennedy 743bef85d2 minimum priming delay of 0.1 second 2024-06-14 23:12:03 -07:00
GitHub set-date Action a1cb9258e1 Update date 2024-06-15 00:09:08 +00:00
Nathan Schulte cd38fa1f61
remove functionpointer sensor (#442)
* remove functionpointer sensor

* remove function_pointer_sensor.cpp from tests.mk
2024-06-14 12:17:09 -07:00
GitHub gen-configs Action 8336187eeb Auto-generated configs and docs 2024-06-14 18:46:12 +00:00
Nathan Schulte e6418bc19c
etb: use convertVoltageTo10bitADC in auto-cal (#441) 2024-06-14 11:44:50 -07:00
GitHub set-date Action 253578d0d5 Update date 2024-06-13 00:09:35 +00:00
GitHub gen-configs Action 1e48f99e88 Auto-generated configs and docs 2024-06-12 01:09:03 +00:00
BeerMoneyMotorsports dd7e49c8f7 Digital 1
provisions to support exhaust cam sensor on Ecotec swapped miata.
2024-06-11 21:04:00 -04:00
GitHub set-date Action e43d8e5670 Update date 2024-06-11 00:09:10 +00:00
Matthew Kennedy 83e5738a96 actually reset the timer in case of <2US timing 2024-06-10 01:35:51 -07:00
Matthew Kennedy 7421bb332e compile-time enforcement of printf strings 2024-06-10 01:21:52 -07:00
Matthew Kennedy e7d2b1c17c compile-time enforcement of printf strings 2024-06-10 01:15:39 -07:00
Matthew Kennedy 1e2cd76a9d only check on firmware for now? 2024-06-10 01:00:23 -07:00
Matthew Kennedy 356e0465c4 compile-time enforcement of printf strings 2024-06-10 00:57:27 -07:00
Matthew Kennedy 2c14f4e3c1 compile-time enforcement of printf strings 2024-06-10 00:56:03 -07:00
Matthew Kennedy 6758e2dfc0 compile-time enforcement of printf strings 2024-06-10 00:53:24 -07:00
Matthew Kennedy cf87e64119 compile-time enforcement of printf strings 2024-06-10 00:51:14 -07:00
Matthew Kennedy 2dbe992780 priming debugging 2024-06-10 00:25:07 -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 a39738d4af prime error logging 2024-06-09 22:06:46 -07:00
GitHub gen-configs Action 3edd9af0cc Auto-generated configs and docs 2024-06-10 03:27:46 +00: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
GitHub set-date Action 6cc65b4c70 Update date 2024-06-10 00:09:32 +00:00
GitHub gen-configs Action a2198aaa61 Auto-generated configs and docs 2024-06-09 22:46:49 +00:00
Matthew Kennedy dfc2da083b support reading output channels with no size/offset 2024-06-09 15:45:31 -07:00
GitHub set-date Action 25b6082d09 Update date 2024-06-05 00:09:07 +00:00
Matthew Kennedy 4465d20622 remove responseCode from writeCrcPacket 2024-06-03 17:34:21 -07:00
Matthew Kennedy afddeae88a Merge branch 'master' of https://github.com/fome-tech/fome-fw 2024-06-03 17:28:41 -07:00
Matthew Kennedy ed52ff474e eliminate TsChannelBase::sendResponse 2024-06-03 17:28:14 -07:00
GitHub gen-configs Action 93850c741a Auto-generated configs and docs 2024-06-04 00:23:34 +00:00
Matthew Kennedy d4c0df833a remove TS_RESPONSE_COMMAND_OK when TS_RESPONSE_OK exists 2024-06-03 17:21:26 -07:00
GitHub set-date Action c4cb7dd02a Update date 2024-06-04 00:17:01 +00:00
GitHub gen-configs Action f4cc9a78d1 Auto-generated configs and docs 2024-06-04 00:04:01 +00: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
GitHub gen-configs Action 0b9e0cc983 Auto-generated configs and docs 2024-06-03 18:53:17 +00:00
Nathan Schulte 16d45d6d69
add knock retard aggression value advise (#437)
* add knock retard aggression value advise

* s/advise/advice/
2024-06-03 11:52:00 -07:00
Nathan Schulte a195289a12
Toyota ETCS-i [01/02]: meld FordRedundantTps Sensor into RedundantSensor (#430)
* remove redundant_ford_tps

* meld redundant_ford_tps logic into RedundantSensor

* default tps/ppsSecondaryMaximum is 100

* initTps uses melded RedundantSensor

* meld RedundantSensor unit tests

* RedundantSensor::showInfo prints redundancy status

* RedundantSensor::showInfo prints partial redundancy status

* assert SensorResult code in RedundantSensor tests

* RedundantSensor doesn't hide primary sensor result code

in the case of a single sensor only, don't hide the UnexpectedCode value
2024-06-03 11:28:56 -07:00
GitHub gen-configs Action 0b49b38f60 Auto-generated configs and docs 2024-06-03 07:39:55 +00:00
Matthew Kennedy f800a06bfd output channel headroom on big memory boards 2024-06-03 00:38:32 -07:00
GitHub gen-configs Action 8f1415efd7 Auto-generated configs and docs 2024-06-03 05:46:16 +00:00
GitHub set-date Action 3123fa9c72 Update date 2024-06-03 00:09:28 +00: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
GitHub gen-configs Action 26a15b5848 Auto-generated configs and docs 2024-06-02 05:49:32 +00:00
Matthew Kennedy a914745ada wider limits on linear sensor 2024-06-01 22:48:02 -07:00
GitHub set-date Action eb8d222048 Update date 2024-05-30 00:09:31 +00:00
GitHub set-date Action 56a1891919 Update date 2024-05-29 00:09:49 +00:00
GitHub gen-configs Action a7a5038481 Auto-generated configs and docs 2024-05-28 23:10:07 +00:00
Matthew Kennedy 12484d8d86 tweak NC vvt sync gaps 2024-05-28 16:08:37 -07:00
Matthew Kennedy 2b5b83daa6 Merge branch 'master' of https://github.com/fome-tech/fome-fw 2024-05-27 21:18:06 -07:00
Matthew Kennedy 5c7118b074 missed a spot 2024-05-27 21:17:40 -07:00
GitHub gen-configs Action 2ed6103b4e Auto-generated configs and docs 2024-05-28 04:09:27 +00:00
Matthew Kennedy e70d4c7528 implement mazda L cam 2024-05-27 21:07:57 -07:00
GitHub set-date Action fc57a539aa Update date 2024-05-24 00:09:27 +00:00
GitHub gen-configs Action 55aadcd11a Auto-generated configs and docs 2024-05-23 21:48:04 +00:00
Nathan Schulte 6d87b3983a
Doxygen says FOME (#428) 2024-05-23 14:46:39 -07:00
Nathan Schulte ad8ddf59df
stringop-overflow error (#429)
* enable stringop-overflow as error

* avoid false positive stringop-overflow in static_vector
2024-05-23 14:46:06 -07:00
GitHub set-date Action 9813134988 Update date 2024-05-16 00:08:46 +00:00
GitHub gen-configs Action eda30a58fe Auto-generated configs and docs 2024-05-15 06:44:24 +00:00
Matthew Kennedy b436518c40 avoid float -> int -> float 2024-05-14 23:42:54 -07:00
GitHub set-date Action b3223216cf Update date 2024-05-12 00:09:44 +00:00
GitHub gen-configs Action 0b8cba4d69 Auto-generated configs and docs 2024-05-11 23:00:29 +00:00
Matthew Kennedy 0097eb583b
CI can protect us from loss of precision (#424) 2024-05-11 15:59:07 -07:00
Matthew Kennedy 8c8d18e435 avoid float -> long 2024-05-11 13:35:04 -07:00
Matthew Kennedy 82b1c525e1 avoid float -> double 2024-05-11 13:24:38 -07:00
Matthew Kennedy d1d10f8a56 avoid long -> float 2024-05-11 13:19:03 -07:00
Matthew Kennedy c853beee1f Merge branch 'master' of https://github.com/fome-tech/fome-fw 2024-05-11 13:14:20 -07:00
Matthew Kennedy 9efd565d29 avoid long -> float conversion 2024-05-11 13:13:59 -07:00
GitHub gen-configs Action 0fa4970a76 Auto-generated configs and docs 2024-05-11 20:09:14 +00:00
Matthew Kennedy 9ab794a461 avoid long -> float conversion 2024-05-11 13:07:47 -07:00
GitHub set-date Action 70019f1314 Update date 2024-05-11 00:09:02 +00:00
Matthew Kennedy 3080ad906f divide, not multiply 2024-05-10 15:22:04 -07:00
Matthew Kennedy 8d84bdea51 scale it correctly 2024-05-09 22:30:18 -07:00
Matthew Kennedy 217a25865a EGT on CAN 2024-05-09 22:28:34 -07:00
GitHub gen-configs Action d26aa47bec Auto-generated configs and docs 2024-05-10 05:25:07 +00:00
Matthew Kennedy 65a8928bbb EGT in gppwm channel 2024-05-09 22:23:41 -07:00
GitHub set-date Action 8a103f1edf Update date 2024-05-05 00:09:19 +00:00
Matthew Kennedy 044e575af6 Map3D considered harmful #421 2024-05-03 22:55:18 -07:00
Matthew Kennedy a4897ebc09 Map3D considered harmful #421 2024-05-03 22:43:06 -07:00
Matthew Kennedy a070f26256 wrong variable name 2024-05-03 22:25:08 -07:00
Matthew Kennedy 0cd1b61962 Map3D considered harmful #421 2024-05-03 22:24:40 -07:00
Matthew Kennedy a474543580 Wait. Why do we even use Map3D here? #246 #417 2024-05-03 22:18:09 -07:00
Matthew Kennedy d98867fc44 KnockController::onConfigurationChange(nullptr) 2024-05-03 22:11:42 -07:00
Matthew Kennedy 5d0d3fd120 behave yourselves with null previousConfig 2024-05-03 22:10:42 -07:00
GitHub gen-configs Action 2c8e4277f1 Auto-generated configs and docs 2024-05-04 04:59:30 +00:00
Nathan Schulte 80f6ae0ab5
fix building firmware on linux (#420)
* firmware: fix building on Linux

processor is non-portable, though some Linux distributions patch around this (generally by report machine instead)

* firmware: tidy use_arm_gcc.mk

* fix failure logic
2024-05-03 21:58:07 -07:00
Nathan Schulte b8d7b2d75b
fix knock retard table init (#419)
* fix knock retard table init

column and row definition were swapped w/re: value lookup

fixes #246, #417

* initialize knock controller / max retard table on reset

* fix KnockController init

no need for previousConfig (or any config ref); use the current config
2024-05-03 21:57:26 -07:00
GitHub set-date Action 5ec4d320a2 Update date 2024-05-03 00:09:05 +00:00
GitHub gen-configs Action 64bb0a787b Auto-generated configs and docs 2024-05-02 06:01:01 +00:00
GitHub set-date Action 121153781d Update date 2024-05-01 00:09:27 +00:00
GitHub gen-configs Action 2835569979 Auto-generated configs and docs 2024-04-30 07:49:46 +00:00
GitHub set-date Action 670e28a5fa Update date 2024-04-29 00:08:54 +00:00
GitHub gen-configs Action 5e77ea73cf Auto-generated configs and docs 2024-04-28 09:55:10 +00:00
GitHub set-date Action 9ff2b98d2e Update date 2024-04-28 00:09:59 +00:00
Matthew Kennedy fecb5f6cfc unit test time is actually stored in ticks 2024-04-27 02:04:25 -07:00
Matthew Kennedy 80358ad54e setTimeNowUs(): replace global fiddling with a functino call 2024-04-27 01:59:38 -07:00
GitHub gen-configs Action afeaa302cd Auto-generated configs and docs 2024-04-27 08:34:15 +00:00
Matthew Kennedy ee782ee6ab Merge branch 'master' of https://github.com/fome-tech/fome-fw 2024-04-27 01:32:53 -07:00
Matthew Kennedy 32d2a81529 more default init vs = 0 2024-04-27 01:32:45 -07:00
GitHub set-date Action 51688b5d47 Update date 2024-04-27 00:09:04 +00:00
Nathan Schulte 12ffa0c696
build OpenBLT with nucleo_f429 board (#414) 2024-04-26 02:03:44 -07:00
Matthew Kennedy decbaaef4a common getTimeNowUs 2024-04-25 22:01:46 -07:00
Matthew Kennedy be2c04813a common getTimeNowS 2024-04-25 21:57:50 -07:00
Matthew Kennedy 54a4eed7d7 trigger decoder init 2024-04-25 16:58:19 -07:00
Matthew Kennedy 314c1e4b9c don't accidentally put it back in a 64 bit num 2024-04-25 16:54:27 -07:00
Matthew Kennedy d7158542d6 instant rpm clearer truncation to 32 bits time 2024-04-25 16:50:35 -07:00
Matthew Kennedy f6f20f96d7 fix main relay 2024-04-25 16:45:36 -07:00
Matthew Kennedy f60845e38c fix sim 2024-04-25 16:42:40 -07:00
Matthew Kennedy efc74d9975 debounce init 2024-04-25 16:40:08 -07:00
Matthew Kennedy 1c354c08c3 smart gpio init 2024-04-25 16:39:56 -07:00
Matthew Kennedy cbed1af4ba default inits in trigger adc 2024-04-25 16:32:32 -07:00
Matthew Kennedy 9fd94a6cee more timers instead of hand rolled 2024-04-25 16:30:38 -07:00
Matthew Kennedy d565951b10 tcharge uses a timer instead of hand spun 2024-04-25 16:26:37 -07:00
Matthew Kennedy f3bd75a295 advance map 2024-04-25 16:23:58 -07:00
Matthew Kennedy aa103d84ff Merge branch 'master' of https://github.com/fome-tech/fome-fw 2024-04-25 16:22:33 -07:00
Matthew Kennedy e6442f06f0 main relay bench test uses a timer 2024-04-25 16:22:16 -07:00
GitHub gen-configs Action cef1953efc Auto-generated configs and docs 2024-04-25 23:20:14 +00:00
Matthew Kennedy 632c493c4f little bit of encapsulatino 2024-04-25 16:18:51 -07:00
Matthew Kennedy 8e4994627d default init is ok for these 2024-04-25 15:49:27 -07:00
Matthew Kennedy 79dfb0f2c4 wrap times in simple structs 2024-04-25 15:46:53 -07:00
Matthew Kennedy ba613dbf15 fix dynoview typing 2024-04-25 15:29:19 -07:00
Matthew Kennedy 96834b2b99 duration vs timestamp 2024-04-25 15:22:54 -07:00
Matthew Kennedy dce084fdcb duration vs timestamp 2024-04-25 15:18:41 -07:00
Matthew Kennedy 0c30e1e148 use timer instead of home spun time math 2024-04-25 15:11:13 -07:00
Matthew Kennedy 378b37f29c use timer instead of home spun time math 2024-04-25 15:07:21 -07:00
Matthew Kennedy 9ebdc88bb4 use timer instead of home spun time math 2024-04-25 15:06:11 -07:00
Matthew Kennedy 8d486f120f clock32max 2024-04-25 14:47:49 -07:00
Matthew Kennedy d8b2d3c329 debounce efidur_t 2024-04-25 14:38:21 -07:00