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

Commit

Permalink
changing controller type to stick
Browse files Browse the repository at this point in the history
  • Loading branch information
kredcool committed Jan 15, 2024
1 parent 651c840 commit 738048d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 17 deletions.
3 changes: 0 additions & 3 deletions rio/constants/simple_controller.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion rio/robot.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
class UnnamedToaster(wpilib.TimedRobot):
def robotInit(self) -> None:
"""Robot initialization function"""
self.controller = wpilib.XboxController(0)
self.controller = wpilib.Joystick(0)
self.swerve = DriveSubsystem()

# Slew rate limiters to make joystick inputs more gentle; 1/3 sec from 0 to 1.
Expand Down
14 changes: 1 addition & 13 deletions rio/simgui-ds.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,9 @@
{
"decKey": 68,
"incKey": 69
},
{
"decKey": 70,
"incKey": 82
},
{
"decKey": 71,
"incKey": 84
},
{
"decKey": 72,
"incKey": 89
}
],
"axisCount": 5,
"axisCount": 3,
"buttonCount": 10,
"buttonKeys": [
90,
Expand Down

0 comments on commit 738048d

Please sign in to comment.