Index: firmware/App/Controllers/PresOccl.c =================================================================== diff -u -rc2415db7dd138b58958d7ae712f31c67bc30b821 -r0e599e877b5fe7f69ba6ca8fc0a219e6e7eb5bcd --- firmware/App/Controllers/PresOccl.c (.../PresOccl.c) (revision c2415db7dd138b58958d7ae712f31c67bc30b821) +++ firmware/App/Controllers/PresOccl.c (.../PresOccl.c) (revision 0e599e877b5fe7f69ba6ca8fc0a219e6e7eb5bcd) @@ -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. // The new arterial pressure sensor is the same as the venous pressure sensor