artf4170: Make CANTalon disable on destruction.

This both disables the CANTalon in the CANTalon class (which
should be redundant) and stops sending control signals in the
CanTalonSRX hal class.

Change-Id: I63d6a9d016c221e385d5d5a3679d854882ac6650
This commit is contained in:
James Kuszmaul
2015-07-24 09:11:15 -04:00
committed by Brad Miller (WPI)
parent 2bf3b6bed4
commit b5695581c3
6 changed files with 51 additions and 2 deletions

View File

@@ -144,6 +144,7 @@ public class CANTalon implements MotorSafety, PIDOutput, PIDSource, PIDInterface
}
public void delete() {
disable();
m_impl.delete();
}