0
0
Drone Programmingprogramming~10 mins

Mission upload and execution 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 upload the mission to the drone.

Drone Programming
drone.upload_mission([1])
Drag options to blanks, or click blank then click option'
Amission_data
Bstart_mission
Cexecute
Dfly
Attempts:
3 left
💡 Hint
Common Mistakes
Passing a command like 'start_mission' instead of mission data.
Using a function name instead of mission data.
2fill in blank
medium

Complete the code to start the mission execution.

Drone Programming
drone.[1]()
Drag options to blanks, or click blank then click option'
Astop_mission
Bupload_mission
Cstart_mission
Dpause_mission
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'upload_mission' instead of 'start_mission'.
Using 'stop_mission' or 'pause_mission' which do not start the mission.
3fill in blank
hard

Fix the error in the code to check if the mission is complete.

Drone Programming
if drone.[1]():
    print('Mission completed')
Drag options to blanks, or click blank then click option'
Amission_start
Bmission_status
Cis_mission_running
Dis_mission_complete
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'is_mission_running' which checks if mission is ongoing.
Using 'mission_status' which may not return a boolean.
4fill in blank
hard

Fill both blanks to create a dictionary of waypoint coordinates and their altitudes for the mission.

Drone Programming
waypoints = {point[1]: point[2] for point in mission_points}
Drag options to blanks, or click blank then click option'
A['coordinates']
B['location']
C['altitude']
D['height']
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'location' instead of 'coordinates' for keys.
Using 'height' instead of 'altitude' for values.
5fill in blank
hard

Fill all three blanks to filter mission points with altitude above 100 and create a dictionary with their names and altitudes.

Drone Programming
high_points = {point[1]: point[2] for point in mission_points if point[3] > 100}
Drag options to blanks, or click blank then click option'
A['name']
B['altitude']
D['coordinates']
Attempts:
3 left
💡 Hint
Common Mistakes
Using coordinates as keys instead of names.
Filtering by name or coordinates instead of altitude.