Tello Drone
Objective - Learning computer science skills and the Python programming language in a team setting to control a Tello EDU minidrone
Research Flights and Codes
Counting
The computer counts starting from the number that was input. At 5-8 and 15-18 it includes the halfway point. The sequence ends at 20 no matter what. If a number bigger than 20 is input, it doesn't work and ends.
Input Flipping
Code
The code the drone is following is on the left, the terminal the user interacts with is on the right. Lines are added so the user can not worry about having to capitalize the first letter.
Drone Flying
The drone takes off and awaits commands from the user. The first input determines how far the drone flies. The second input dictates if the drone flips. After the second input it lands.
Day Calculator
The user is asked to input a number of days in the terminal. It then displays the number of minutes in the input value of days. The user is then asked again to input a number of days. It then displays the number of seconds in the input value of days.
Variable Speed
The user is prompted to input a value for the speed, ranging from 1-5. If zero is entered the code ends. If a number larger than 5 is entered it uses the value for 5. numbers are then printed from 1-20 in intervals based off the input value.
Challenge Flights
For Square
Code
The drone takes off and starts a loop while a number is still in a specified range. The loop consists of moving forward, turning 90 degrees and increasing the number value by one. Once the number value exceeds '4' it ends the loop and the drone lands.
Drone Flying
The drone takes off and flies in a square shape.
Through the Hoop
Code
The drone takes off. It then moves forward through the hoop. Then it goes up and makes a 180 degree turn. It then moves forward back to the starting position and lands.
Flight
The code can be in action above.
For Octagon
Code
The drone takes off and follows the rest of the code eight times. The drone moves forward and turns clockwise 45 degrees. This will eventually form an octagon.
Flight
The drone takes off then it moves forward and turns clockwise 45 degree eight times.
Input Polygon
Code
The drone asks for the user to input a number of sides, it must be an integer. It then takes off and loops moving forward and turning a number of times equal to the input integer. The drone then lands. The angle the drone turns is 360 divided by the number input by the user.
Flight
The drone takes off and flies in a polygon with a number of sides input by the user. It ends up in the starting location and lands.
Landing in Hoops
Code
The user is prompted to enter a number of sides for the polygon the drone will fly. If they enter a non-integer or an integer that wouldn't form a polygon, the code says so and stops. If a proper value is given it'll fly a polygon with that number of sides .
Flight
The drone takes off, flies in a polygon whose number of sides is determined by the user, and lands again.
Rotate
Code
The drone takes off, it then moves forward, turns 90 degrees counter clock-wise, forward again, and then lands.
Flight
The drone takes off from a hula hoop, follows a specified path, and lands in another hula hoop.