issue #5: Implement safety weight checking in control loop
This commit is contained in:
		@@ -43,6 +43,8 @@ void oven_pid_handle(float target_temp);
 | 
			
		||||
 | 
			
		||||
void oven_pid_stop(void);
 | 
			
		||||
 | 
			
		||||
void oven_pid_abort(void);
 | 
			
		||||
 | 
			
		||||
void oven_driver_apply_power_level(void);
 | 
			
		||||
 | 
			
		||||
enum oven_pid_status oven_pid_get_status(void);
 | 
			
		||||
 
 | 
			
		||||
@@ -132,7 +132,9 @@ enum analog_value_monitor {
 | 
			
		||||
			ERR_FLAG_WEIGHT_ENTRY(ERR_FLAG_STACK, SAFETY_FLAG_CONFIG_WEIGHT_PANIC), \
 | 
			
		||||
			ERR_FLAG_WEIGHT_ENTRY(ERR_FLAG_SAFETY_ADC, SAFETY_FLAG_CONFIG_WEIGHT_PANIC), \
 | 
			
		||||
			ERR_FLAG_WEIGHT_ENTRY(ERR_FLAG_SYSTICK, SAFETY_FLAG_CONFIG_WEIGHT_PANIC), \
 | 
			
		||||
			ERR_FLAG_WEIGHT_ENTRY(ERR_FLAG_WTCHDG_FIRED, SAFETY_FLAG_CONFIG_WEIGHT_PANIC), \
 | 
			
		||||
			/* Watchdog timeout is not handled perioodically, but only on startup.
 | 
			
		||||
			 * Therefore, it is not listed here */\
 | 
			
		||||
			ERR_FLAG_WEIGHT_ENTRY(ERR_FLAG_WTCHDG_FIRED, SAFETY_FLAG_CONFIG_WEIGHT_NONE), \
 | 
			
		||||
			ERR_FLAG_WEIGHT_ENTRY(ERR_FLAG_UNCAL, SAFETY_FLAG_CONFIG_WEIGHT_NONE), \
 | 
			
		||||
			ERR_FLAG_WEIGHT_ENTRY(ERR_FLAG_DEBUG, SAFETY_FLAG_CONFIG_WEIGHT_NONE), \
 | 
			
		||||
			ERR_FLAG_WEIGHT_ENTRY(ERR_FLAG_TIMING_MAIN_LOOP, SAFETY_FLAG_CONFIG_WEIGHT_PANIC), \
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user