mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-02 02:51:42 +00:00
Merge "Feed motor safety when StopMotor is called. Fixes artf1687 on FirstForge."
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user