Drone disconnect while writing/reading mem causes CFLIB freeze?
Posted: 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!
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!