Complete the code to set the drone's failsafe action to Return To Launch (RTL).
drone.setFailsafeAction([1])The correct failsafe action to make the drone return to its launch point is FailsafeAction.RTL.
Complete the code to make the drone land immediately as a failsafe action.
drone.setFailsafeAction([1])To make the drone land immediately on failsafe, use FailsafeAction.LAND.
Fix the error in the code to set the failsafe action to Smart Return To Launch (SmartRTL).
drone.setFailsafeAction([1])The correct constant for Smart Return To Launch is FailsafeAction.SMART_RTL.
Fill both blanks to check if the failsafe action is set to RTL or Land.
if drone.getFailsafeAction() == [1] or drone.getFailsafeAction() == [2]: drone.alertPilot()
This code checks if the failsafe action is either RTL or LAND, then alerts the pilot.
Fill all three blanks to create a dictionary mapping failsafe actions to their descriptions.
failsafe_descriptions = {
[1]: "Return To Launch",
[2]: "Land Immediately",
[3]: "Smart Return To Launch"
}This dictionary links each failsafe action constant to a clear description string.