94a1794764 
					 
					
						
						
							
							fix SOC estimation  
						
						 
						
						
						
						
					 
					
						2024-07-18 10:15:06 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						b68d26decb 
					 
					
						
						
							
							Send SDC_Closed without plausibility delay  
						
						 
						
						
						
						
					 
					
						2024-07-17 18:21:21 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						a4fd5d26f5 
					 
					
						
						
							
							Plausibility delay for SDC measurement  
						
						 
						
						
						
						
					 
					
						2024-07-17 16:42:32 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						02fb39669a 
					 
					
						
						
							
							Set target state to INACTIVE when in DISCHARGE  
						
						 
						
						
						
						
					 
					
						2024-07-17 16:38:10 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						7a5a28d056 
					 
					
						
						
							
							Sign fixes for SoC estimation  
						
						 
						
						
						
						
					 
					
						2024-07-09 21:25:20 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						0a9b178cc1 
					 
					
						
						
							
							SoC estimation  
						
						 
						
						
						
						
					 
					
						2024-06-10 15:22:05 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						23961f5ecb 
					 
					
						
						
							
							Un-'fix' AMS_NERROR logic  
						
						 
						
						
						
						
					 
					
						2024-05-23 00:47:21 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						06de9e6efb 
					 
					
						
						
							
							Update Core/Inc/slave_monitoring.h  
						
						 
						
						
						
						
					 
					
						2024-05-21 18:11:48 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						77078dfa41 
					 
					
						
						
							
							blink led to show more statuses, add internal error condition  
						
						 
						
						
						
						
					 
					
						2024-05-20 21:36:42 +03:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						bfbecba2a6 
					 
					
						
						
							
							FDCAN Timings and settings correctly configured  
						
						 
						
						
						
						
					 
					
						2024-05-20 20:37:53 +03:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						7b976812ac
	 
				 
					 
					
						
						
							
							disable unused parameter warning in build configuration, update HAL includes  
						
						 
						
						
						
						
					 
					
						2024-05-19 00:30:47 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						05b5e8c3c6 
					 
					
						
						
							
							update constants, SLAVE_POWER_1 behavior  
						
						 
						
						
						
						
					 
					
						2024-05-17 00:23:23 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						2680da3c4f 
					 
					
						
						
							
							correct AMS_NERROR logic  
						
						 
						
						
						
						
					 
					
						2024-05-08 16:47:21 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						1b661ec81b 
					 
					
						
						
							
							update to newest can-halal  
						
						 
						
						
						
						
					 
					
						2024-04-25 18:49:49 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						0620b5daa2 
					 
					
						
						
							
							update status LED code  
						
						 
						
						
						
						
					 
					
						2024-04-23 21:17:45 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						37924c719e 
					 
					
						
						
							
							update fdcan filter count to 20  
						
						 
						
						
						
						
					 
					
						2024-04-23 17:55:49 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						9fc7fc2242 
					 
					
						
						
							
							cleanup, fix compiler errors  
						
						 
						
						
						
						
					 
					
						2024-04-23 17:37:17 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						8023607638 
					 
					
						
						
							
							first conversion attempt  
						
						 
						
						
						
						
					 
					
						2024-04-23 16:50:18 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						f9fafd931c
	 
				 
					 
					
						
						
							
							add new internal bms fault slave error code  
						
						 
						
						
						
						
					 
					
						2024-04-18 01:28:58 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						8005b94b24
	 
				 
					 
					
						
						
							
							add new slave panic codes  
						
						 
						
						
						
						
					 
					
						2024-04-01 20:43:36 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						ba05bb5ff4
	 
				 
					 
					
						
						
							
							formatted  
						
						 
						
						
						
						
					 
					
						2024-04-01 19:58:33 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						c5343f9cdd
	 
				 
					 
					
						
						
							
							error out compile until GPIO pins corrected  
						
						 
						
						
						
						
					 
					
						2023-12-04 22:25:00 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						b24fc66caf
	 
				 
					 
					
						
						
							
							preliminary support for the two RGB status leds  
						
						 
						
						... 
						
						
						
						Note: pin assignments not final 
						
						
					 
					
						2023-12-04 18:45:29 +01:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						cef05f52bc 
					 
					
						
						
							
							Multiply SoC delta by 100 to get percentage  
						
						 
						
						
						
						
					 
					
						2023-08-01 14:39:01 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						61155995f8 
					 
					
						
						
							
							Disregard AMS slave status error flag  
						
						 
						
						
						
						
					 
					
						2023-07-12 19:34:30 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						410597c0f3 
					 
					
						
						
							
							Correctly unmarshal slave error kinds  
						
						 
						
						
						
						
					 
					
						2023-07-03 14:20:24 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						12422071a5 
					 
					
						
						
							
							Read IMD M pin  
						
						 
						
						
						
						
					 
					
						2023-07-03 14:20:13 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						554eecfc94 
					 
					
						
						
							
							Configure IOC for Master v2  
						
						 
						
						
						
						
					 
					
						2023-07-02 13:27:50 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						208d84e2a5 
					 
					
						
						
							
							Integrate current  
						
						 
						
						... 
						
						
						
						The current counter on the shunt can't be activated for some reason. 
						
						
					 
					
						2023-06-25 16:41:29 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						5dba504e10 
					 
					
						
						
							
							Basic SoC estimation  
						
						 
						
						
						
						
					 
					
						2023-06-25 15:29:08 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						2eb7109416 
					 
					
						
						
							
							Revert "Implementation of SoC Prediction"  
						
						 
						
						... 
						
						
						
						This reverts commit c4543e7e01 . 
						
						
					 
					
						2023-06-25 15:28:53 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						c4543e7e01 
					 
					
						
						
							
							Implementation of SoC Prediction  
						
						 
						
						... 
						
						
						
						untested. Maybe revert to Jaspers Version 
						
						
					 
					
						2023-06-21 13:13:38 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						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  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						6d6c1c1f15 
					 
					
						
						
							
							Only leave TS_INACTIVE if SDC is closed  
						
						 
						
						
						
						
					 
					
						2023-06-05 18:45:41 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						cf018f9e4a 
					 
					
						
						
							
							Full battery  
						
						 
						
						
						
						
					 
					
						2023-06-05 18:17:16 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						25d6ab2667 
					 
					
						
						
							
							Shunt timeout  
						
						 
						
						
						
						
					 
					
						2023-05-31 00:46:49 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						bf11004c64 
					 
					
						
						
							
							Receive individual slave status messages  
						
						 
						
						
						
						
					 
					
						2023-05-14 19:52:24 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						c54f3a65e3 
					 
					
						
						
							
							Fix slave error source  
						
						 
						
						
						
						
					 
					
						2023-05-03 17:13:10 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						ce4d7253eb 
					 
					
						
						
							
							Send AMS error messages  
						
						 
						
						
						
						
					 
					
						2023-04-30 00:57:42 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						48ae56fbdf 
					 
					
						
						
							
							Set AMS Error pin  
						
						 
						
						
						
						
					 
					
						2023-04-30 00:04:00 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						6810790349 
					 
					
						
						
							
							Don't wait after reaching 95%  
						
						 
						
						
						
						
					 
					
						2023-04-29 23:45:59 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						c43b6a3b6e 
					 
					
						
						
							
							Broadcast SDC state  
						
						 
						
						
						
						
					 
					
						2023-04-29 23:44:45 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						29b411e4af 
					 
					
						
						
							
							Make SDC state globally available  
						
						 
						
						
						
						
					 
					
						2023-04-26 13:18:54 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						6c27b83377 
					 
					
						
						
							
							Motors turning  
						
						 
						
						
						
						
					 
					
						2023-04-24 19:20:21 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						f5e26aad24 
					 
					
						
						
							
							Run main loop every 50ms  
						
						 
						
						
						
						
					 
					
						2023-04-15 22:47:16 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						f09665ad28 
					 
					
						
						
							
							Decouple slave IDs from slaves array indices  
						
						 
						
						
						
						
					 
					
						2023-04-15 22:23:41 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						e86a0f90fb 
					 
					
						
						
							
							Open AIRs in error handlers  
						
						 
						
						
						
						
					 
					
						2023-04-15 22:13:33 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						ca6bdec839 
					 
					
						
						
							
							Handle slave status frames  
						
						 
						
						
						
						
					 
					
						2023-04-15 22:01:22 +02:00  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						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  
					
					
						 
						
						
							
							
							 
							
							
							
							
							 
						
					 
				 
			
				
					
						
					 
					
						
						
							
						
						0b2010797e 
					 
					
						
						
							
							AMS_ERROR pin is actually inverted  
						
						 
						
						
						
						
					 
					
						2023-04-04 14:51:55 +02:00