New ArduPilot methodic configurator GUI

@amilcarlucas

I have deleted all the old stuff and tried the newest version but am still running into the following errors:

C:\Users\xx>cd documents
C:\Users\xx\Documents>git clone GitHub - ArduPilot/MethodicConfigurator: A clear ArduPilot configuration sequence
Cloning into ‘MethodicConfigurator’…
remote: Enumerating objects: 278, done.
remote: Counting objects: 100% (278/278), done.
remote: Compressing objects: 100% (138/138), done.
remote: Total 278 (delta 149), reused 258 (delta 129), pack-reused 0
Receiving objects: 100% (278/278), 918.17 KiB | 3.22 MiB/s, done.
Resolving deltas: 100% (149/149), done.
C:\Users\xx\Documents>cd MethodicConfigurator
C:\Users\xx\Documents\MethodicConfigurator>python3 -m pip install pymavlink tkinter argparse logging pyserial pyusb typing json os re webbrowser
Collecting pymavlink
Downloading pymavlink-2.4.41-py3-none-any.whl.metadata (6.2 kB)
ERROR: Could not find a version that satisfies the requirement tkinter (from versions: none)
ERROR: No matching distribution found for tkinter

I updated the line above, please retest. And there is no need to delete the old stuff just do

git pull

This is the latest error after getting “python -m pip install pymavlink argparse pyserial typing” to install properly

C:\Users\xx\Documents\MethodicConfigurator>python3 ardupilot_methodic_configurator.py
Traceback (most recent call last):
File “C:\Users\xx\Documents\MethodicConfigurator\ardupilot_methodic_configurator.py”, line 25, in
from frontend_tkinter import show_no_param_files_error
File “C:\Users\xx\Documents\MethodicConfigurator\frontend_tkinter.py”, line 23, in
from PIL import Image
ModuleNotFoundError: No module named ‘PIL’

python -m pip install pillow

C:\Users\xx\Documents\MethodicConfigurator>python3 ardupilot_methodic_configurator.py
2024-04-04 11:35:34,982 - ERROR - The requests package was not found
2024-04-04 11:35:34,982 - ERROR - Please install it by running ‘pip install requests’ in your terminal.
requests package is not installed
I did pip install requests and re-ran python3 ardupilot_methodic_configurator.py to which I got this output.

C:\Users\mc122\Documents\MethodicConfigurator>python3 ardupilot_methodic_configurator.py
2024-04-04 12:11:13,688 - WARNING - Default parameter file 00_default.param not found. No default values will be annotated.
2024-04-04 12:11:13,689 - WARNING - Create one by using the command ./extract_param_defaults.py log_file.bin > 00_default.param
2024-04-04 12:11:13,745 - ERROR - No intermediate parameter files found in C:\Users\mc122\Documents\MethodicConfigurator.
2024-04-04 12:11:17,737 - INFO - Available connection ports are:
2024-04-04 12:11:17,738 - INFO - COM10 - Cube Orange+ Mavlink (COM10)
2024-04-04 12:11:17,738 - INFO - COM14 - Cube Orange+ SLCAN (COM14)
2024-04-04 12:11:17,738 - INFO - COM24 - Standard Serial over Bluetooth link (COM24)
2024-04-04 12:11:17,738 - INFO - COM25 - Standard Serial over Bluetooth link (COM25)
2024-04-04 12:11:17,738 - INFO - tcp:127.0.0.1:5760 - tcp:127.0.0.1:5760
2024-04-04 12:11:17,738 - INFO - udp:127.0.0.1:14550 - udp:127.0.0.1:14550
2024-04-04 12:11:17,744 - INFO - Will connect to COM24
2024-04-04 12:11:22,931 - WARNING - Connection failed: could not open port ‘COM24’: OSError(22, ‘The semaphore timeout period has expired.’, None, 121)
2024-04-04 12:11:22,932 - ERROR - Failed to connect after 3 attempts.
2024-04-04 12:11:22,932 - ERROR - could not open port ‘COM24’: OSError(22, ‘The semaphore timeout period has expired.’, None, 121)
2024-04-04 12:11:25,814 - WARNING - No param_file combobox element selected
2024-04-04 12:11:25,882 - WARNING - Testing active, will load all parameters from the 4.4.4-test-params\00_default.param file
Traceback (most recent call last):
File “C:\Users\xx\Documents\MethodicConfigurator\ardupilot_methodic_configurator.py”, line 120, in
gui(start_file, flight_controller, local_filesystem, VERSION)
File “C:\Users\xx\Documents\MethodicConfigurator\frontend_tkinter.py”, line 425, in init
self.root.after(50, self.read_flight_controller_parameters(reread=False)) # 50 milliseconds
File “C:\Users\xx\Documents\MethodicConfigurator\frontend_tkinter.py”, line 513, in read_flight_controller_parameters
self.flight_controller.fc_parameters = self.flight_controller.read_params(self.update_param_download_progress_bar)
File “C:\Users\xx\Documents\MethodicConfigurator\backend_flightcontroller.py”, line 398, in read_params
par_dict_with_comments = Par.load_param_file_into_dict(filename)
File “C:\Users\xx\Documents\MethodicConfigurator\annotate_params.py”, line 116, in load_param_file_into_dict
with open(param_file, encoding=“utf-8”) as f_handle:
FileNotFoundError: [Errno 2] No such file or directory: ‘4.4.4-test-params\00_default.param’

