What is Python?
Python is a high-level, general-purpose programming language. Its design philosophy emphasizes code readability with the use of significant indentation.
Combination.py Flight
After learning basic codes for the drone, I combined four of them. The first going up, then a 360 spine. next, I made the drone go forward, and for the 4th system, I made it go down. I added an extra 180 spine at the end to face us when it landed.
This is the coding that I wrote for the project. we learned how to code files so that we can save our work in them while also writing in that file at the same. On the left, it shows the code written for the drone to follow, including the sleep time necessary for the drone to think. The left also includes the 4 tasks that were required for the project. On the right it shows the code running, this is how we know the code is working properly before the drone even takes off.
Stay In Your Lane
using the height of the hoola hoop was really helpful to figure out what height to put the drone when coding.
Limbo Limbo
Limbo Limbo was very matriculate with finding the perfect height to put the drone.
Octagon Show
With coding to make the drone go in an octagon shape, i had to find the angle, which was 45 degrees. and from there i had to code it to move 8 times.
Regular Polygon
Using strings and inputs allowed the code to divide the number put in by the user, and tell the drone how many times to turn and move forward.
Circle in Air
The drone had to create 3 circles, the first one a horizontal circle, the second vertical, and the third diagonal.
Vertical Regular Polygon
the vertical polygon used up, down, forward, and back directions to create a vertical polygon.