Git Product home page Git Product logo

ardupilot / methodicconfigurator Goto Github PK

View Code? Open in Web Editor NEW
22.0 7.0 8.0 11.44 MB

A clear ArduPilot configuration sequence

Home Page: https://discuss.ardupilot.org/t/how-to-methodically-tune-almost-any-multicopter-using-arducopter-4-4-x/110842/1

License: GNU General Public License v3.0

Python 88.98% Shell 0.71% Batchfile 1.06% Inno Setup 1.82% HTML 7.43%
ardupilot configurable configuration-management devops scm

methodicconfigurator's Issues

Version info

Is there another easier way to determine the version of the app installed for Windows? Yes, the user can go a long way to Settings->Apps-> Search for the app.

Can the version info be in the GUI?

image

Vehicle Component Editor issues

Very helpful and great tool!

I found two issues with latest master branch version "Vehicle Component Editor" that now validates some values when saving data and starting configuration.

  1. it does not allow the same serial port to be used for multiple items. Typically this makes sense, but there are corner cases. In my case using mLRS, I would want to pick the same serial port for RC Receiver and Telemetry.

  2. When using an AIO FC, under ESC section, I cannot pick from drop down "FC connection" a value suitable for AIO, only SERIAL, Main out and CAN are presently selectable.

Linux Install

Great work!
Not a real issue but just suggestions:

Please add an instruction in readme.md for the linux user to run
chmod +x install_linux.sh
before running the install script

A launcher for Ubuntu and probably other debian-based distros could be created and saved as "MethodicConfigurator.desktop" in /home/$USER/.local/share/applications
The linux install script might even be able to do this if you can detect the linux distro to ensure it's debian-based.

[Desktop Entry]
Name=Methodic Configurator
Comment=ArduPilot Methodic Configurator
Exec=python3 /home/$USER/MethodicConfigurator/MethodicConfigurator/ardupilot_methodic_configurator.py
Icon=/home/$USER/MethodicConfigurator/MethodicConfigurator/ArduPilot_icon.png
Terminal=true
Type=Application
Categories=Development;
Keywords=ardupilot;arducopter;drone;copter;

The .desktop file must have the users actual home path in it and cannot use $HOME or $USER, so the alternatives are:
a) end-user would have to modify the .desktop file and add in their own correct path
b) the install script would have to populate it
c) other options get very complex, not worth discussing I think

no FC connected when close

just to highlight if users click close when no FC connected.

system
Edition Windows 10 Pro
Version 22H2
OS build 19045.4291
Experience Windows Feature Experience Pack 1000.19056.1000.0

v0 2 0

Installation failed error - is there a better way?

Hey there.

Looks like install_linux.sh has some red text failures, but the script succeeds. Is this expected behavior?

OS: Ubuntu 22.

ryan@B650-970:~/Dev/ardu_ws/src/MethodicConfigurator$ ./install_linux.sh 
Updating package lists...
[sudo] password for ryan: 
Hit:1 https://download.docker.com/linux/ubuntu jammy InRelease
Hit:2 https://dl.google.com/linux/chrome/deb stable InRelease                                                                                                                                                                   
Hit:3 http://packages.ros.org/ros2-testing/ubuntu jammy InRelease                                                                                                                                                               
Hit:4 http://us.archive.ubuntu.com/ubuntu jammy InRelease                                                                                                                                                  
Get:5 http://us.archive.ubuntu.com/ubuntu jammy-updates InRelease [119 kB]                                                                                                                      
Hit:6 https://apt.kitware.com/ubuntu jammy InRelease                                                                                                                                            
Get:7 http://security.ubuntu.com/ubuntu jammy-security InRelease [110 kB]                                                                                                           
Hit:8 https://apt.kitware.com/ubuntu jammy-rc InRelease                                                                                                                                       
Hit:9 http://us.archive.ubuntu.com/ubuntu jammy-backports InRelease                                                                                                                           
Hit:10 http://packages.osrfoundation.org/gazebo/ubuntu-stable jammy InRelease                                                                                           
Get:11 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy InRelease [18.1 kB]                                             
Hit:12 http://repo.vulcanexus.org/debian jammy InRelease                                    
Hit:13 https://ppa.launchpadcontent.net/mosquitto-dev/mosquitto-ppa/ubuntu jammy InRelease
Get:14 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy/main amd64 Packages [23.8 kB]
Get:15 https://ppa.launchpadcontent.net/deadsnakes/ppa/ubuntu jammy/main i386 Packages [10.3 kB]
Get:16 https://esm.ubuntu.com/apps/ubuntu jammy-apps-security InRelease [7,553 B]
Get:17 https://esm.ubuntu.com/apps/ubuntu jammy-apps-updates InRelease [7,456 B]
Get:18 https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_22.04 ./ InRelease [1,559 B]
Get:19 https://esm.ubuntu.com/infra/ubuntu jammy-infra-security InRelease [7,450 B]
Get:20 https://esm.ubuntu.com/infra/ubuntu jammy-infra-updates InRelease [7,449 B]                                                                                                                                              
Fetched 313 kB in 6s (50.5 kB/s)                                                                                                                                                                                                
Reading package lists... Done
W: https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/xUbuntu_22.04/./InRelease: Key is stored in legacy trusted.gpg keyring (/etc/apt/trusted.gpg), see the DEPRECATION section in apt-key(8) for details.
Installing Python3 PIL.ImageTk...
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
  nvidia-firmware-535-535.154.05
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
  python3-pil
