Commit Graph

52 Commits

Author SHA1 Message Date
Andrey G d3e460a9a6
Uart debug (#64)
* heater: export state and description

* pump_dac: save and export Ipump

* float interpolation helpers

* Show heater state, heater duty, temperature and fault over uart

* uart: more stack for thread
2022-05-11 01:41:07 -07:00
Matthew Kennedy 2a2b438fc6 static 2022-04-06 17:23:18 -07:00
Andrey G bc0686c826
Smarter state machine to use internal vbatt when CAN not connected (#57)
* Smarter state machine to use internal vbatt when CAN not connected

* Style
2022-04-06 14:07:39 -07:00
Matthew Kennedy 66b891bf79 heater controller pulls from CAN world instead of push 2022-04-06 01:22:09 -07:00
Matthew Kennedy a376b54b55 report duty as float 2022-01-26 10:56:58 -08:00
rusefillc 3a5dc0208e
static (#49)
Co-authored-by: rusefillc <sdfsdfqsf2334234234>
2022-01-25 19:11:57 -08:00
Matthew Kennedy 6557809da2 send heater duty 2022-01-04 11:16:46 -08:00
Matthew Kennedy 2bda28226a extract fault 2022-01-01 21:10:55 -08:00
Matthew Kennedy 8cb60d5b18 pal heater device 2021-12-27 20:42:57 -08:00
Matthew Kennedy f675c63279 comment 2021-11-04 15:07:47 -07:00
Matthew Kennedy 0a117089b8 uppercase functions 2021-11-03 23:02:11 -07:00
Matthew Kennedy 10cbc928b0 make reality match the comment 2021-07-16 10:36:05 -07:00
Matthew Kennedy 18cc209f72 listen to heater enable bit 2021-07-15 21:50:22 -07:00
Matthew Kennedy 24cdee9c28 correct preheat duty 2021-07-15 21:48:24 -07:00
Matthew Kennedy e501510e80 less D 2021-07-12 23:49:55 -07:00
Matthew Kennedy 1119d79856 heater tweaks 2021-07-12 23:45:35 -07:00
Matthew Kennedy 21a3ae4939 overvolt protect 2021-07-12 22:44:42 -07:00
Matthew Kennedy 24fe166799 pid tuning, overvolt protect 2021-07-12 22:40:47 -07:00
Matthew Kennedy 00ba70522b heater control 2021-07-12 15:46:10 -07:00
Matthew Kennedy 9ff5df55fd name 2021-07-12 15:33:10 -07:00
Matthew Kennedy 7176ecb6c8 duty cycle math 2021-07-12 15:32:45 -07:00
Matthew Kennedy d645855adb get battery voltage from CAN 2021-07-12 15:31:02 -07:00
Matthew Kennedy a0f1b27c4d start on heater voltage control 2021-07-12 15:24:20 -07:00
Matthew Kennedy d3f90f2054 heater fiddling 2021-07-09 23:15:24 -07:00
Matthew Kennedy c12f4b7e43 dterm science 2021-07-09 11:22:33 -07:00
Matthew Kennedy b44fe3b98c add D term 2021-07-09 11:16:46 -07:00
Matthew Kennedy 26e46dd77a relax heater PI 2021-07-08 22:23:01 -07:00
Matthew Kennedy f9d94f1695 wait to start heater 2021-06-03 21:03:41 -07:00
Matthew Kennedy f4c3dfd74d clarify heater ramp math 2021-04-26 17:40:06 -07:00
Matthew Kennedy 31288634a0 correct ramp 2021-03-17 23:40:07 -07:00
Matthew Kennedy bf8bfb627a unused 2021-02-25 22:48:24 -08:00
Matthew Kennedy a972b99882 adjust control loop gains 2021-01-30 16:08:16 -08:00
Matthew Kennedy cce888559e relax heater control a bit 2021-01-15 21:51:14 -08:00
Matthew Kennedy 6e9c259c8f adjust wamup ramp to match datasheet 2020-12-25 22:46:07 -08:00
Matthew Kennedy 495819659d heater too 2020-12-15 15:00:11 -08:00
Matthew Kennedy e3ebe524e4 fast warmup 2020-12-13 17:24:33 -08:00
Matthew Kennedy 770283accd simpify 2020-12-11 16:50:06 -08:00
Matthew Kennedy 5c9acd4c66 detect underheat fault 2020-12-11 15:46:03 -08:00
Matthew Kennedy 94828339f9 clamp pid 2020-12-11 15:24:56 -08:00
Matthew Kennedy a8bdedaef6 actually stop if overheated 2020-12-11 15:10:04 -08:00
Matthew Kennedy c711252791 detect sensor overheat 2020-12-10 22:08:00 -08:00
Matthew Kennedy 43445e80e4 warning 2020-12-10 21:05:02 -08:00
Matthew Kennedy 745c14a160 detect warmup failure 2020-12-10 18:32:41 -08:00
Matthew Kennedy 180b9f6904 change closed loop threshold 2020-12-10 18:10:26 -08:00
Matthew Kennedy c2b535facf cleanup 2020-11-28 03:04:04 -08:00
Matthew Kennedy 85b0c4b6b4 gains 2020-10-31 18:44:09 -07:00
Matthew Kennedy 139a5fef81 less pid 2020-10-31 17:47:52 -07:00
Matthew Kennedy 0b7f591671 heater PID works 2020-10-31 17:34:36 -07:00
Matthew Kennedy d39df2d199 heater pid 2020-10-31 14:58:34 -07:00
Matthew Kennedy 453a4c4337 add IsRunningClosedLoop 2020-10-31 14:54:50 -07:00