Adds CANTalon to LiveWindow

CANTalon was not being added to the LiveWindow list.

Change-Id: I732bb65a899f11bb9b1ef0a7320f0f0cc78233f7
This commit is contained in:
Thad House
2016-01-02 22:29:33 -08:00
committed by Peter Johnson
parent 5976baec02
commit 99b2b65148
2 changed files with 8 additions and 0 deletions

View File

@@ -5,6 +5,7 @@ import edu.wpi.first.wpilibj.communication.UsageReporting;
import edu.wpi.first.wpilibj.communication.FRCNetworkCommunicationsLibrary.tResourceType;
import edu.wpi.first.wpilibj.tables.ITable;
import edu.wpi.first.wpilibj.tables.ITableListener;
import edu.wpi.first.wpilibj.livewindow.LiveWindow;
public class CANTalon implements MotorSafety, PIDOutput, PIDSource, CANSpeedController {
private MotorSafetyHelper m_safetyHelper;
@@ -316,6 +317,7 @@ public class CANTalon implements MotorSafety, PIDOutput, PIDSource, CANSpeedCont
m_feedbackDevice = FeedbackDevice.QuadEncoder;
setProfile(m_profile);
applyControlMode(TalonControlMode.PercentVbus);
LiveWindow.addActuator("CANTalon", m_deviceNumber, this);
}
/**
* Constructor for the CANTalon device.
@@ -336,6 +338,7 @@ public class CANTalon implements MotorSafety, PIDOutput, PIDSource, CANSpeedCont
m_feedbackDevice = FeedbackDevice.QuadEncoder;
setProfile(m_profile);
applyControlMode(TalonControlMode.PercentVbus);
LiveWindow.addActuator("CANTalon", m_deviceNumber, this);
}
/**
* Constructor for the CANTalon device.
@@ -359,6 +362,7 @@ public class CANTalon implements MotorSafety, PIDOutput, PIDSource, CANSpeedCont
m_feedbackDevice = FeedbackDevice.QuadEncoder;
setProfile(m_profile);
applyControlMode(TalonControlMode.PercentVbus);
LiveWindow.addActuator("CANTalon", m_deviceNumber, this);
}
@Override