Commit Graph

679 Commits

Author SHA1 Message Date
rusefillc 63b77f723e
Typo in dac.h fix #308 (#315) 2024-04-24 16:06:24 -07:00
Matthew Kennedy bffc99c567 allow manual fw runs 2024-03-10 20:19:01 -07:00
Andrey G 94f2377bca
Gain vs loss confusion (#304) 2023-12-10 03:53:56 -08:00
rusefillc 72d5a0dc06
making TX period available since downstream wants to multiply it by two (#302)
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2023-12-05 18:05:32 -08:00
Andrey G 56ee5c80bf
TS_ENABLED vs ENABLE_TS: fix mess (#301)
board.mk defines ENABLE_TS for Makefile
while Makefile defines TS_ENABLED for compiled code.
Use TS_ENABLED in main.cpp
2023-12-03 15:57:18 -08:00
Matthew Kennedy 29556e471d F0 doesn't need UART 2023-11-23 00:03:17 -08:00
Matthew Kennedy b75f8a9224 don't check in the binary 2023-11-22 21:11:07 -08:00
Matthew Kennedy a5372c65d9 update F0 build outputs since it's in a good state 2023-11-22 20:53:34 -08:00
Matthew Kennedy 5da22cf89f keep support for existing CAN reboot command 2023-11-22 20:52:09 -08:00
Matthew Kennedy ea46db500f set valid bit only when nernst voltage is well controlled 2023-11-22 19:35:40 -08:00
Matthew Kennedy 55c25a504c test 2023-11-22 19:30:09 -08:00
Matthew Kennedy f2aef8fa06 an undisclosed source says these parameters are better #296 2023-11-22 19:27:29 -08:00
Matthew Kennedy b23904362f
Conditional compile ts (#298)
* conditionally compile TS as it's a memory hog

* naming so dumps are easier to read
2023-11-22 18:26:40 -08:00
rusefillc f784d5d5b9
avoid 64 bit divide (!) exploding binary size (#293)
fixing unit tests

Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2023-11-20 01:48:23 -08:00
rusefillc fa042fb6f5
heater: shortcut if sensor is hot enough (#277)
* heater: shortcut if sensor is hot enough

* heater: shortcut if sensor is hot enougth

---------

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-11-19 13:10:42 -08:00
Matthew Kennedy 4bdd8f5c44 avoid 64 bit divide (!) exploding binary size 2023-11-17 19:42:59 -08:00
Matthew Kennedy 52f306b6f5 avoid NaN in case of zero battery voltage 2023-11-17 18:19:55 -08:00
Matthew Kennedy 99335f90c1 F0 heater was broken by cddcd0d88c 2023-11-17 18:08:45 -08:00
Matthew Kennedy 86d57343b1 stray returns? 2023-11-17 17:50:52 -08:00
Matthew Kennedy 35c84cf13b battery stabilization time with a timer 2023-11-15 20:54:57 -08:00
Matthew Kennedy 5902009536 fix it more 2023-11-15 20:39:20 -08:00
Matthew Kennedy 420e9e5ef7 happy mac build 2023-11-15 20:33:55 -08:00
Matthew Kennedy 50f8e1f2bb auto-heat after 5 seconds of no CAN command #194 2023-11-15 20:28:51 -08:00
Matthew Kennedy b73adb2e61 Revert "fresh lib (#290)"
This reverts commit d1e993dd71.
2023-11-15 20:26:54 -08:00
Matthew Kennedy 17acd065d3
cherry-pick timer from ECU and use it for sequencing logic (#289)
* enable timestamp api

* add timer class

* use unsigned integer for timestamps

* heater uses timers

* timer mocking and test adjustment
2023-11-15 17:42:37 -08:00
rusefillc d1e993dd71
fresh lib (#290)
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2023-11-15 17:36:20 -08:00
rusefillc 7ab5830159
typo & more info (#287) 2023-11-15 17:23:38 -08:00
rusefillc 982cd32ee7
heater_control: do not preheat on low voltages (#286)
Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-11-15 17:21:16 -08:00
Matthew Kennedy 2469315a35 EOL in build yaml 2023-11-15 16:20:34 -08:00
rusefillc 9e2cea57ab
TS: send Ok response on Reset/Reboot commands to make TS happy (#285)
Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-11-15 00:36:22 -08:00
rusefillc 9cd5c23d7a
Mess (#282)
* f1_dual_rev1: fix Heater vs Battery naming mess

* f1_dual: fix Heater vs Battery naming mess

* fix f1_dual_rev1

---------

Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-11-14 22:22:32 -08:00
Matthew Kennedy e7bc7132d9 Merge branch 'master' of https://github.com/mck1117/wideband 2023-11-13 15:02:15 -08:00
Matthew Kennedy b57bee77fc LSU ADV getPhi 2023-11-13 15:02:13 -08:00
rusefillc 3a77efb9cc
Reduce heater supply stabilization delay from 3s to 0.5s (#276)
Co-authored-by: Andrey Gusakov <dron0gus@gmail.com>
2023-11-13 14:20:52 -08:00
Matthew Kennedy c2cb3b9015 test heater state machine 2023-11-13 14:15:22 -08:00
Matthew Kennedy b3b73135a6 unit test debug launch config 2023-11-13 13:56:11 -08:00
Matthew Kennedy 7f5b7097e3 tests for heater output 2023-11-13 13:56:03 -08:00
Matthew Kennedy 5c128f4034 uninitialized variable! 2023-11-13 13:51:59 -08:00
Matthew Kennedy ff5b3ac3bb split heater thread and heater logic 2023-11-13 13:30:23 -08:00
Matthew Kennedy ce7d85ccc5 werror=unused-function 2023-11-13 13:15:36 -08:00
Matthew Kennedy a7b081b882 extract heater class declaration 2023-11-13 12:55:48 -08:00
Matthew Kennedy ffbc6140c3 f1 configuration typo 2023-11-13 02:21:58 -08:00
Matthew Kennedy 0bbc32104d only reboot one controller at a time 2023-11-11 21:37:05 -08:00
Matthew Kennedy a4eb0f7e74 static 2023-11-11 17:58:47 -08:00
rusefillc 1b1103952f
let's have gcc help us (#278)
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2023-11-03 20:27:49 -07:00
Matthew Kennedy 013a016a62 add CAN format DBC file 2023-09-22 18:28:37 -07:00
Matthew Kennedy 1996043323 accurate comment 2023-08-09 13:47:19 -07:00
Matthew Kennedy 1d7c2284e8 test sampler AC 2023-08-09 13:44:12 -07:00
Matthew Kennedy 1897917dd7 dc sampler test 2023-08-09 13:36:48 -07:00
Matthew Kennedy 49734dec08 f0 loader 2023-08-09 13:36:38 -07:00