Index: firmware/App/Controllers/BloodFlow.c =================================================================== diff -u -r30f049651877229042e3f8700c8596e5b9a1e0f4 -ra2bc96881a5fc3d8f779246b2abebf15a8de9384 --- firmware/App/Controllers/BloodFlow.c (.../BloodFlow.c) (revision 30f049651877229042e3f8700c8596e5b9a1e0f4) +++ firmware/App/Controllers/BloodFlow.c (.../BloodFlow.c) (revision a2bc96881a5fc3d8f779246b2abebf15a8de9384) @@ -267,7 +267,7 @@ targetBloodFlowRate = ( dir == MOTOR_DIR_FORWARD ? (S32)flowRate : (S32)flowRate * -1 ); bloodPumpDirection = dir; bloodPumpControlMode = mode; - // Set PWM duty cycle target to an estimated initial target to ramp to based on target flow rate - then we'll control to flow when ramp completed + // Set PWM duty cycle target to an estimated initial target to ramp to based on target flow rate - then we will control to flow when ramp completed bloodPumpPWMDutyCyclePct = BP_PWM_FROM_ML_PER_MIN((F32)flowRate); // ~ 8% per 100 mL/min with a 10% zero offset added in (e.g. 100 mL/min = 8+10 = 18%) switch ( bloodPumpState ) @@ -347,7 +347,7 @@ bloodPumpRotorSpeedRPM.data = ( 1.0 / (F32)deltaTime ) * (F32)MS_PER_SECOND * (F32)SEC_PER_MIN; bpRotorRevStartTime = rotTime; - // If we're supposed to stop pump at home position, stop pump now. + // If we are supposed to stop pump at home position, stop pump now. if ( TRUE == bpStopAtHomePosition ) { signalBloodPumpHardStop(); @@ -438,7 +438,7 @@ // Calculate blood pump motor speed/direction from hall sensor count updateBloodPumpSpeedAndDirectionFromHallSensors(); - // Don't start enforcing checks until out of init/POST mode + // Do not start enforcing checks until out of init/POST mode if ( opMode != MODE_INIT ) { // Check pump direction @@ -503,7 +503,7 @@ { BLOOD_PUMP_STATE_T result = BLOOD_PUMP_OFF_STATE; - // If we've been given a flow rate, setup ramp up and transition to ramp up state + // If we have been given a flow rate, setup ramp up and transition to ramp up state if ( targetBloodFlowRate != 0 ) { // Set initial PWM duty cycle @@ -575,7 +575,7 @@ { BLOOD_PUMP_STATE_T result = BLOOD_PUMP_RAMPING_DOWN_STATE; - // Have we essentially reached zero speed + // Have we essentially reached zero speed? if ( bloodPumpPWMDutyCyclePctSet < (MAX_BLOOD_PUMP_PWM_STEP_DN_CHANGE + BP_PWM_ZERO_OFFSET) ) { stopBloodPump(); @@ -1143,7 +1143,7 @@ *************************************************************************/ static void checkBloodPumpFlowAgainstSpeed( void ) { - // Check only performed while in treatment mode and while we're in control to target state + // Check only performed while in treatment mode and while we are in control to target state if ( ( MODE_TREA == getCurrentOperationMode() ) && ( BLOOD_PUMP_CONTROL_TO_TARGET_STATE == bloodPumpState ) ) { F32 flow = getMeasuredBloodFlowRate();