60 likes | 275 Views
4 |Multitasking. Multitasking. Created by H. Robinson & A. Gostelow. 4 |Multitasking. Objectives To understand how a multitasking program is made To build a multitasking program so that the robot can do more than one thing at a time. Created by H. Robinson & A. Gostelow.
E N D
4 |Multitasking Multitasking Created by H. Robinson & A. Gostelow
4 |Multitasking • Objectives • To understand how a multitasking program is made • To build a multitasking program so that the robot can do more than one thing at a time Created by H. Robinson & A. Gostelow
4 |Multitasking This icon allows us to split the program into two tasks, our robot can then do two things at once e.g., move while the lights are flashing on and off. Created by H. Robinson & A. Gostelow
4 |Multitasking This is a simple multitasking program where the robot goes forward until the touch sensor stops it, meanwhile the lamp is on for 6 seconds. In this way we can program the robot to do two things at once. Created by H. Robinson & A. Gostelow
4 |Multitasking Multitasking can allow us to build many more programs. Programs which need the task split into two so that the robot will do two things at once e.g. playing music while moving; Created by H. Robinson & A. Gostelow
4 |Multitasking • Key Points • Multitasking allows the task to be split into two so that two things can be done at the same time. • Remember to use a green traffic light at the beginning but you will need two red traffic lights, one for each task. Created by H. Robinson & A. Gostelow