However, I can't even write the simplest programs without encountering loadsof errors.
For instance this simple script:
Code: Select all
import cflib.crtp
from cflib.crazyflie import Crazyflie
import time
# Initialize the low-level drivers (don't list the debug drivers)
cflib.crtp.init_drivers(enable_debug_driver=False)
# Scan for Crazyflies and use the first one found
print "Scanning interfaces for Crazyflies..."
available = cflib.crtp.scan_interfaces()
print "Crazyflies found:"
for i in available:
print i[0]
if len(available)>0:
cf = Crazyflie()
def _connected(link_uri):
cf.commander.send_setpoint(0, 0, 0, 20000)
time.sleep(0.1)
cf.commander.send_setpoint(0,0,0,0)
cf.close_link()
cf.connected.add_callback(_connected)
cf.open_link(available[0][0])
else:
print "No crazyflies nearby"
and this:WARNING:cflib.crazyflie.toccache:Could not save cache, no writable directory
WARNING:cflib.crazyflie.toccache:Could not save cache, no writable directory
And half the times I run it, also these:No handlers could be found for logger "cflib.crazyflie.toccache"
Exception in thread Thread-104 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
File "/usr/lib/python2.7/threading.py", line 808, in __bootstrap_inner
File "/usr/lib/python2.7/threading.py", line 1080, in run
File "/home/bitcraze/projects/crazyflie-pc-client/lib/cflib/crazyflie/__init__.py", line 295, in <lambda>
File "/home/bitcraze/projects/crazyflie-pc-client/lib/cflib/crazyflie/__init__.py", line 253, in _no_answer_do_retry
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'debug'