Page 1 of 1

Drone disconnect while writing/reading mem causes CFLIB freeze?

Posted: Fri Nov 22, 2019 2:53 pm
by hanz
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!

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

Posted: Wed Dec 04, 2019 10:38 am
by kristoffer
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