Suggested packages:
  python-pil-doc
The following packages will be upgraded:
  python3-pil python3-pil.imagetk
2 upgraded, 0 newly installed, 0 to remove and 678 not upgraded.
Need to get 429 kB of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu jammy-updates/universe amd64 python3-pil.imagetk amd64 9.0.1-1ubuntu0.3 [9,616 B]
Get:2 http://us.archive.ubuntu.com/ubuntu jammy-updates/main amd64 python3-pil amd64 9.0.1-1ubuntu0.3 [419 kB]
Fetched 429 kB in 0s (987 kB/s)      
(Reading database ... 446733 files and directories currently installed.)
Preparing to unpack .../python3-pil.imagetk_9.0.1-1ubuntu0.3_amd64.deb ...
Unpacking python3-pil.imagetk:amd64 (9.0.1-1ubuntu0.3) over (9.0.1-1ubuntu0.2) ...
Preparing to unpack .../python3-pil_9.0.1-1ubuntu0.3_amd64.deb ...
Unpacking python3-pil:amd64 (9.0.1-1ubuntu0.3) over (9.0.1-1ubuntu0.2) ...
Setting up python3-pil:amd64 (9.0.1-1ubuntu0.3) ...
Setting up python3-pil.imagetk:amd64 (9.0.1-1ubuntu0.3) ...
Uninstalling serial and pyserial...
WARNING: Skipping serial as it is not installed.
Found existing installation: pyserial 3.5
Uninstalling pyserial-3.5:
ERROR: Exception:
Traceback (most recent call last):
  File "/usr/lib/python3.10/shutil.py", line 816, in move
    os.rename(src, real_dst)
