-
Notifications
You must be signed in to change notification settings - Fork 0
Home
akubiczek edited this page Oct 27, 2019
·
5 revisions
- Keeping a straight line while driving alongside parked cars
- Finding an empty parking slot with enough space to park
- Parking a vehicle
What happens when immediately after motor.on_for_rotations(100, 1, True, False)
I send another motor.on_for_rotations(100, 1, True, False)
? What's a result?
It looks like it calculate a sum of rotations and execute spin to achieve that number:
motor.on_for_rotations(100, 1, True, False)
motor.on_for_rotations(100, 1, True, False)
spins for 2 rotations.
motor.on_for_rotations(100, 1, True, False)
motor.on_for_rotations(100, -1, True, False)
do nothing since a total rotation is zero.