commands.intake_commands
Intake position commands.
1"""Intake position commands.""" 2 3import commands2 4 5 6def toggle_intake_deploy(intake_position): 7 """Return a command that deploys if stowed, or stows if deployed.""" 8 def _toggle(): 9 if intake_position.isIntakeDeployed(): 10 intake_position.stowIntake() 11 else: 12 intake_position.deployIntake() 13 14 return commands2.cmd.runOnce(_toggle, intake_position)
def
toggle_intake_deploy(intake_position):
7def toggle_intake_deploy(intake_position): 8 """Return a command that deploys if stowed, or stows if deployed.""" 9 def _toggle(): 10 if intake_position.isIntakeDeployed(): 11 intake_position.stowIntake() 12 else: 13 intake_position.deployIntake() 14 15 return commands2.cmd.runOnce(_toggle, intake_position)
Return a command that deploys if stowed, or stows if deployed.