Feture:
- Automatic connect to serial port.
- param setting.
- param read back.
Build tool :
- python 2.7/3.5
- PyQT5
- pyinstaller (optional)
- Qt Qtdesigner (optional)
-
install qt5
sudo apt-get install qt5-default qttools5-dev-tools
-
install pyqt5
sudo apt-get install python3-pyqt5 pyqt5-dev-tools
-
install executable package tools.(optional,If you no need to package it to a executable program.)
Note:for package pvmavlink pyinstaller should base on python3.5. python2.7 will have a issue. pip3 install pyinstaller
step 1. Run Qtdesigner with "designer" command. Open UI design file "ui.ui".
step 2. Modify UI. Then save it.
step 3. run command: pyuic5 -o ui.py ui.ui
. You will get python file "ui.py" , Done.
Run:python ComHelper.py
Note: for package pymavlink on Windows, should add :
hiddenimports=['pymavlink.dialects.v20','pymavlink.dialects.v20.ardupilotmega',]
to spec file.
Linux\Mac Run: pyinstaller -F --clean vid_tool.spec
Windows Run: pyinstaller -F --clean -w vid_tool.spec
You will get a executable file at "./dist".
- Fix
Can't open /dev/ttyACM0 permission denide.
Run:sudo usermod -a -G dialout <Your_user_name>