Index: firmware/App/Controllers/PresOccl.c =================================================================== diff -u -re4f2159406af470f7116c4d8ac510806261cb2dc -r510c62da033207630341774dd097ac7efef862fb --- firmware/App/Controllers/PresOccl.c (.../PresOccl.c) (revision e4f2159406af470f7116c4d8ac510806261cb2dc) +++ firmware/App/Controllers/PresOccl.c (.../PresOccl.c) (revision 510c62da033207630341774dd097ac7efef862fb) @@ -77,8 +77,11 @@ #define VENOUS_PRESSURE_LIMIT_MAX_MMHG ( 400.0F ) ///< Maximum venous pressure limit (in mmHg). #define VENOUS_PRESSURE_LIMIT_MIN_MMHG ( 20.0F ) ///< Minimum venous pressure limit (in mmHg). #define VENOUS_PRESSURE_OCCL_OFFSET_MMHG ( 50.0F ) ///< Venous pressure occlusion threshold offset from max alarm limit (in mmHg). -#define VENOUS_PRES_AT_FILL_DELAY_FACTOR ( 50000 ) ///< Venous pressure low exemption delay (in task intervals) conversion factor (from Qb) following an air trap fill. +#define VENOUS_PRES_AT_FILL_DELAY_MAX_BLOOD_VOL_ML ( 41.667F ) ///< Venous pressure low exemption delay after air trap fill maximum blood volume (in mL). +/// Venous pressure low exemption period (in task intervals) conversion factor (from Qb in mL/min) following an air trap fill. +static const U32 VENOUS_PRES_AT_FILL_DELAY_FACTOR = (U32)( VENOUS_PRES_AT_FILL_DELAY_MAX_BLOOD_VOL_ML * (F32)SEC_PER_MIN * ( (F32)MS_PER_SECOND / (F32)TASK_GENERAL_INTERVAL ) ); + #define PSI_TO_MMHG ( 51.7149F ) ///< Conversion factor for converting PSI to mmHg. #define VENOUS_PRESSURE_NORMAL_OP 0 ///< Venous pressure status bits indicate normal operation.