Getting Started Guide
CLASS 4
40
Drone Coding Activity
Challenge
Think of what you would do if you got two motors. What should you do to activate the left motor when the infra-
red sensor is first pressed? When you press the infrared sensor again, both left and right sensor must be turned on.
When you press the sensor for the third time, both motors should pause their work.
Hint: You need to make the condition of the variables from “on” and “off” to “left”, “both” and “off.”
Also don’t forget to use the “if~ or” statement.