Index: firmware/App/Controllers/BloodFlow.c =================================================================== diff -u -rae4a44c74291d5891ef2a7f45320158e73fecbbc -r927c47388ab6bd716b857f76e2026c116dd52e69 --- firmware/App/Controllers/BloodFlow.c (.../BloodFlow.c) (revision ae4a44c74291d5891ef2a7f45320158e73fecbbc) +++ firmware/App/Controllers/BloodFlow.c (.../BloodFlow.c) (revision 927c47388ab6bd716b857f76e2026c116dd52e69) @@ -383,6 +383,7 @@ isBloodPumpOn = FALSE; bpControlTimerCounter = 0; setPeristalticPumpSetSpeed( bloodPumpSetSpeedRPM ); + setPeristalticPumpHardStop(); resetPIController( PI_CONTROLLER_ID_BLOOD_FLOW, 0.0F, 0.0F ); } @@ -1319,6 +1320,27 @@ /*********************************************************************//** * @brief + * The testHardStopBloodPump function hard stops the blood pump. + * @details \b Inputs: none + * @details \b Outputs: none + * @param message BP home command message from Dialin. + * @return TRUE if command successful, FALSE if not + *************************************************************************/ +BOOL testHardStopBloodPump( MESSAGE_T *message ) +{ + BOOL result = FALSE; + + if ( 0 == message->hdr.payloadLen ) + { + result = TRUE; + signalBloodPumpHardStop(); + } + + return result; +} + +/*********************************************************************//** + * @brief * The testBPFlowAlphaYInterceptOverride function overrides the Alpha Y * intercept of the blood flow estimation equation. * @details \b Inputs: none