software:firmware
MakAir Firmware
|
Calibration of the ventilator. More...
#include "../includes/config.h"
#include "../includes/blower.h"
#include "../includes/buzzer.h"
#include "../includes/calibration.h"
#include "../includes/keyboard.h"
#include "../includes/mass_flow_meter.h"
#include "../includes/pressure.h"
#include "../includes/pressure_valve.h"
#include "../includes/screen.h"
#include "../includes/telemetry.h"
#include "Arduino.h"
Go to the source code of this file.
Macros | |
#define | RESTART_READ_KEYBOARD_DELAY 100 |
Functions | |
void | Calibration_Init () |
Initialization of calibration process. More... | |
void | Calibration_Wait_Measure_Pressure (uint16_t ms) |
Block execution for a given duration. More... | |
void | Calibration_Read_Keyboard_Delayed () |
Read keyboard duing calibration process (delayed) More... | |
void | Calibration_Restart () |
Restart calibration process. More... | |
bool | Calibration_Started () |
Check if calibration mode is started. More... | |
Variables | |
int32_t | pressureOffsetSum |
uint32_t | pressureOffsetCount |
int32_t | minOffsetValue = 0 |
int32_t | maxOffsetValue = 0 |
uint32_t | restartWaitTimer = 0 |
bool | startButtonPressed = false |
bool | calibationStarted = false |
bool | calibrationValid = false |
Calibration of the ventilator.
Definition in file calibration.cpp.
#define RESTART_READ_KEYBOARD_DELAY 100 |
Definition at line 38 of file calibration.cpp.
void Calibration_Init | ( | void | ) |
Initialization of calibration process.
Definition at line 40 of file calibration.cpp.
void Calibration_Read_Keyboard_Delayed | ( | void | ) |
void Calibration_Restart | ( | void | ) |
bool Calibration_Started | ( | void | ) |
Check if calibration mode is started.
Definition at line 204 of file calibration.cpp.
void Calibration_Wait_Measure_Pressure | ( | uint16_t | ms | ) |
Block execution for a given duration.
ms | Duration of the blocking in millisecond |
Definition at line 171 of file calibration.cpp.
bool calibationStarted = false |
Definition at line 36 of file calibration.cpp.
bool calibrationValid = false |
Definition at line 37 of file calibration.cpp.
int32_t maxOffsetValue = 0 |
Definition at line 33 of file calibration.cpp.
int32_t minOffsetValue = 0 |
Definition at line 32 of file calibration.cpp.
uint32_t pressureOffsetCount |
Definition at line 31 of file calibration.cpp.
int32_t pressureOffsetSum |
Definition at line 30 of file calibration.cpp.
uint32_t restartWaitTimer = 0 |
Definition at line 34 of file calibration.cpp.
bool startButtonPressed = false |
Definition at line 35 of file calibration.cpp.