Drone disconnect while writing/reading mem causes CFLIB freeze?

Post here to get support
Post Reply
hanz
Beginner
Posts: 4
Joined: Wed Nov 13, 2019 10:02 pm

Drone disconnect while writing/reading mem causes CFLIB freeze?

Post by hanz » Fri Nov 22, 2019 2:53 pm

Hey!

Im using the Lighthouse positioning system and the Crazyflie mem "api" to access the basestation positioning. Firstly verifying that it matches my expected positions by reading and then writing if it doesn't.
My program checks this every 5 seconds to make sure that we never fly on a miss-match.

This works fine, the problems pop up when i want to "hot" restart a Crazyflie, either by pulling the cable or clicking the button. If the mem api isnt reading or writing everything goes on as expected.
If there is data being read/written though the whole python process will completely freeze up and requires a restart.

Is this a known issue?
Is there anyway to recover from this in the python process?
Should i simply refrain from reading/writing on a set interval?

Thanks!



kristoffer
Bitcraze
Posts: 120
Joined: Tue Jun 30, 2015 7:47 am

Re: Drone disconnect while writing/reading mem causes CFLIB freeze?

Post by kristoffer » Wed Dec 04, 2019 10:38 am

This sounds like a bug in he memory subsystem communication.
We have had problems with instabilities in the python lib (https://github.com/bitcraze/crazyflie-lib-python) before in this area and it is not impossible that there are still bugs lurking. I suggest you create an issue for the problem in github.

We have recently made updates to the lighthouse code to support one basestation. There is still some functionality missing though that will create problems in your use case, see https://github.com/bitcraze/crazyflie-f ... issues/517

Post Reply