The main problem with the previous implementation is that the QGCCacheWorker
does not have an event loop (not calling exec).
Since network function that are not async (such as waitConnection) needs an eventloop,
the Fuctor will run in another thread.
To fix this behaviour, the implementation was moved from to an async approach with signals.
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
For increased type safety, some enums have been changed to
scoped enums in Qt 6.2, see
https://codereview.qt-project.org/c/qt/qtconnectivity/+/336678
This patch adapts qgroundcontrol to this change.
Since C++11, enums inject their symbols in both their own
and their parent namespace, so this patch can be merged right
now.
Signed-off-by: Andreas Buhr <andreas.buhr@qt.io>
* Fix racey access of `QGCCacheWorker::_taskQueue`
* `QGCCacheWorker::_valid` needs to be atomic
* Use `QScopedPointer<QSqlDatabase>` for safety
* Some refactoring for readability & debugging
* Name and layout change for UDP/TCP settings
- To be more coherent with terminology used by MAVLink proxy/router softwares, the connection fields' labels was changed.
- A slight redesign of UDP server/host connection settings to allow for explaining notes and easier overview.
* Inherit widths from parent for less static layout
* Removed non-functional and unused reference
Got a hint from the flatpak people on IRC and connected the license IDs with and "AND". Works perfectly fine with Gnome's software center.
Signed-off-by: Thomas Karl Pietrowski <thopiekar@gmail.com>
It provides metadata for app stores like KDE's Discover or the Gnome Store.
The info inside this file can be improved. It has been quickly generated with a generator made by the Freedesktop people.
Signed-off-by: Thomas Karl Pietrowski <thopiekar@gmail.com>
According to Freedesktop spec the icon should be placed in the fallback theme and use the id of the application.
Signed-off-by: Thomas Karl Pietrowski <thopiekar@gmail.com>
While working on the flatpaks, I got complaints from flatpak-builder that org.mavlink.qgroundcontrol.desktop was not found.
Since flatpak is made by the Freedesktop people, I strongly believe that this is actually an convention, which they want to enforce with their flatpak ecosystem.
Nevertheless, just doing so, so the builder stops complaining at least.
Signed-off-by: Thomas Karl Pietrowski <thopiekar@gmail.com>
Hobbs meter is implemented differently for PX4 and
Ardupilot. This commit adds support for Ardupilot
and moves the method to firmware plugin instead
of being hardcoded in vehicle
Basically unextracting the deb-file with ar and tar as dpkg would do, too.
This is more handy if you are in a non-Debian environment or very minimal one.
Signed-off-by: Thomas Karl Pietrowski <thopiekar@gmail.com>