0
0
Drone Programmingprogramming~10 mins

Simulating missions before flight 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 start the drone simulation.

Drone Programming
drone.[1]()
Drag options to blanks, or click blank then click option'
Abegin
Bsimulate
Claunch
Dstart_simulation
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'launch' which starts the real drone flight, not the simulation.
Using 'simulate' which is not a defined method.
Using 'begin' which is too generic and not a method here.
2fill in blank
medium

Complete the code to add a waypoint to the simulation mission.

Drone Programming
simulation.add_waypoint([1])
Drag options to blanks, or click blank then click option'
APoint(10, 20)
BCoordinate(10, 20)
CWaypoint(10, 20, 5)
DLocation(10, 20, 5)
Attempts:
3 left
💡 Hint
Common Mistakes
Using objects without altitude like Point or Coordinate.
Using Location which is not defined in this context.
3fill in blank
hard

Fix the error in the code to run the simulation mission.

Drone Programming
simulation.[1]()
Drag options to blanks, or click blank then click option'
Arun
Bexecute
Cstart
Dlaunch
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'launch' which starts the real drone flight.
Using 'start' which is ambiguous here.
Using 'execute' which is not a defined method.
4fill in blank
hard

Fill both blanks to check if the simulation mission is complete and then stop it.

Drone Programming
if simulation.[1]():
    simulation.[2]()
Drag options to blanks, or click blank then click option'
Ais_complete
Bstop
Cpause
Dis_running
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'pause' instead of 'stop' which only temporarily halts.
Using 'is_running' which checks if simulation is active, not complete.
5fill in blank
hard

Fill all three blanks to create a dictionary of waypoints with their altitudes, filtering only those above 10 meters.

Drone Programming
altitudes = {wp.[1]: wp.[2] for wp in mission.waypoints if wp.[3] > 10}
Drag options to blanks, or click blank then click option'
Alatitude
Baltitude
Dlongitude
Attempts:
3 left
💡 Hint
Common Mistakes
Using latitude as key but filtering by altitude.
Mixing up altitude and latitude in the filter condition.