Temperature management assignment (in C)
419

A system has control over 3 engines, each engine has his own temperature sensor.
You need to implement a task that turns off an engine when its overheat (50 degress or above), the task will turn the engine back on when it cools down back to 40 degrees.
Note that the sensors aren't reliable - if there's a recurring malfunction (e.g an engine overheat more than once) the system needs to shut herself down and set an alarm to notify.

The system already has the following functions that you can use:

err_type temp_read(double *value, uint8_t motor_id);

void motor_set_state(bool state, uint8_t motor_id);

void set_alarm(bool state);

Comments (2)