Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete the code to start the drone inspection.
Drone Programming
drone.[1]() Drag options to blanks, or click blank then click option'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'land' instead of 'takeoff' will stop the drone.
✗ Incorrect
The takeoff command makes the drone start flying for inspection.
2fill in blank
mediumComplete 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'up' moves the drone vertically, not forward.
✗ Incorrect
The forward parameter moves the drone ahead by the specified meters.
3fill in blank
hardFix 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'record_video' captures video, not a photo.
✗ Incorrect
The capture_image method takes a photo from the drone's camera.
4fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'capture_image' in the condition will cause errors.
✗ Incorrect
check_status gets the status of each point, and is_accessible checks if the drone can reach it.
5fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'record_video' instead of 'capture_image' stores videos, not images.
✗ Incorrect
We capture images of points that are accessible and have a good status.