Turn on motors from cfclient
Posted: Fri Aug 16, 2013 10:24 am
Hello,
I am trying to turn on the motors from the cfclient using:
self.crazyflie.param.set_value("motor.m1", 10001)
but I get the following warnings:
Fri, 16 Aug 2013 19:12:36 WARNING cflib.crazyflie.toc Unable to find variable [motor.m1]
Fri, 16 Aug 2013 19:12:36 WARNING cflib.crazyflie.param Cannot set value for [motor.m1], it's not in the TOC!
motor.m1 is indeed in the TOC, I can print it:
toc = self.crazyflie.log.toc
for group in toc.toc.keys():
for param in toc.toc[group].keys():
toc_element = toc.toc[group][param]
logging.info("name=%s.%s, index=%d, pytype=%s, ctype=%s" %
(group, param, toc_element.ident, toc_element.pytype, toc_element.ctype))
Is it possible to turn on the motors this way???
Do I need some setup before it??
Thanks.
--Luis
I am trying to turn on the motors from the cfclient using:
self.crazyflie.param.set_value("motor.m1", 10001)
but I get the following warnings:
Fri, 16 Aug 2013 19:12:36 WARNING cflib.crazyflie.toc Unable to find variable [motor.m1]
Fri, 16 Aug 2013 19:12:36 WARNING cflib.crazyflie.param Cannot set value for [motor.m1], it's not in the TOC!
motor.m1 is indeed in the TOC, I can print it:
toc = self.crazyflie.log.toc
for group in toc.toc.keys():
for param in toc.toc[group].keys():
toc_element = toc.toc[group][param]
logging.info("name=%s.%s, index=%d, pytype=%s, ctype=%s" %
(group, param, toc_element.ident, toc_element.pytype, toc_element.ctype))
Is it possible to turn on the motors this way???
Do I need some setup before it??
Thanks.
--Luis