Skip to content

Commit

Permalink
Update launch file
Browse files Browse the repository at this point in the history
  • Loading branch information
InvincibleRMC committed May 1, 2024
1 parent 349b8a7 commit cff3f61
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/pi/manipulators/launch/manip_launch.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def generate_launch_description() -> LaunchDescription:
executable="manipulators",
parameters=[
{"left": 0},
{"right": 1},
{"right": 2},
# {"light": 2},
],
remappings=[("/pi/manipulator_control", "/tether/manipulator_control")],
Expand Down
21 changes: 13 additions & 8 deletions src/pi/manipulators/manipulators/manipulator_dry_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,19 @@ def main() -> None:
gpio.set_direction(0, bits=ALL_BITS)
print(gpio.format_config())

# Turn on the LEDs
gpio.set_bits(bits=ALL_BITS)
print(gpio.format_config())
time.sleep(5)

# # Turn off the LEDs
gpio.unset_bits(bits=ALL_BITS)
print(gpio.format_config())
try:
while True:
# Turn on the LEDs
gpio.set_bits(bits=ALL_BITS)
print(gpio.format_config())
time.sleep(2)

# # Turn off the LEDs
gpio.unset_bits(bits=ALL_BITS)
print(gpio.format_config())
time.sleep(2)
except KeyboardInterrupt:
gpio.unset_bits(bits=ALL_BITS)


if __name__ == "__main__":
Expand Down

0 comments on commit cff3f61

Please sign in to comment.