From 13386ce074c40bf0087ffebbde23e76701607b9a Mon Sep 17 00:00:00 2001 From: ashwink0 Date: Sat, 26 Feb 2022 15:29:29 -0800 Subject: [PATCH] Add CAN bus configuration to Falcons --- build.gradle | 2 +- src/harkerrobolib/wrappers/HSFalcon.java | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index 6908655..0a40abc 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ import edu.wpi.first.gradlerio.deploy.roborio.RoboRIO plugins { id "java" id "maven-publish" - id "edu.wpi.first.GradleRIO" version "2022.1.1" + id "edu.wpi.first.GradleRIO" version "2022.3.1" } sourceCompatibility = JavaVersion.VERSION_11 diff --git a/src/harkerrobolib/wrappers/HSFalcon.java b/src/harkerrobolib/wrappers/HSFalcon.java index 6668021..b3010d1 100644 --- a/src/harkerrobolib/wrappers/HSFalcon.java +++ b/src/harkerrobolib/wrappers/HSFalcon.java @@ -23,6 +23,16 @@ public HSFalcon(final int deviceNumber) { super(deviceNumber); } + /** + * Constructs a TalonSRXWrapper with the default timeout + * {{@link Constants#DEFAULT_TIMEOUT}. + * + * @param deviceNumber The CAN device ID of the Talon. + */ + public HSFalcon(final int deviceNumber, String busId) { + super(deviceNumber, busId); + } + @Override public ErrorCode configSelectedFeedbackSensor(RemoteFeedbackDevice feedbackDevice, int pidIdx) { return super.configSelectedFeedbackSensor(feedbackDevice, pidIdx, Constants.DEFAULT_TIMEOUT);