Loading salt/drone/scripts/circle_flightscript.py +x File mode changed from 100644 to 100755. View file salt/drone/scripts/simple_flightscript.py +x File mode changed from 100644 to 100755. View file salt/drone/scripts/uart_flightscript.py +x File mode changed from 100644 to 100755. View file salt/drone/scripts/uart_simple_flightscript.py +x+29 Changes for salt/drone/scripts/uart_simple_flightscript.py: 29 added lines, 0 removed lines. Original line number Diff line number Diff line """ This script shows a simple scripted flight path using the MotionCommander class. Simple example that connects to the crazyflie at `URI` and runs a sequence. Change the URI variable to your Crazyflie configuration. """ import logging import time import cflib.crtp from cflib.crazyflie.syncCrazyflie import SyncCrazyflie from cflib.positioning.motion_commander import MotionCommander URI = 'serial://pi' # Only output errors from the logging framework logging.basicConfig(level=logging.ERROR) if __name__ == '__main__': # Initialize the low-level drivers (don't list the debug drivers) cflib.crtp.init_drivers(enable_debug_driver=False) with SyncCrazyflie(URI) as scf: # We take off when the commander is created with MotionCommander(scf) as mc: print('Taking off!') time.sleep(0.1) # We land when the MotionCommander goes out of scope print('Landing!') Loading
salt/drone/scripts/uart_simple_flightscript.py +x+29 Changes for salt/drone/scripts/uart_simple_flightscript.py: 29 added lines, 0 removed lines. Original line number Diff line number Diff line """ This script shows a simple scripted flight path using the MotionCommander class. Simple example that connects to the crazyflie at `URI` and runs a sequence. Change the URI variable to your Crazyflie configuration. """ import logging import time import cflib.crtp from cflib.crazyflie.syncCrazyflie import SyncCrazyflie from cflib.positioning.motion_commander import MotionCommander URI = 'serial://pi' # Only output errors from the logging framework logging.basicConfig(level=logging.ERROR) if __name__ == '__main__': # Initialize the low-level drivers (don't list the debug drivers) cflib.crtp.init_drivers(enable_debug_driver=False) with SyncCrazyflie(URI) as scf: # We take off when the commander is created with MotionCommander(scf) as mc: print('Taking off!') time.sleep(0.1) # We land when the MotionCommander goes out of scope print('Landing!')