power_pressed()
#
DescriptionA function that determines if the controller's power button has been pressed. Since pressing the power button also switches the drone to flight mode, this function only detects alternate button presses. In other words, the function can only detect a power button press when in LINK state.
#
Syntaxpower_pressed()
#
ParametersNone
#
ReturnsTrue if the power button is pressed or held. Otherwise the function will return false.