mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-20 00:51:42 +00:00
Makes the CANJaguar error status messages more useful (#165)
The previous version would just return the class name for the DigitalOutput port. Now it actually gets the dio port value for better readability.
This commit is contained in:
committed by
Peter Johnson
parent
edf5ecd4a0
commit
ea1a1e6bc3
@@ -161,12 +161,12 @@ public abstract class CANMotorEncoderFixture extends MotorEncoderFixture<CANJagu
|
||||
status.append("\t" + "CANJaguar Motor = null" + "\n");
|
||||
}
|
||||
if (m_forwardLimit != null) {
|
||||
status.append("\tForward Limit Output = " + m_forwardLimit + "\n");
|
||||
status.append("\tForward Limit Output = " + m_forwardLimit.get() + "\n");
|
||||
} else {
|
||||
status.append("\tForward Limit Output = null" + "\n");
|
||||
}
|
||||
if (m_reverseLimit != null) {
|
||||
status.append("\tReverse Limit Output = " + m_reverseLimit + "\n");
|
||||
status.append("\tReverse Limit Output = " + m_reverseLimit.get() + "\n");
|
||||
} else {
|
||||
status.append("\tReverse Limit Output = null" + "\n");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user