[SOLVED] basic set up with stem bundle

Discussions about all things Bitcraze
Post Reply
curiousstudent
Beginner
Posts: 18
Joined: Sun Jan 05, 2020 6:52 pm

[SOLVED] basic set up with stem bundle

Post 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/file1.py", line 26, in <module>
with MotionCommander(scf) as mc:
File "/home/edwin-pcp/crazyflie/crazyflie-lib-python/cflib/positioning/motion_commander.py", line 129, in __enter__
self.take_off()
File "/home/edwin-pcp/crazyflie/crazyflie-lib-python/cflib/positioning/motion_commander.py", line 99, in take_off
self._reset_position_estimator()
File "/home/edwin-pcp/crazyflie/crazyflie-lib-python/cflib/positioning/motion_commander.py", line 413, in _reset_position_estimator
self._cf.param.set_value('kalman.resetEstimation', '1')
File "/home/edwin-pcp/crazyflie/crazyflie-lib-python/cflib/crazyflie/param.py", 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?
kimberly
Bitcraze
Posts: 1050
Joined: Fri Jul 06, 2018 11:13 am

Re: basic set up with stem bundle

Post by kimberly »

Hi!

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: https://github.com/bitcraze/crazyflie-f ... 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 :https://www.bitcraze.io/getting-started ... #latest-fw ?

Let us know if this works for you!
curiousstudent
Beginner
Posts: 18
Joined: Sun Jan 05, 2020 6:52 pm

Re: basic set up with stem bundle

Post 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.
kimberly
Bitcraze
Posts: 1050
Joined: Fri Jul 06, 2018 11:13 am

Re: basic set up with stem bundle

Post by kimberly »

Happy to hear that solved it!
Post Reply