...
 
Commits (2)
# apt-get remove alsa-utils -y
# apt-get purge alsa-utils -y
alsa-utils:
pkg.purged
......@@ -6,6 +6,18 @@ alsa-utils:
bluez:
pkg.purged
# apt-get purge triggerhappy -y
triggerhappy:
pkg.purged
# apt-get purge rsyslog -y
rsyslog:
pkg.purged
# apt-get purge ptpd -y
ptpd:
pkg.purged
# systemctl disable avahi-daemon
avahi-daemon:
service.disabled
......@@ -14,6 +26,7 @@ avahi-daemon:
dphys-swapfile:
service.disabled
# systemctl disable salt-minion
salt-minion:
service.disabled
......
include:
- drone.pkgs
- prrt.python
- drone.crazyflie-lib-setup
- drone.disable-services
......
......@@ -22,7 +22,8 @@ NAMES = {
"usb": "UsbDriver",
}
drivers = { }
drivers = {}
def get_link_driver(uri, link_quality_callback=None, link_error_callback=None):
protocol = uri.split("://")[0]
......@@ -37,6 +38,7 @@ def get_link_driver(uri, link_quality_callback=None, link_error_callback=None):
instance.connect(uri, link_quality_callback, link_error_callback)
return instance
class ForwardBridge(threading.Thread):
def __init__(self, crazyflie_connection, client_connection):
threading.Thread.__init__(self)
......
import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BCM)
GPIO.setup(20, GPIO.OUT)
GPIO.output(20, False)
while True:
GPIO.output(20, True)
GPIO.output(20, False)
#!/usr/bin/env python3
import logging
import time
import sys
import cflib.crtp
from cflib.crazyflie.syncCrazyflie import SyncCrazyflie
from cflib.positioning.motion_commander import MotionCommander
URI = ''
if len(sys.argv) >= 2:
if sys.argv[1] == 'radio':
URI = 'radio://0/80/2M'
elif sys.argv[1] == 'prrt':
ip = sys.argv[2]
URI = 'prrt://' + ip + ':5000'
elif sys.argv[1] == 'serial':
URI = 'serial://pi'
else:
sys.exit('Give a valid argument.')
else:
sys.exit('Give a commandline argument.')
# 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:
time.sleep(5)