Index: firmware/App/Controllers/BloodFlow.c =================================================================== diff -u -r6f02ff4686ec9dfc60247e9ed3fc9c5cc7771543 -r9ee205a82fc3bb2b6cdf871a2ef506b7a6caf88f --- firmware/App/Controllers/BloodFlow.c (.../BloodFlow.c) (revision 6f02ff4686ec9dfc60247e9ed3fc9c5cc7771543) +++ firmware/App/Controllers/BloodFlow.c (.../BloodFlow.c) (revision 9ee205a82fc3bb2b6cdf871a2ef506b7a6caf88f) @@ -150,6 +150,7 @@ static OVERRIDE_F32_T bpFlowAlphaYIntercept; ///< Blood flow estimation term for alpha Y intercept. static OVERRIDE_F32_T bpFlowWearATerm; ///< Blood flow estimation term for wear slope. static OVERRIDE_F32_T bpFlowWearBTerm; ///< Blood flow estimation term for wear offset. +static OVERRIDE_F32_T bpStrokeVolumeMlPerRev; //static TD_PUMPS_CAL_RECORD_T bloodPumpCalRecord; ///< Blood pump calibration record. @@ -1433,4 +1434,21 @@ return result; } +/*********************************************************************//** +* @brief +* The testBPStrokeVolumeOverride function overrides the stroke volume +* (mL per rotor revolution) used in the blood flow estimation equation. +* @details \b Inputs: none +* @details \b Outputs: bpStrokeVolumeMlPerRev +* @param message Override message from Dialin which includes the stroke +* volume (mL per rotor revolution) to override with. +* @return TRUE if override successful, FALSE if not +*************************************************************************/ +BOOL testBPStrokeVolumeOverride( MESSAGE_T *message ) +{ + BOOL result = f32Override( message, &bpStrokeVolumeMlPerRev ); + + return result; +} + /**@}*/