Page 1 of 1

[SOLVED] How to execute initial_position.py

Posted: Wed Jul 01, 2020 7:57 am
by Jun-ichi Toji
Thank you for seeing.
This is my first issue submission.

I need help on running Crazyfile-lib-python/example/position/initial_position.py.
I get the following error when I run initial_position.py.
Image

Python is running version 3.7.7.
I have run Install cflib dependencies which is part of https://github.com/bitcraze/crazyflie-lib-python and I confirm that Python is working.
What should I do in the following cases?

best regards
Toji

Re: How to execute initial_position.py

Posted: Wed Jul 01, 2020 11:41 am
by kimberly
Hi!

Your error indicates that the python script is expecting the parameter 'kalman.initialYaw' to be in die parameter TOC. In the latest version of the code, it should be present, but it seems to be missing from the firmware of your crazyflie.

Have you updated the firmware of the crazyflie to the latest release? Here it will show you how to do this.

Re: How to execute initial_position.py

Posted: Thu Jul 02, 2020 3:00 am
by Jun-ichi Toji
Thank you for your quick response.
My crazyflie could fly after I updated the firmware of it to the latest release :)
I really appreciate it!

Re: How to execute initial_position.py

Posted: Thu Jul 02, 2020 8:07 am
by kimberly
Great it worked out!