Index: firmware/App/Controllers/PresOccl.c =================================================================== diff -u -r8cebc7f282f403c99f712d422454c15414b6fc73 -r84e94699ac1a6236a6aba130e45149a9cf3ac5f8 --- firmware/App/Controllers/PresOccl.c (.../PresOccl.c) (revision 8cebc7f282f403c99f712d422454c15414b6fc73) +++ firmware/App/Controllers/PresOccl.c (.../PresOccl.c) (revision 84e94699ac1a6236a6aba130e45149a9cf3ac5f8) @@ -363,7 +363,15 @@ // Check for stale arterial pressure reading if ( FALSE == isPersistentAlarmTriggered( ALARM_ID_HD_VENOUS_PRESSURE_READ_TIMEOUT_ERROR, ( lastArterialPressureReadCtr == artReadCtr || artErrorCtr > 0 ) ) ) { +#ifndef PBA_ESTIMATION arterialPressure.data = ARTERIAL_PRESSURE_V_PER_BIT * ( (F32)(artPres) / ( ARTERIAL_PRESSURE_SENSITIVITY * ARTERIAL_PRESSURE_V_BIAS ) ) + getF32OverrideValue( &arterialPressureOffset ); +#else + // TODO - temporary test code - remove later + F32 artPres = -0.1146 * getMeasuredBloodPumpMCSpeed(); + artPres = MAX(-200.0,artPres); + artPres = MIN(0,artPres); + arterialPressure.data = artPres; +#endif } else { Index: firmware/App/HDCommon.h =================================================================== diff -u -r8a0735916a4006faaf0651d685131916517c4f33 -r84e94699ac1a6236a6aba130e45149a9cf3ac5f8 --- firmware/App/HDCommon.h (.../HDCommon.h) (revision 8a0735916a4006faaf0651d685131916517c4f33) +++ firmware/App/HDCommon.h (.../HDCommon.h) (revision 84e94699ac1a6236a6aba130e45149a9cf3ac5f8) @@ -50,6 +50,7 @@ // #define RUN_BP_OPEN_LOOP 1 // Run blood pump in open loop mode // #define RUN_DPI_OPEN_LOOP 1 // Run dialysate inlet pump in open loop mode #define WORN_OUT_CARTRIDGE 1 // Running with an old worn out cartridge (max wear) + #define PBA_ESTIMATION 1 // Estimate arterial pressure rather than look at PBA sensor #define DISABLE_MOTOR_CURRENT_CHECKS 1 // Do not error on HD pump current checks #define DISABLE_PUMP_FLOW_CHECKS 1 // Do not error on HD pump flow checks #define DISABLE_PUMP_SPEED_CHECKS 1 // Do not error on HD pump speed checks