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

Commit

Permalink
move auto mode selector to Auto/Mode, add Auto/Angle value
Browse files Browse the repository at this point in the history
  • Loading branch information
dublUayaychtee committed Mar 17, 2024
1 parent f545fe7 commit 741065b
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rio/robotcontainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,8 +279,10 @@ def configureNetworktables(self):

# Use sendable choosers for some settings
self.fieldCentricChooser = wpilib.SendableChooser()
# TODO Make this a boolean
self.fieldCentricChooser.setDefaultOption("Field Centric", True)
self.fieldCentricChooser.addOption("Robot Centric", False)
self.sd.putNumber("Auto/Angle", 0)
wpilib.SmartDashboard.putData("FieldCentric", self.fieldCentricChooser)

def configureAutonomous(self) -> None:
Expand All @@ -302,7 +304,7 @@ def configureAutonomous(self) -> None:
Shoot(self.robotDrive, self.intake, self.shooter),
)

wpilib.SmartDashboard.putData("Autonomous", self.autoChooser)
wpilib.SmartDashboard.putData("Auto/Mode", self.autoChooser)

def getAutonomousCommand(self) -> commands2.Command:
"""Use this to pass the autonomous command to the main {@link Robot} class.
Expand Down

0 comments on commit 741065b

Please sign in to comment.