Skip to content
akubiczek edited this page Oct 27, 2019 · 5 revisions

Subgoals

  1. Keeping a straight line while driving alongside parked cars
  2. Finding an empty parking slot with enough space to park
  3. Parking a vehicle

Insights

Does EV3 motors enqueue commands?

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.

Clone this wiki locally