It decided to auto-connect to COM24 it should have decided to use COM10. But you can override that with:

use:

python3 ardupilot_methodic_configurator.py --device COM10
1 Like

Got it working thanks for all the help!

1 Like

There is a new version with improved install instructions, thanks for testing this.
The new version should give you correct parameter documentation

new install works well no issues nice and clean on windows 11. Now to read the user manual.

1 Like

Thanks for the feedback!

Have it installed in Linux. Seems to work but haven’t been able to give it the full run yet. Might be a while before I can but if I get to test it out I’ll let you know. So far, it looks good. Thanks for all the hard work!

1 Like

Are Amilcarlucas we are cooking with gas now thank you

1 Like

Thanks for all your work on this @amilcarlucas . When I try to go the “new windows installer” link - I get a 404 on github. On your website you recommend installing git and python first, so I have done this, but get errors regarding python installation upon install. I don’t see a desktop icon after this, as you mention using in your instructions, so I think the install failed, but I’m not experienced with this kind of software install, so I’m sure I’m missing something.

C:\Users\Duke Papworth>git clone GitHub - ArduPilot/MethodicConfigurator: A clear ArduPilot configuration sequence
Cloning into ‘MethodicConfigurator’…
remote: Enumerating objects: 543, done.
remote: Counting objects: 100% (63/63), done.
remote: Compressing objects: 100% (37/37), done.
remote: Total 543 (delta 36), reused 49 (delta 24), pack-reused 480
Receiving objects: 100% (543/543), 1.33 MiB | 4.35 MiB/s, done.
Resolving deltas: 100% (323/323), done.

C:\Users\Duke Papworth>cd MethodicConfigurator

C:\Users\Duke Papworth\MethodicConfigurator>.\install_windows.bat
WARNING: If you proceed the python serial package will be uninstalled because it conflicts with pyserial.
Do you want to proceed? (Y/N) [Y,N]?Y
Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.

python serial has been successfully uninstalled.

Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.

On MS Windows softlinks require admin privileges and have other problems so we will
replace the linux parameter metadata/documentation files softlinks with MS Windows hardlinks
Hardlink created for vehicle_examples\diatone_taycan_mxc\4.3.8-params\apm.pdef.xml <<===>> .\apm.pdef.4.3.8-params.xml
Hardlink created for vehicle_examples\diatone_taycan_mxc\4.4.4-params\apm.pdef.xml <<===>> .\apm.pdef.4.4.4-params.xml
Hardlink created for vehicle_examples\diatone_taycan_mxc\4.5.0-params\apm.pdef.xml <<===>> .\apm.pdef.4.5.0-params.xml
Hardlink created for vehicle_examples\diatone_taycan_mxc\4.6.0-DEV-params\apm.pdef.xml <<===>> .\apm.pdef.4.6.0-DEV-params.xml
Hard links creation complete

To run the ArduPilot methodic configurator GUI, execute the following command:

cd MethodicConfigurator
python3 ardupilot_methodic_configurator.py

If you encounter issues with auto-connecting to the wrong device on MS Windows,
you can explicitly set the device with the --device command line option:

cd MethodicConfigurator
python3 ardupilot_methodic_configurator.py --device COMX

Replace COMX with the correct COM port for your device.

For more detailed usage instructions, please refer to the USERMANUAL.md file.

C:\Users\Duke Papworth\MethodicConfigurator>

You need to have a github account in order to download the file.
I am working on providing the file without requiring an account, but for now you need it.

That looks like a problem.

Maybe this helps?

1 Like

Hi - didn’t realize a github account was needed - I do have one and have now downloaded the .zip and installed, but now I’m being greeted with this error - I think I know what it’s saying, but I can’t locate the folder where it wants me to place the missing files. Can you give any direction here? Thank you.

Thank you for the link!

1 Like

That is normal, you can ignore it.
Now read and follow the user manual: ArduPilot Methodic Configurator User Manual | MethodicConfigurator

The latest version is available here:

1 Like

Excellent! Time for the learning to begin. Thank you!

1 Like

Just fyi that the exe sitting on the root is 0.1.6, but the exe contained in the zip file below it is 0.1.5.
Thanks for all your hard work on this!