140 Commits

Author SHA1 Message Date
b9220a04e9
properly handle negative temperatures 2025-06-11 17:37:57 +02:00
bd078764e4
disable SPI RX autosusp 2025-06-10 19:11:39 +02:00
71a44a8284 track PC, PSR across WWDG resets 2025-06-06 18:29:21 +02:00
c4c1a76e51 enable IWDG, WWDG
reset if we get stuck for more than ~120 ms
2025-06-06 18:08:02 +02:00
e5739bc2d4
fix signedness of min/max pack temp
should fix max temp always being -32678, whoops
2025-06-06 01:09:50 +02:00
96b8e12f9a
add check for implausible temperatures 2025-06-05 14:33:31 +02:00
37cec353ec
fix critical section 2025-06-04 20:49:04 +02:00
aa16f093b1 change isotp logging id from 0x123 to 0x213 2025-05-29 14:23:47 +02:00
293342fbe9 Merge branch 'master-cleanup' of https://git.fasttube.de/FaSTTUBe/ams-master into master-cleanup 2025-05-28 22:20:11 +02:00
5c73a4b883 6 bms + check ams_in for plausibility 2025-05-28 22:19:05 +02:00
6a7f2c2737
enable SPI RX autosusp
might prevent overruns?
2025-05-27 22:51:45 +02:00
861d9c9bd3 shunt data correct for highside 2025-05-26 14:49:38 +02:00
468ba1d7e7
make SPI reads/writes a interrupt-free 2025-05-26 14:26:47 +02:00
f910f899a4
reformat 2025-05-20 16:52:41 +02:00
3f8e1290fa
eliminate some compiler warnings 2025-05-20 16:01:16 +02:00
18f6d62c7b
refactor swo output 2025-05-20 16:00:40 +02:00
dd4d17c133
add minimum duration of 1 sec for precharge 2025-05-20 01:26:14 +02:00
0c4f066d92
cleanup part 5 2025-05-20 01:26:14 +02:00
56a4befaf1
cleanup part 4 2025-05-20 01:23:43 +02:00
04f678b91d
cleanup part 3 2025-05-20 01:22:22 +02:00
d1c1419016
cleanup part 2 2025-05-20 01:22:22 +02:00
d71099a2d4
cleanup part 1 2025-05-20 01:22:22 +02:00
d86cc50caf
hopefully fix log messages 2025-05-20 01:14:57 +02:00
b9f937d78c
fix min/max voltage calculation 2025-05-17 22:16:12 +02:00
99dea8f442 merge CAN fixup from master-test 2025-05-16 14:55:56 +02:00
976eba57d4
isotp update/fixup 2025-05-05 02:36:14 +02:00
162f58abe2
update to new isotp stack, send voltages every ~50 ms 2025-05-03 15:30:26 +02:00
2bbe11267a
fix log crashes, ITEMP calculation
print CS_FLT details
log errored AMS states as it happens
2025-05-02 23:16:18 +02:00
765f1e5ee1
enable streaming for testing, route FC messages to isotp stack 2025-04-23 17:44:07 +02:00
354b6dc453
add can backend to logger 2025-04-22 15:40:38 +02:00
99eefa4283
log fixup 2025-04-21 14:14:49 +02:00
9cc314ad7c
new logger 2025-04-21 00:22:09 +02:00
4ecb91ba39
cleanup, add debug printout when cell OV/UV happens 2025-04-16 22:54:38 +02:00
d5885ae849
add bms id to module status 2025-04-16 22:31:55 +02:00
4926e9b2a4
add standard deviation calculation, minor cleanup 2025-04-16 22:16:39 +02:00
bc4e202cb0
add overtemp check 2025-04-13 16:04:05 +02:00
bdddc49dab
add battery error handling 2025-04-13 15:42:53 +02:00
e0467fcda6 new state machine description 2025-04-12 19:58:04 +02:00
980f41afc6 add logging to master 2025-04-12 19:58:04 +02:00
0e2de588bf
big cleanup 2025-04-11 18:08:45 +02:00
ccf0c3f665
change slave_monitoring header to new battery header 2025-04-11 14:29:12 +02:00
babea2e805
add prefix capability to swo_log 2025-04-11 14:28:13 +02:00
9b32e69b6d
clean up some old files 2025-04-11 14:27:35 +02:00
535e311e23 Merge branch 'master-test' of https://git.fasttube.de/FaSTTUBe/ams-master into master-test 2025-04-10 13:51:22 +02:00
6e46c4f470 trying precharge, pls help 2025-04-10 13:49:13 +02:00
e45c1c2878
merge latest version of adbms driver 2025-04-09 20:28:50 +02:00
1322a7e8b0 start adding old code to the working slave code 2025-04-07 16:13:31 +02:00
030d3b8ad1 moved logs 2025-04-07 14:23:36 +02:00
49a12a4b2c added master23 code files 2025-04-07 14:20:00 +02:00
48a06b87ae fix: attach to STM faster 2025-03-31 21:55:15 +02:00