Skip to content

Instantly share code, notes, and snippets.

@dosht
Last active April 6, 2019 08:54
Show Gist options
  • Save dosht/b41825f9f7c2872569130ef31341bddc to your computer and use it in GitHub Desktop.
Save dosht/b41825f9f7c2872569130ef31341bddc to your computer and use it in GitHub Desktop.
import sys
import signal
def signal_handler(sig, frame):
print(f"EMERGENCY LANDING BY USER!")
scf.cf.commander.send_setpoint(0, 0, 0, 0)
sys.exit(0)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment