Page 1 of 1

[SOLVED] basic set up with stem bundle

Posted: Wed Jan 22, 2020 8:54 pm
by curiousstudent
Hey so I am following the basic setup with the stem bundle.

I am having the following issue when I run the script:
Connecting to radio://0/80/2M
Connected to radio://0/80/2M
Traceback (most recent call last):
File "/home/edwin-pcp/Desktop/", line 26, in <module>
with MotionCommander(scf) as mc:
File "/home/edwin-pcp/crazyflie/crazyflie-lib-python/cflib/positioning/", line 129, in __enter__
File "/home/edwin-pcp/crazyflie/crazyflie-lib-python/cflib/positioning/", line 99, in take_off
File "/home/edwin-pcp/crazyflie/crazyflie-lib-python/cflib/positioning/", line 413, in _reset_position_estimator
self._cf.param.set_value('kalman.resetEstimation', '1')
File "/home/edwin-pcp/crazyflie/crazyflie-lib-python/cflib/crazyflie/", line 266, in set_value
raise KeyError('{} not in param TOC'.format(complete_name))
KeyError: 'kalman.resetEstimation not in param TOC'

So what am I doing wrong? What is the kalman.resetEstimation not in param TOC?

Re: basic set up with stem bundle

Posted: Thu Jan 23, 2020 9:41 am
by kimberly

This error comes from the crazyflie python library. What it says is that the crazyflie is not sending a parameter value that the python script is expecting (since it want to reset the kalman filter). In the current firmware, this is send here: ... lman.c#L74, so in your firmware, this is missing.

When you got your crazyflie, did you follow all the steps of the getting started guide? Have you updated the crazyflie's firmware to the latest release like in here : ... #latest-fw ?

Let us know if this works for you!

Re: basic set up with stem bundle

Posted: Sat Jan 25, 2020 1:16 am
by curiousstudent
Yes! Thank you! That solved my problem! I have another question about another one of my drones but i'll post that in a new question.

Re: basic set up with stem bundle

Posted: Mon Jan 27, 2020 11:27 am
by kimberly
Happy to hear that solved it!