Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions robotcontainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,16 +157,14 @@ def configureButtonBindings(self):

# * toggle arm up and down with x
self.controller.x().onTrue(
InstantCommand(
self.drivetrain.invert, self.drivetrain
).andThen(InstantCommand(self.arm.toggle, self.arm))
InstantCommand(self.drivetrain.invert, self.drivetrain).andThen(
InstantCommand(self.arm.toggle, self.arm)
)
)

self.controller.y().onTrue(
InstantCommand(lambda: self.arm.motor.set(0.3))
).onFalse(
InstantCommand(lambda: self.arm.motor.set(0))
)
).onFalse(InstantCommand(lambda: self.arm.motor.set(0)))

# self.controller.povUp().or_(self.controller.povUpLeft()).or_(
# self.controller.povUpLeft()
Expand Down
2 changes: 1 addition & 1 deletion subsystems/odometry.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

basicConfig(level=DEBUG)


def info(message: str):
if (not DriverStation.isDSAttached()) or DriverStation.isFMSAttached():
# * don't run if there's no driver station/we're in competition
Expand Down Expand Up @@ -61,7 +62,6 @@ def __init__(self, gyro: AHRS, drivetrain: Mecanum, vision: Vision):
self.field.setRobotPose(robot)
dash = Shuffleboard.getTab("LiveWindow")
dash.add("field", self.field)


self.update()
self.vision_timer.start()
Expand Down