My students are using the PyParrot library to control drones. However, we need a fail safe if they make an error (i.e. coding a drone in to a wall/elevate to the ceiling etc).
Previously I had used KeyboardInterrupt, however, this year we are using Mu Editor. Mu Editor exits immediately on ctrl+c and does not run anything from my exception.
try:
# Drone code
except KeyboardInterrupt:
# Landing Code
How else can I ensure that there's an "emergency stop" with Python?