0
0
Drone Programmingprogramming~10 mins

Surveying and mapping with photogrammetry 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's camera for photogrammetry.

Drone Programming
drone.camera.[1]()
Drag options to blanks, or click blank then click option'
Aopen
Bactivate
Cenable
Dstart
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'activate' or 'enable' which may not be valid methods.
Using 'open' which is usually for files, not cameras.
2fill in blank
medium

Complete the code to set the drone's flight altitude for mapping.

Drone Programming
drone.flight.set_altitude([1])
Drag options to blanks, or click blank then click option'
A100
B50
Cheight
Daltitude
Attempts:
3 left
💡 Hint
Common Mistakes
Using variable names instead of numeric values.
Choosing too low or invalid altitude values.
3fill in blank
hard

Fix the error in the code to capture images at set intervals.

Drone Programming
drone.camera.capture(interval=[1])
Drag options to blanks, or click blank then click option'
A'5s'
B5
Cfive
D5 seconds
Attempts:
3 left
💡 Hint
Common Mistakes
Using strings like '5s' or '5 seconds' which cause errors.
Using words like 'five' which are invalid.
4fill in blank
hard

Fill both blanks to create a dictionary of image filenames and their GPS coordinates.

Drone Programming
image_data = [1]((filename, drone.camera.[2](filename)) for filename in image_list)
Drag options to blanks, or click blank then click option'
Adict
Bget_gps
Ccapture
Dlist
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'list' instead of 'dict' for the dictionary creation.
Using 'capture' instead of 'get_gps' for GPS data.
5fill in blank
hard

Fill all three blanks to filter images taken above a certain altitude and create a mapping dictionary.

Drone Programming
mapping = [1]: drone.camera.get_gps([2]) for [2] in images if drone.flight.altitude [3] 50}}
Drag options to blanks, or click blank then click option'
Aimg
Bimage
C>
D<
Attempts:
3 left
💡 Hint
Common Mistakes
Using different variable names in the dictionary and loop.
Using '<' instead of '>' for altitude comparison.