root: update diagrams
This commit is contained in:
parent
cdcb13bc1f
commit
d909fdb609
40
README.md
40
README.md
@ -1,38 +1,14 @@
|
|||||||
# SHOH-Innovation-Project
|
# SHOH-Innovation-Project
|
||||||
Smart Home Oil Heater is a project for Metropolia UAS course called Multidisciplinary Innovation Project.
|
Smart Home Oil Heater is a project for Metropolia UAS course called Multidisciplinary Innovation Project.
|
||||||
|
|
||||||
Tasks communication:
|
## Tasks communication:
|
||||||
|

|
||||||
|
|
||||||
|
## Event communication flow:
|
||||||
```
|
```
|
||||||
Rotary: gets rotation dir --- Master --- Temp Task: gets temp
|
Temp Sensors --> Master --> Manager & Relay
|
||||||
|
|
Rotary --> Master --> Manager
|
||||||
|
|
Manager --> Master --> Relay
|
||||||
|
|
Manager --> UI LCD
|
||||||
|
|
|
||||||
|
|
|
||||||
Menu Task ------------------------------------------- Heater Task
|
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
common struct:
|
|
||||||
```c
|
|
||||||
typedef struct {
|
|
||||||
int8_t temp_real;
|
|
||||||
} sensor_temp ;
|
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
bool right;
|
|
||||||
bool press;
|
|
||||||
} rotary_action ;
|
|
||||||
|
|
||||||
typedef struct {
|
|
||||||
int8_t set_point;
|
|
||||||
} user_settings;
|
|
||||||
```
|
|
||||||
|
|
||||||
common struct communication diagram:
|
|
||||||
|
|
||||||
- sensor_temp (Temp Task --> Master --> Menu && Heater)
|
|
||||||
- rotary_action (Rotary --> Master --> Menu Task)
|
|
||||||
- user_settings (Menu --> Master --> Heater)
|
|
||||||
|
|
||||||
|
|||||||
BIN
images/task_communication.png
Normal file
BIN
images/task_communication.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 293 KiB |
Loading…
x
Reference in New Issue
Block a user