Module 3: Drone Coding Cadets
Welcome, pilots and coders! Up to now you have flown by hand. Today you become a programmer โ using block coding to make your Apex drone fly a pattern on its own. Start with a simple square, then level up with loops and your own designs.
Open the block coding tool at echo.pitsco.com and program your drone to fly these shapes, in order:
- Square pattern
- L-shape pattern
- Square using loops in your code
- Stretch: invent a harder one โ how about a zigzag?
If your drone doesn't spin exactly 90 degrees, adjust the time or speed on the spin block until the corner is clean.
- Fully charged Apex drone
- Laptop or tablet with echo.pitsco.com open
- An open flying area
- A curious mind and a willingness to experiment
Write a program that commands your drone to take off, fly forward, and return โ three times. Each trip, the drone must fly 12 inches farther than the last. Think about how a loop with a changing value could do this for you.
Now you are the architect. Using your drone and the Echo programming environment, design and code a unique flight path that achieves a specific goal you choose. Think creatively and apply everything you have learned about drone commands to solve a real-world-inspired problem. Set the goal, plan the path, then make the code fly it.
Part 4 โ Share! Take a picture of your code or a video of your drone flying its programmed path, and post it to The Wall below. Put your name or team name in the Subject line.
Loops, functions, and testing until the corners are clean โ that is real programming. Software developers write the code behind drones, video games, and apps. Robotics and automation engineers program machines to run flight paths and factory lines. Computer-science and engineering programs at community colleges and at UC Merced turn the skills you built today into careers, and you do not need to arrive already knowing how to code.
You programmed a drone to fly shapes, grow a pattern with a loop, and design a path of your own. That is engineering. Next up: Module 4 โ Illuminated Landings.
