0
0
Drone Programmingprogramming~10 mins

Inspection of infrastructure 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 inspection.

Drone Programming
drone.[1]()
Drag options to blanks, or click blank then click option'
Aland
Btakeoff
Chover
Dshutdown
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'land' instead of 'takeoff' will stop the drone.
2fill in blank
medium

Complete the code to move the drone forward by 10 meters.

Drone Programming
drone.move([1]=10)
Drag options to blanks, or click blank then click option'
Aup
Bdown
Cbackward
Dforward
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'up' moves the drone vertically, not forward.
3fill in blank
hard

Fix the error in the code to capture an image during inspection.

Drone Programming
image = drone.[1]()
Drag options to blanks, or click blank then click option'
Acapture_image
Brecord_video
Cstart_stream
Dstop_recording
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'record_video' captures video, not a photo.
4fill in blank
hard

Fill both blanks to create a dictionary of inspection points with their status.

Drone Programming
inspection_points = {point: drone.[1](point) for point in points if drone.[2](point)}
Drag options to blanks, or click blank then click option'
Acheck_status
Bcapture_image
Cis_accessible
Drecord_video
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'capture_image' in the condition will cause errors.
5fill in blank
hard

Fill all three blanks to filter points and store their images during inspection.

Drone Programming
images = {point: drone.[1](point) for point in points if drone.[2](point) and drone.[3](point)}
Drag options to blanks, or click blank then click option'
Acapture_image
Bis_accessible
Ccheck_status
Drecord_video
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'record_video' instead of 'capture_image' stores videos, not images.