-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Branch number two: Electric boogaloo
- Loading branch information
Showing
25 changed files
with
1,108 additions
and
88 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package frc.lib.advantagekit; | ||
|
||
public interface LoggedIO<T> { | ||
public void updateInputs(T inputs); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package frc.lib.utils; | ||
|
||
import com.revrobotics.CANSparkMax; | ||
import com.revrobotics.CANSparkMaxLowLevel.PeriodicFrame; | ||
|
||
public class CanSparkMaxSetup { | ||
public void setupSparkMaxSlow(CANSparkMax sparkMax) { | ||
// sparkMax.setPeriodicFramePeriod(PeriodicFrame.kStatus1, 500); | ||
sparkMax.setPeriodicFramePeriod(PeriodicFrame.kStatus2, 20); | ||
sparkMax.setPeriodicFramePeriod(PeriodicFrame.kStatus3, 500); | ||
// sparkMax.setPeriodicFramePeriod(PeriodicFrame.kStatus4, 500); | ||
sparkMax.setPeriodicFramePeriod(PeriodicFrame.kStatus5, 500); | ||
sparkMax.setPeriodicFramePeriod(PeriodicFrame.kStatus6, 500); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package frc.robot.oi; | ||
|
||
public interface DriverControls { | ||
|
||
} |
13 changes: 13 additions & 0 deletions
13
src/main/java/frc/robot/oi/DriverControlsDualFlightStick.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package frc.robot.oi; | ||
|
||
import edu.wpi.first.wpilibj2.command.button.CommandJoystick; | ||
|
||
public class DriverControlsDualFlightStick implements DriverControls { | ||
public CommandJoystick m_leftJoystick; | ||
public CommandJoystick m_rightJoystick; | ||
|
||
public DriverControlsDualFlightStick(int leftJoystick, int rightJoystick) { | ||
m_leftJoystick = new CommandJoystick(leftJoystick); | ||
m_rightJoystick = new CommandJoystick(rightJoystick); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package frc.robot.oi; | ||
|
||
public interface OperatorControls { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
package frc.robot.oi; | ||
|
||
import edu.wpi.first.wpilibj2.command.button.CommandXboxController; | ||
import frc.robot.util.EricNubControls; | ||
|
||
public class OperatorControlsXbox implements OperatorControls { | ||
public CommandXboxController m_controller; | ||
public EricNubControls m_controls; | ||
|
||
public OperatorControlsXbox(int xboxControllerPort) { | ||
m_controller = new CommandXboxController(xboxControllerPort); | ||
m_controls = new EricNubControls(); | ||
} | ||
|
||
} |
Oops, something went wrong.