Skip to content

File volume_calculations.hpp

FileList > SensorHub_FW > src > volume_calculations.hpp

Go to the source code of this file

  • #include <FreeRTOS.h>
  • #include <queue.h>
  • #include <task.h>

Public Attributes

Type Name
double sampleVolume

Public Static Attributes

Type Name
uint32_t stopTime
uint8_t timeDifference
double totalVolume

Public Functions

Type Name
double CalculateAirBlownInLungs (uint16_t differentialPressure)
uint16_t CalculateTotalVolume (uint16_t differentialPressure)
double sqrt (double input)

Macros

Type Name
define AIR_DRAG 0.61
define AIR_WEIGHT 1.20
define CORRECTION_FACTOR 1.78
define FLOW_ERROR 2000
define INTERVAL_TO_FREQ 1000
define M3TOCM3_FACTOR 1e6
define MAX_PROCESSABLE_SENSOR_VAL 500
define ORIFICE_SURFACE 7.069e-6
define VOLUME_CALC_CONSTANT 0.94

Public Attributes Documentation

variable sampleVolume

double sampleVolume;

Public Static Attributes Documentation

variable stopTime

uint32_t stopTime;

variable timeDifference

uint8_t timeDifference;

variable totalVolume

double totalVolume;

Public Functions Documentation

function CalculateAirBlownInLungs

double CalculateAirBlownInLungs (
    uint16_t differentialPressure
) 

function CalculateTotalVolume

uint16_t CalculateTotalVolume (
    uint16_t differentialPressure
) 

function sqrt

double sqrt (
    double input
) 

Macro Definition Documentation

define AIR_DRAG

#define AIR_DRAG 0.61

define AIR_WEIGHT

#define AIR_WEIGHT 1.20

define CORRECTION_FACTOR

#define CORRECTION_FACTOR 1.78

define FLOW_ERROR

#define FLOW_ERROR 2000

define INTERVAL_TO_FREQ

#define INTERVAL_TO_FREQ 1000

define M3TOCM3_FACTOR

#define M3TOCM3_FACTOR 1e6

define MAX_PROCESSABLE_SENSOR_VAL

#define MAX_PROCESSABLE_SENSOR_VAL 500

define ORIFICE_SURFACE

#define ORIFICE_SURFACE 7.069e-6

define VOLUME_CALC_CONSTANT

#define VOLUME_CALC_CONSTANT 0.94

The documentation for this class was generated from the following file SensorHub_FW/src/volume_calculations.hpp