Multiranger deck wrong distance measurement
Posted: Tue Oct 12, 2021 11:17 am
Dear all,
I got some issues with the multiranger deck:
When I used the python scripts as below: I put the crazyflie in the corridor without any obstacle. The distance to the wall is far than 4m.
The printed outputs were not all None but started with three None and then some value between 0.249 to 0.259
However When I did not add the time delay like:
The outputs were None.
Could anyone tell me the reasons?
Cheers!
I got some issues with the multiranger deck:
When I used the python scripts as below: I put the crazyflie in the corridor without any obstacle. The distance to the wall is far than 4m.
Code: Select all
cflib.crtp.init_drivers()
with SyncCrazyflie(URI, cf=Crazyflie(rw_cache='./cache')) as scf:
with Multiranger(scf) as multiranger:
for _ in range(100):
print(multiranger.front)
time.sleep(0.05)
However When I did not add the time delay like:
Code: Select all
cflib.crtp.init_drivers()
with SyncCrazyflie(URI, cf=Crazyflie(rw_cache='./cache')) as scf:
with Multiranger(scf) as multiranger:
for _ in range(100):
print(multiranger.front)
Could anyone tell me the reasons?
Cheers!