PermissionError: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/pyserial-3.5.egg-info' -> '/tmp/pip-uninstall-fn9e4s_1'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/ryan/.local/lib/python3.10/site-packages/pip/_internal/cli/base_command.py", line 180, in exc_logging_wrapper
    status = run_func(*args)
  File "/home/ryan/.local/lib/python3.10/site-packages/pip/_internal/commands/uninstall.py", line 105, in run
    uninstall_pathset = req.uninstall(
  File "/home/ryan/.local/lib/python3.10/site-packages/pip/_internal/req/req_install.py", line 727, in uninstall
    uninstalled_pathset.remove(auto_confirm, verbose)
  File "/home/ryan/.local/lib/python3.10/site-packages/pip/_internal/req/req_uninstall.py", line 380, in remove
    moved.stash(path)
  File "/home/ryan/.local/lib/python3.10/site-packages/pip/_internal/req/req_uninstall.py", line 271, in stash
    renames(path, new_path)
  File "/home/ryan/.local/lib/python3.10/site-packages/pip/_internal/utils/misc.py", line 358, in renames
    shutil.move(old, new)
  File "/usr/lib/python3.10/shutil.py", line 834, in move
    rmtree(src)
  File "/usr/lib/python3.10/shutil.py", line 725, in rmtree
    _rmtree_safe_fd(fd, path, onerror)
  File "/usr/lib/python3.10/shutil.py", line 681, in _rmtree_safe_fd
    onerror(os.unlink, fullname, sys.exc_info())
  File "/usr/lib/python3.10/shutil.py", line 679, in _rmtree_safe_fd
    os.unlink(entry.name, dir_fd=topfd)
PermissionError: [Errno 13] Permission denied: 'requires.txt'

image

No intermediate parameter files found

Version 0.6.5

Which step did I do wrongly? I have created a vehicle directory from the template but not in the default (destination) base directory.
for example C:\data\test
when I used the last option, "Open Last Used Vehicle Directory" it said could not find the intermediate files. I seem to experience the same as this user and this user.

anything to do with "\" or "/" in the path?

I was trying to plot the graph after IMU temp calibration.

Edition	Windows 10 Pro
Version	22H2
Installed on	‎13/‎03/‎2021
OS build	19045.4412
Experience	Windows Feature Experience Pack 1000.19056.1000.0
2024-06-05 13:27:40,056 - INFO - Available connection ports are:
2024-06-05 13:27:40,056 - INFO - COM6 - u-blox Virtual COM Port (COM6)
2024-06-05 13:27:40,058 - INFO - COM28 - Cube Orange Mavlink (COM28)
2024-06-05 13:27:40,059 - INFO - COM5 - Silicon Labs CP210x USB to UART Bridge (COM5)
2024-06-05 13:27:40,059 - INFO - COM3 - u-blox GNSS Receiver (COM3)
2024-06-05 13:27:40,059 - INFO - COM29 - Cube Orange SLCAN (COM29)
2024-06-05 13:27:40,059 - INFO - COM4 - Intel(R) Active Management Technology - SOL (COM4)
2024-06-05 13:27:40,060 - INFO - tcp:127.0.0.1:5760 - tcp:127.0.0.1:5760
2024-06-05 13:27:40,060 - INFO - udp:127.0.0.1:14550 - udp:127.0.0.1:14550
2024-06-05 13:27:40,060 - INFO - Will connect to COM28
2024-06-05 13:27:41,150 - INFO - Autopilot type ArduPilot - Plane/Copter/Rover/Sub/Tracker, https://ardupilot.org
2024-06-05 13:27:41,151 - INFO - Vehicle type Hexarotor running ArduCopter firmware
2024-06-05 13:27:41,661 - INFO - Autopilot supports MISSION float message type.
2024-06-05 13:27:41,661 - INFO - Autopilot supports the new param float message type.
2024-06-05 13:27:41,661 - INFO - Autopilot supports MISSION_ITEM_INT scaled integer message type.
2024-06-05 13:27:41,662 - INFO - Autopilot supports COMMAND_INT scaled integer message type.
2024-06-05 13:27:41,662 - INFO - Autopilot supports the File Transfer Protocol v1: https://mavlink.io/en/services/ftp.html.
2024-06-05 13:27:41,662 - INFO - Autopilot supports commanding attitude offboard.
2024-06-05 13:27:41,662 - INFO - Autopilot supports commanding position and velocity targets in local NED frame.
2024-06-05 13:27:41,663 - INFO - Autopilot supports commanding position and velocity targets in global scaled integers.
2024-06-05 13:27:41,663 - INFO - Autopilot supports terrain protocol / data handling.
2024-06-05 13:27:41,663 - INFO - Autopilot supports the MAV_CMD_DO_FLIGHTTERMINATION command (flight termination).
2024-06-05 13:27:41,663 - INFO - Autopilot supports onboard compass calibration.
2024-06-05 13:27:41,663 - INFO - Autopilot supports MAVLink version 2.
2024-06-05 13:27:41,664 - INFO - Autopilot supports mission fence protocol.
2024-06-05 13:27:41,664 - INFO - Autopilot supports mission rally point protocol.
2024-06-05 13:27:41,664 - INFO - Flight Controller Version: 4.5.0 official
2024-06-05 13:27:41,664 - INFO - Flight Controller HW / board version: 9175040
2024-06-05 13:27:41,664 - INFO - Flight Controller first 8 hex bytes of the FC git hash: 53ad2c2a
2024-06-05 13:27:41,664 - INFO - Flight Controller first 8 hex bytes of the ChibiOS git hash: 6a85082c
2024-06-05 13:27:41,666 - INFO - Flight Controller board vendor: Hex
2024-06-05 13:27:41,666 - INFO - Flight Controller board product: CubeOrange
2024-06-05 13:27:41,667 - INFO - Vehicle type not set explicitly, auto-detected ArduCopter.
2024-06-05 13:27:41,676 - INFO - Configuration steps 'ArduCopter_configuration_steps.json' loaded from C:\Program Files (x86)\MethodicConfigurator\_internal\MethodicConfigurator.
2024-06-05 13:27:56,748 - INFO - Configuration steps 'ArduCopter_configuration_steps.json' loaded from C:\Program Files (x86)\MethodicConfigurator\_internal\MethodicConfigurator.
2024-06-05 13:30:32,261 - INFO - Configuration steps 'ArduCopter_configuration_steps.json' loaded from C:\Program Files (x86)\MethodicConfigurator\_internal\MethodicConfigurator.
2024-06-05 13:31:02,805 - INFO - Configuration steps 'ArduCopter_configuration_steps.json' loaded from C:\Program Files (x86)\MethodicConfigurator\_internal\MethodicConfigurator.

vechicles_missing

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.