What does blocking call mean?
A function that does not return until its job is finished, such as forward with a distance. The program waits; nothing else in it runs meanwhile.
In a lesson
distance=is a blocking call: nothing after it runs until the move is done. Compare the order of the printed lines:
Learn it
- Taught in 1.2 Driving by distance Driving, Robot club
Used in
- 1.3 Turning and heading
- 5.1 The loop
- 5.3 Timers
- A4.8 Project: plan the route
- A12.7 Internet security
- U1.1 Sense, decide, act
- U3.2 Write your own odometry