Re: [Beginner] Help with Python Client
Posted: Fri Mar 23, 2018 4:43 am
Good idea with the native client installation. After doing that and repeating the firmware flash, the LEDs started to behave properly and I managed to connect to the Crazyflie and receive telemetry from the gyroscope, battery, etc. The VM seems to be much more unpredictable, sometimes connecting to the drone and other times not, but it's much better than where I was at before so that is okay with me. However, even though I can connect to the Crazyflie through the client, I am still unable to connect to it through the Python IDLE.
After successfully establishing a connection to the Crazyflie within the client (so that I was receiving real-time flight data), I proceeded to attempt to run a Python code. The code I chose was 'flowsequenceSync.py,' which is a pre-programmed flight path that seemed like a good starting point for testing. However, running the script produced an error output which I have attached in the two screenshots below (it is quite long, and I'm sorry for posting so much information especially since much of it is duplicated, but I figured I might as well show the entire error output). The problem seems to revolve around the radio or USB drivers, but I'm not sure how. The most common piece throughout the output is this "Couldn't load link driver: [Errno 16] Resource busy".
From browsing other forum posts, it seems like one potential solution may be to retry the whole process using the libusbK driver rather than the libusb-win32 that I am currently using. Could this be helpful? I am hesitant to alter my driver as it took a lot of time to get to the point where I am at now, and I don't want to lose progress by taking unnecessary steps.
After successfully establishing a connection to the Crazyflie within the client (so that I was receiving real-time flight data), I proceeded to attempt to run a Python code. The code I chose was 'flowsequenceSync.py,' which is a pre-programmed flight path that seemed like a good starting point for testing. However, running the script produced an error output which I have attached in the two screenshots below (it is quite long, and I'm sorry for posting so much information especially since much of it is duplicated, but I figured I might as well show the entire error output). The problem seems to revolve around the radio or USB drivers, but I'm not sure how. The most common piece throughout the output is this "Couldn't load link driver: [Errno 16] Resource busy".
From browsing other forum posts, it seems like one potential solution may be to retry the whole process using the libusbK driver rather than the libusb-win32 that I am currently using. Could this be helpful? I am hesitant to alter my driver as it took a lot of time to get to the point where I am at now, and I don't want to lose progress by taking unnecessary steps.