Open
Description
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)`
Metadata
Metadata
Assignees
Labels
No labels