Closed cmomin closed 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
.
Tested on branch volume-check
Closed by 4b7972c0.
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.