How to close correctly the radio link
Posted: Fri Oct 25, 2013 10:49 am
Hallo.
I'm worcking with my personal code. If i turn of the crazyflie and start my code all works correctly, but if then i close my code and try to run it again the callback connectSetupFinished doesn't come. I have to turn of and then turn on the crazyflie every time I want to start my code. Do you now why??
I guess it could depend on how I close my program and the radio link. For now i use:
Do you know if there is something better??
Cheers
I'm worcking with my personal code. If i turn of the crazyflie and start my code all works correctly, but if then i close my code and try to run it again the callback connectSetupFinished doesn't come. I have to turn of and then turn on the crazyflie every time I want to start my code. Do you now why??
I guess it could depend on how I close my program and the radio link. For now i use:
Code: Select all
self.crazyflie.close_link()
Cheers