Merge "Feed motor safety when StopMotor is called. Fixes artf1687 on FirstForge."

This commit is contained in:
Brad Miller (WPI)
2014-11-28 08:29:27 -08:00
committed by Gerrit Code Review
2 changed files with 2 additions and 0 deletions

View File

@@ -735,4 +735,5 @@ void RobotDrive::StopMotor()
if (m_frontRightMotor != NULL) m_frontRightMotor->Disable();
if (m_rearLeftMotor != NULL) m_rearLeftMotor->Disable();
if (m_rearRightMotor != NULL) m_rearRightMotor->Disable();
m_safetyHelper->Feed();
}

View File

@@ -739,6 +739,7 @@ public class RobotDrive implements MotorSafety {
if (m_rearRightMotor != null) {
m_rearRightMotor.set(0.0);
}
if (m_safetyHelper != null) m_safetyHelper.feed();
}
private void setupMotorSafety() {