Progress in error handling

This commit is contained in:
2020-06-14 23:36:49 +02:00
parent 62a3e06baa
commit 78417e0c8c
4 changed files with 43 additions and 13 deletions

View File

@@ -45,7 +45,7 @@ struct oven_pid_errors {
struct oven_pid_status {
bool active;
bool aborted;
bool error_set;
struct oven_pid_errors error_flags;
float target_temp;
float current_temp;
@@ -58,6 +58,8 @@ void oven_driver_set_power(uint8_t power);
void oven_driver_disable(void);
void oven_pid_ack_errors(void);
void oven_pid_init(struct pid_controller *controller_to_copy);
void oven_pid_handle(float target_temp);