Skip to content

Event skipping to end #2

Description

@Rebecca-iRobot

When a bump event is triggered, the robot drives backward about .5 cm and then skips to set_speeds.

`await robot.set_speeds(10, 10)

@robot.on_bump()
async def any_bumps(bumper: Bumper):
print(f"any_bumps: {bumper}")
await robot.drive_distance(-10)
await robot.turn_left(180)
await robot.set_speeds(10, 10)`

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions