Formatted with ruff

This commit is contained in:
Mike Silva 2026-01-24 16:14:10 -05:00
parent 48855bf656
commit f6a8adee4f
4 changed files with 10 additions and 9 deletions

View File

@ -2,19 +2,20 @@ import components
import constants
import genie
class MyRobot(genie.GenieRobot):
CONTROLLER: components.XboxController
def createObjects(self):
'''Create motors and stuff here'''
"""Create motors and stuff here"""
# Controller stuff here
self.CONTROLLER_CORRECT_FOR_DEADBAND = constants.CONTROLLER_CORRECT_FOR_DEADBAND
self.CONTROLLER_DEADBAND = constants.CONTROLLER_DEADBAND
self.CONTROLLER_PORT = constants.CONTROLLER_PORT
def teleopInit(self):
'''Called when teleop starts; optional'''
"""Called when teleop starts; optional"""
def teleopPeriodic(self):
'''Called periodically during teleop'''
"""Called periodically during teleop"""
self.CONTROLLER.capture_button_presses()