Breath4Life / controller

5 stars 1 forks source link

Target volume check #40

Closed cmomin closed 4 years ago

cmomin commented 4 years ago

Currently, the actual expired air volume is not checked regarding the target. This needs to be done in MOTOR_TASK. As a first specification, when the condition 0.9Vt <= Va <= 1.1Vt is not met, notify MAIN_TASK that raise an alarm and continue the breathing cycles.

anpar commented 4 years ago

uint8_t check_volume() function declared in volume.h returns 1 if within +-10% of target volume, 0 otherwise. To be integrated at the end of inspiration or plateau phase in motor_task.c.

anpar commented 4 years ago

Tested on branch volume-check

anpar commented 4 years ago

Closed by 4b7972c0.