Commit Graph

13 Commits

Author SHA1 Message Date
Kilian Bracher 2680da3c4f correct AMS_NERROR logic 2024-05-08 16:47:21 +02:00
Kilian Bracher 9fc7fc2242 cleanup, fix compiler errors 2024-04-23 17:37:17 +02:00
Kilian Bracher b24fc66caf
preliminary support for the two RGB status leds
Note: pin assignments not final
2023-12-04 18:45:29 +01:00
Jasper Blanckenburg 78fe61e231 Discharge if SDC is open and TS_Activate is sent
If we never leave TS_INACTIVE, the ABX keeps sending TS_Activate, and we
activate the TS as soon as the SDC is closed.
2023-06-13 20:49:43 +02:00
Jasper Blanckenburg 6d6c1c1f15 Only leave TS_INACTIVE if SDC is closed 2023-06-05 18:45:41 +02:00
Jasper Blanckenburg 48ae56fbdf Set AMS Error pin 2023-04-30 00:04:00 +02:00
Jasper Blanckenburg 29b411e4af Make SDC state globally available 2023-04-26 13:18:54 +02:00
Jasper Blanckenburg 6c27b83377 Motors turning 2023-04-24 19:20:21 +02:00
Jasper Blanckenburg 66d9baba7a Go into discharge for 5s
The discharge circuit is only active while the SDC is open. If the SDC
never opens (or opens for a very short time only), but we go to
TS_INACTIVE, then the discharge circuit will never be active. Going into
a discharge state for 5s allows the PDU to open the SDC for long enough
to reach <60V.
2023-04-15 16:58:40 +02:00
Jasper Blanckenburg e18135558d Use FaSTTUBe CAN Abstraction Layer 2023-03-15 18:07:38 +01:00
Jasper Blanckenburg 9355595b73 Reset timestamps when leaving their state 2023-03-12 23:01:13 +01:00
Jasper Blanckenburg ea4c10a093 Remove unused variable 2023-03-12 21:10:51 +01:00
Jasper Blanckenburg 4f43895235 Port FT22 code 2023-03-12 21:06:23 +01:00