[copybara] Import robotpy examples (#8608)

GitOrigin-RevId: 9ba4bc3040fa7e772f5a594039e78fc6c43d114e
This commit is contained in:
PJ Reiniger
2026-02-20 18:30:35 -05:00
committed by GitHub
parent 1806cd2d78
commit 8f9fc4d1b6
136 changed files with 8989 additions and 3 deletions

View File

@@ -44,7 +44,7 @@ class CommandNiDsXboxController(CommandGenericHID):
"""
if loop is None:
loop = CommandScheduler.getInstance().getDefaultButtonLoop()
return Trigger(loop, lambda: self._hid.getLeftBumper())
return Trigger(loop, lambda: self._hid.getLeftBumperButton())
def rightBumper(self, loop: Optional[EventLoop] = None) -> Trigger:
"""
@@ -58,7 +58,7 @@ class CommandNiDsXboxController(CommandGenericHID):
"""
if loop is None:
loop = CommandScheduler.getInstance().getDefaultButtonLoop()
return Trigger(loop, lambda: self._hid.getRightBumper())
return Trigger(loop, lambda: self._hid.getRightBumperButton())
def leftStick(self, loop: Optional[EventLoop] = None) -> Trigger:
"""