So I've been trying to get values of specific parameters of the crazyflies using toc.
I first looked under ParamTab of cfclient to see how the parameters are populated.
Under line 255, I found "self.cf.param.toc.toc"
https://github.com/bitcraze/crazyflie-c ... ab.py#L255
Which sure enough, printed out the objects for each parameter. Still had no idea how to get the values out, I tried dir(self.cf.param.toc.toc[some_group][some_parameter]) and got these
Code: Select all
['RO_ACCESS', 'RW_ACCESS', '__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', 'access', 'ctype', 'get_readable_access', 'group', 'ident', 'name', 'pytype', 'types']
https://github.com/bitcraze/crazyflie-l ... y#L73-L124
But with all said, I still don't have any clue how to get the value, which is as listed in cfclient, of any specific paramter using toc.
Does anyone have a solution to this? From what I see, it doesn't seem to be implemented yet? There isn't really anything under ParamBlockModel in ParamTab.py that says anything about populating the value: https://github.com/bitcraze/crazyflie-c ... #L114-L123
I've also read this: viewtopic.php?f=6&t=1198&p=6487&hilit=param#p6487
But what it describes seems to be the need for a callback in order to get the values of the parameters, instead of a direct way to obtaining the values.