Skip to content
This repository has been archived by the owner on Jan 14, 2024. It is now read-only.

Commit

Permalink
Add CAN bus configuration to Falcons
Browse files Browse the repository at this point in the history
  • Loading branch information
ashwink0 committed Feb 26, 2022
1 parent 9fefdbe commit 13386ce
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 10 additions & 0 deletions src/harkerrobolib/wrappers/HSFalcon.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 13386ce

Please sign in to comment.