Hello guys, I just finished building my first drone, but I can’t get it too fly because it goes on the side directly, it doesn’t fly well at all. So I guess that I have to somehow configure it, and I went across the methodic configurator, and this document but I am unable to configure my drone.
As you can see, I went up to step 5, but then I cannot select any templates, I don’t know why. I don’t know if it matters, but my laptop is running linux.
And in the docs, the guy has some things to choose from.
The firmware version is 4.5.1 on the autopilot.
I would really appreciate some help.
I took a video of the drone when I try to takeoff, but I can’t upload it here. Basically, the drone moves by itself, to the left so I can’t takeoff. The configurator should solve this issue right?
If you know a way for me to upload the video to show please tell me.
That is a known bug on Linux. I have not found a solution for it yet, sorry for that.
On linux clone the git repository and run the python code directly without installing it.
I assume you know how to do a github clone and execute a python script because you are on linux. Can you do that?
I tried that, but still got the same issue.
In the screenshot yo can see the command that I ran, and the fact that I can’t select the things.
Also, I am not sure but I don’t think that I have the same issue as the person in the link you sent.
Thanks for your reply.
Try:
cp vehicle_templates /usr/lib/python3.10/site-packages/MethodicConfigurator/vehicle_templates
I get this error when running the command you gave me, for information I am running fedora 40 workstation
But just to be sure, following this guide (the same as I gave earlier)
The templates on step 5 should be there right, I don’t have to create them?
cp: cannot stat 'vehicle_templates': No such file or directory```
Yes the templates are expected in a specific directory. But python setuptools refuses to copy them there. So you need to copy them by hand.
adapt the command I gave you to your particular distro and python version.
You need to issue the command on the directory that you cloned the code. Otherwise you will obviously get that error.
If you are not proficient in linux I suggest you use windows.
The templates will be there once you correctly execute the command I gave you above
I copied the templates but still they don’t show up when I launch the configurator. I ran this command:
cp -r vehicle_templates /home/nathanv/Documents/projects/drone/env/lib/python3.12/site-packages/MethodicConfigurator
( I use a python virtual environment) and the templates got pasted there correctly.)
(base) nathanv@bongstong:~/Documents/projects/drone/env/lib/python3.12/site-packages/MethodicConfigurator$ ls vehicle_templates
ArduCopter Heli Rover
Hello, I made it work but I have a quick question. The hardware I use is not exactly in there, I use old hardware. Should I import it by myself or select what is the closest to my hardware? Thanks.
And install the latest version
Hi, thanks for your help. I did, then I clicked on “create vehicle configuration directory from template”
and got this error message
Traceback (most recent call last):
File "/home/nathanv/.local/bin/ardupilot_methodic_configurator", line 33, in <module>
sys.exit(load_entry_point('MethodicConfigurator', 'console_scripts', 'ardupilot_methodic_configurator')())
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/home/nathanv/Documents/projects/drone/MethodicConfigurator/MethodicConfigurator/ardupilot_methodic_configurator.py", line 155, in main
component_editor(args, flight_controller, local_filesystem.vehicle_type, local_filesystem, vehicle_dir_window)
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/nathanv/Documents/projects/drone/MethodicConfigurator/MethodicConfigurator/ardupilot_methodic_configurator.py", line 90, in component_editor
component_editor_window = ComponentEditorWindow(VERSION, local_filesystem)
File "/home/nathanv/Documents/projects/drone/MethodicConfigurator/MethodicConfigurator/frontend_tkinter_component_editor.py", line 219, in __init__
ComponentEditorWindowBase.__init__(self, version, local_filesystem)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/nathanv/Documents/projects/drone/MethodicConfigurator/MethodicConfigurator/frontend_tkinter_component_editor_base.py", line 112, in __init__
self.root.after(10, self.__display_component_editor_usage_instructions(self.root))
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
File "/home/nathanv/Documents/projects/drone/MethodicConfigurator/MethodicConfigurator/frontend_tkinter_component_editor_base.py", line 148, in __display_component_editor_usage_instructions
parent.attributes('-disabled', True) # Disable parent window input
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^
File "/usr/lib64/python3.13/tkinter/__init__.py", line 2160, in wm_attributes
return self.tk.call('wm', 'attributes', self._w, *args)
~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
_tkinter.TclError: bad attribute "-disabled": must be -alpha, -topmost, -zoomed, -fullscreen, or -type```
Do you know how to solve this?
You seam to have an outdated tk version
I pushed a fix just now. update the code
1 Like