This was the first thing we programmed with python on the drone. This made the drone lift off of the ground and land back on the ground.
The pictures below show the program for a hula-hoop obstacle course. The drone had to take off, fly forward and around a broomstick, then turn and land on a platform. Then, it would take off again, turn and fly back around the broom stick and back to the original platform where it would land.
In this program, the drone took off, flew forward to another platform, and landed.
This caused the program to ask the user their name and age then produce a sentence that stated that person's name and their age.
This caused the program to direct the user to input a certain number of days. It would then tell the user how many seconds are in that many days.
This allowed the drone to turn and fly at 45 degree angles to create an octagon.
This caused the code to take the number that the user input and divide 360 by that number to get the angle number needed to make the correctly angled turns to make a polygon with that number of sides.
This code allowed the drone to take off, go forward and through the hoop, turn 90 degrees, go forward, and land in the smaller hula-hoop.
In this code, the drone makes a total of three circles, one horizontal, one vertical, and one diagonal. To do this, we had to create two half circles for each total circle.
This caused the drone to take off, go forward and down, go forward again under the broom, go up and over the storage unit, forward again, then down into the hula-hoop landing area.