mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-26 01:51:41 +00:00
Adds CANTalon to LiveWindow
CANTalon was not being added to the LiveWindow list. Change-Id: I732bb65a899f11bb9b1ef0a7320f0f0cc78233f7
This commit is contained in:
committed by
Peter Johnson
parent
5976baec02
commit
99b2b65148
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user