Commit Graph

16 Commits

Author SHA1 Message Date
jazzpi e3080b1f6e Stop charging if we're discharging 2022-08-05 00:13:42 +02:00
jazzpi 77f600ddb3 Prevent stack overflow on slave panic 2022-08-04 16:20:18 +02:00
jazzpi e3a226be54 Add 10ms delay after closing relays 2022-08-02 23:29:44 +02:00
jazzpi 8b0ca85f3d Enable TIM8 update interrupt
Previously, heartbeat frames weren't actually sent because the timer
interrupt never fired.
2022-08-02 18:34:19 +02:00
jazzpi 3d4f9eab74 Send counter with clock sync frames
This allows for a simple sanity check on the slave to catch missed
frames.
2022-08-02 18:33:52 +02:00
jazzpi 5ad45cf53d Send heartbeat packets every 100 ms 2022-08-01 08:42:36 +02:00
jazzpi bd9d86b168 Move clock sync logic to separate files 2022-08-01 08:20:50 +02:00
jazzpi 372d07af84 Send time sync packets every 1000 ms 2022-08-01 08:05:18 +02:00
jazzpi a4d6036302 Reduce SPI frame timeout 2022-07-30 22:25:09 +02:00
jazzpi e0b9568e56 Check number of broken temperature sensors 2022-07-30 22:23:05 +02:00
jazzpi 4316e604da Check individual heartbeat frames for timeouts 2022-07-30 22:22:05 +02:00
jazzpi d9e8cc5f52 Count CAN frames read in one cycle 2022-07-28 22:05:20 +02:00
jazzpi eaf86ff0ce Send error codes to interface chip 2022-07-25 20:05:47 +02:00
jazzpi 8cf15685b8 7 slaves 2022-07-20 12:43:32 +02:00
jazzpi 7795a7cd7d Working version 2022-07-18 16:54:42 +02:00
jazzpi b49ac54166 Initial commit 2022-07-03 17:24:42 +02:00