mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-07-01 02:41:48 +00:00
Add method to get Device ID to Can Jaguar (fixes artf3613)
Change-Id: I7b0cb555a56ee97cf90ea32a3080b7c14bb5ca56
This commit is contained in:
@@ -2036,6 +2036,11 @@ void CANJaguar::GetDescription(char *desc)
|
||||
sprintf(desc, "CANJaguar ID %d", m_deviceNumber);
|
||||
}
|
||||
|
||||
uint8_t CANJaguar::GetDeviceID()
|
||||
{
|
||||
return m_deviceNumber;
|
||||
}
|
||||
|
||||
/**
|
||||
* Common interface for stopping the motor
|
||||
* Part of the MotorSafety interface
|
||||
|
||||
Reference in New Issue
Block a user