0
0
Drone Programmingprogramming~10 mins

Waypoint mission creation in Drone Programming - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to create a new waypoint mission object.

Drone Programming
mission = [1]()
Drag options to blanks, or click blank then click option'
AWaypointMission
BDroneMission
CFlightPlan
DMissionControl
Attempts:
3 left
💡 Hint
Common Mistakes
Using a class name that does not represent waypoint missions.
Forgetting to add parentheses to instantiate the object.
2fill in blank
medium

Complete the code to add a waypoint with latitude 37.7749 and longitude -122.4194.

Drone Programming
mission.add_waypoint([1](37.7749, -122.4194))
Drag options to blanks, or click blank then click option'
ALocation
BWaypoint
CCoordinate
DPoint
Attempts:
3 left
💡 Hint
Common Mistakes
Using a generic coordinate or point class instead of a waypoint.
Mixing up latitude and longitude order.
3fill in blank
hard

Fix the error in setting the mission speed to 5 meters per second.

Drone Programming
mission.set_speed([1])
Drag options to blanks, or click blank then click option'
A'5'
Bspeed = 5
C5
D5 m/s
Attempts:
3 left
💡 Hint
Common Mistakes
Passing speed as a string instead of a number.
Including units in the argument.
4fill in blank
hard

Fill both blanks to set the mission altitude to 100 meters and enable auto-return.

Drone Programming
mission.set_altitude([1])
mission.[2] = True
Drag options to blanks, or click blank then click option'
A100
Bauto_return
Creturn_home
Daltitude
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong property name for auto-return.
Passing altitude as a string.
5fill in blank
hard

Fill all three blanks to create a mission with waypoints, set speed, and start the mission.

Drone Programming
mission = [1]()
mission.add_waypoint([2](34.0522, -118.2437))
mission.set_speed([3])
mission.start()
Drag options to blanks, or click blank then click option'
AWaypointMission
BWaypoint
C10
DFlightPlan
Attempts:
3 left
💡 Hint
Common Mistakes
Using the wrong class for the mission or waypoint.
Passing speed as a string or including units.