Presentation is loading. Please wait.

Presentation is loading. Please wait.

Programming - Timers Intro to Robotics.

Similar presentations


Presentation on theme: "Programming - Timers Intro to Robotics."— Presentation transcript:

1 Programming - Timers Intro to Robotics

2 Time and Timers Let’s say the rules for the game state that you only have 2 minutes from the starting signal to control your robot, and then your robot must STOP responding to commands or face disqualification. Is your robot tournament ready?

3 wait1Msec ( ) You might think you understand how to use the wait1Msec(time) command, but the question is where do you put it in the code?

4

5

6 ClearTimer ( )

7

8

9

10

11

12

13 Drive and test the robot. What happens after 5 seconds?
Download and test the change. Does the robot stop after 2 minutes?

14

15


Download ppt "Programming - Timers Intro to Robotics."

Similar presentations


Ads by Google