mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
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:
committed by
Brad Miller (WPI)
parent
2bf3b6bed4
commit
b5695581c3
@@ -144,6 +144,7 @@ public class CANTalon implements MotorSafety, PIDOutput, PIDSource, PIDInterface
|
||||
}
|
||||
|
||||
public void delete() {
|
||||
disable();
|
||||
m_impl.delete();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user