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!