But each time I change location value and click write to anchors button, nothing changed, and when I click Get from anchors button, value reset to all (0, 0, 0) Then I trying to set position through python lib and the LoPoAnchor's set_position func stuck
Code: Select all
import cflib.crtp
from cflib.crazyflie import Crazyflie
from cflib.crazyflie.log import LogConfig
from cflib.crazyflie.mem import MemoryElement
from lpslib.lopoanchor import LoPoAnchor
cf = Crazyflie(ro_cache=None)
cflib.crtp.init_drivers(enable_debug_driver=False)
while True:
devices = cflib.crtp.scan_interfaces()
if len(devices) > 0:
break
else:
print("no device")
device_interface = devices[0][0]
cf.open_link(device_interface)
lopo = LoPoAnchor(cf)
lopo.set_position(1, (1, 0, 0))