1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00
Commit Graph

7340 Commits

Author SHA1 Message Date
Philippe Renon
47354f3b9a LP-109 fix long video pauses with rtsp protocol over wifi
workaround https://bugreports.qt.io/browse/QTBUG-40332
2017-09-12 22:20:49 +02:00
Philippe Renon
892c83b30e LP-109 add gstreamer library and video gadget 2017-09-12 22:20:46 +02:00
Philippe Renon
e3a658d153 Merged in filnet/librepilot/LP-419_avoid_gcs_config_reset (pull request #457)
LP-419 avoid gcs config reset

Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Jan NIJS <dr.oblivium@gmail.com>
Approved-by: Brian Webb <webbbn@gmail.com>
2017-09-11 20:56:23 +00:00
Lalanne Laurent
a21d5ba603 Merged in f5soh/librepilot/LP-487_Wrong_defaults_Dterm_basic (pull request #452)
LP-487 Allow the Default button group #1 (PID rate-basic) also reset the RPY Dterm (in advanced tab) to defaults.

Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Jan NIJS <dr.oblivium@gmail.com>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
2017-09-11 19:42:58 +00:00
Philippe Renon
d4db79e06f LP-419 config: fix an unused arg warning 2017-08-28 21:49:09 +02:00
Philippe Renon
ffc48dab65 LP-419 config: improve const correcteness of saveState() methods 2017-08-28 21:48:38 +02:00
Laurent Lalanne
8da8172999 LP-399 Fix tooltips 2017-07-19 14:15:18 +02:00
Philippe Renon
548a881003 LP-419 removed unused code 2017-07-18 22:54:14 +02:00
Philippe Renon
47d9219a09 LP-419 add handling of os specific default GCS configuration file
if a os specific file (for example default_linux.xml) is found it will be loaded
alongside the common default.xml file.

no os specific dfault files are provided yet...
2017-07-17 22:54:47 +02:00
Philippe Renon
f00e40da4f LP-419 config: merge factory defaults at startup
a simple registry is used to track all configurations ever seen
only new configurations (i.e. not in the registry) are added
merging only applies to plugin and gadget configurations for now
2017-07-17 22:22:45 +02:00
Philippe Renon
b52424b2cd LP-419 dialgadget: convert floats to strings before saving configuration
avoids rounding issues
2017-07-17 22:22:43 +02:00
Philippe Renon
f7e0553ea9 LP-419 notification: remove unused files 2017-07-17 22:22:41 +02:00
Philippe Renon
9f3aae1f09 LP-419 config: made SerialPlugin a configurable plugin
inspired from notification plugin
2017-07-17 22:22:39 +02:00
Philippe Renon
2c14920ab0 LP-419 config: apply camel case to IPConnection classes 2017-07-17 22:22:33 +02:00
Philippe Renon
bba67f27d6 LP-419 config: made IPConnectionPlugin a configurable plugin
inspired from notification plugin
next is the serialconnection plugin
also made the code more conformant
2017-07-17 22:20:57 +02:00
Philippe Renon
068988741d LP-419 cleanup QSettings usage throughout GCS 2017-07-17 22:14:08 +02:00
Philippe Renon
7113c1a624 LP-419 main: use new settings utils 2017-07-17 22:14:06 +02:00
Philippe Renon
42a95e5791 LP-419 add settings utilities
provides utilities to initialize, load and merge factory defaults settings
2017-07-17 22:14:04 +02:00
Philippe Renon
38005e3881 LP-419 xmlconfig: cleanup and remove dead code 2017-07-17 22:14:02 +02:00
Laurent Lalanne
c9903f9bbc LP-399 Use checkboxes for status and settingsComplete - Tooltip changes 2017-07-10 13:01:04 +02:00
Laurent Lalanne
bbaa1b32d9 LP-399 Rearrange code to be more readable - Spelling 2017-07-05 23:31:59 +02:00
Laurent Lalanne
cc6dac9259 LP-399 Save HWSettings first 2017-07-05 23:31:59 +02:00
Laurent Lalanne
3bb2bd0b88 LP-399 Add groupbox for module Status 2017-07-05 23:31:59 +02:00
Laurent Lalanne
1b25dcc022 LP-399 Add more tuning information + reset button - Give feedback about
the module running or not.
2017-07-05 23:31:59 +02:00
Laurent Lalanne
c9570ba3a7 LP-399 Move AutoTune tab close to Stabilization 2017-07-05 23:31:59 +02:00
Laurent Lalanne
02e157390d LP-399 Better resizing 2017-07-05 23:31:58 +02:00
Laurent Lalanne
68597d51cc LP-399 Add GUI to Autotune module 2017-07-05 23:31:58 +02:00
Jan NIJS
56661850ab Merged in Oblivium/librepilot/LP-536_GNSS_improvements (pull request #444)
LP-536 GNSS improvements

Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Brian Webb <webbbn@gmail.com>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Jan NIJS <dr.oblivium@gmail.com>
2017-07-05 19:33:11 +00:00
Philippe Renon
9efdb6b1fe Merged in filnet/librepilot/LP-530_upgrate_to_eigen_3_3_3 (pull request #436)
LP-530 upgrate to eigen 3 3 3

Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
Approved-by: Brian Webb <webbbn@gmail.com>
2017-07-05 19:31:11 +00:00
Jan NIJS
c1aeb9f0c1 LP-536 update comments 2017-07-02 22:37:03 +02:00
Jan NIJS
cb8dd90ad7 LP-536 Fixes (hopefully) for PRN text scaling issue Laurent saw on his PC.
- I resolve the PRN text scaling issue by comparing the scaled text height with the available space.
If there is not enough space available, the scaling factor is updated so the final scale factor fills the available space as much as possible.
If the height limit has been reached, the corrected scaling is applied to both the PRN and the SNR text to keep both about the same size.

- This scaling works fine on my Windows PC. I therefore removed the maximum width limit for the snrwidget. (was 850px)
The snr widget will now take up all available width. This does not mean that individual bars will be scaled to fit the width of the widget.
However I have implemented a two step scaling for that. If there are less than 16 visible satellites, the width of each bar is calculated
based on a total of 16 bars in the view. Just like before my changes. If there are more than 16 satellites visible, the number of bars displayed
is incremented from 16 to 24. An aging based hysteresis has been added to prevent continuous flapping between both states.
I think this solution is aesthetically more pleasing than scaling the width of the bars to the width of the widget.
Especially for low number of satellites. (This solution would show massive bars if only a few satellites are visible)

- Since there was no copyright header in gpssnrwidget.cpp and gpssnrwidget.h, I have added one. The OP line is based on the last changes seen in the OP repo.
2017-07-02 21:29:29 +02:00
Laurent Lalanne
525875f6ff LP-487 Allow the Default button group #1 (PID rate-basic) also reset the RPY Dterm (in advanced tab) to defaults. 2017-07-02 17:29:34 +02:00
Jan NIJS
c0964cfdce LP-536 Changes based on feedback to the PR:
- more professional looking toggle code.
- change PRN font to Digital-7
- updated font size factor for SNR PRN text from .56 to .68
- moved a few class includes from the .h to the .cpp file & forward declared QGraphicsSvgItem class in flatearthwidget.h
- hide marker before resize, display it again after resize.
- corrected issue where marker was crawling to the south on continuous resizes.
  Instead of nudging the marker, added a proper forceUpdate parameter to the setPosition() function.
- made sure that only one @author tag is present.
- centered both flatEarth and constellation widgets in their boxes.
- lowered resolution of the map image 1440 -> 1080 & used JPG instead of PNG. Size went from 1105KB on disk to 155KB on disk (PNG version for this resolution is 634KB).
  The resolution change has a minor impact on the level of detail seen in the zoomed view.
- added margin for the SNR widget. Although I start to think the SNR widget isn't all that interesting. Removal may be an option.

- Also removed gridLayout_2 from the top left, leftover from a test.
- Delete scene in the widget destructor. I saw this was done in constellation widget, therefore did the same.
  I used NULL instead of 0. Looks more correct for pointers to me.

What I didn't implement:
- wider bars in the SNR widget when less than the max number of satellites are shown.
  Currently the total width of the SNR widget is limited to 850px. If we go wider with the current implementation, the text becomes too large.
  At this time, I don't have a good idea how to handle that.
2017-06-29 00:12:46 +02:00
Philippe Renon
4d73190806 LP-530 GCS: make it possible to switch to msys2 provided eigen lib 2017-06-28 10:05:46 +02:00
Philippe Renon
bac194595d LP-530 GCS config plugin: don't suppress compilation warnings
this requires fixing a minor warning in configvehicletypewidget.cpp
2017-06-28 10:05:45 +02:00
Philippe Renon
f0f89fe2ad LP-530 upgrade to eigen 3.3.3
fixes compilation warnings
2017-06-28 10:05:42 +02:00
Jan NIJS
557e728a00 LP-536 auto-scaling world map as requested by Philippe + lay-out modifications
Includes a nice feature which you will notice if you keep an eye on your cursor ;-)
2017-06-28 03:06:33 +02:00
Jan NIJS
9d6175e68e LP-536 Missed a few 3D conditions in uav.js 2017-06-28 03:06:33 +02:00
Jan NIJS
2d181994f0 LP-536 use the correct spelling for SATELLITES 2017-06-28 03:06:31 +02:00
Jan NIJS
6cf16cc727 LP-536 Second part of visual improvements for the GPS widget
- Improve Alt label in the GPS display widget. The displayed altitude is Above Mean Sea Level (AMSL).
  AMSL label has been added to clarify the reference from which this altitude is measured.
- Make values bold to draw more attention to them. The labels are less important.
- Replaced an empty horizontal layout by a vertical spacer
2017-06-28 03:06:31 +02:00
Jan NIJS
1876d44c2e LP-536 adapt SNR widget tooltip to the new location of the PRN number (under the bar instead of in the bar) 2017-06-28 03:06:31 +02:00
Jan NIJS
6f3fefd650 LP-536 add extra DGNSS state to indicate when SBAS information (any differential information in fact) is used for higher accuracy. 2017-06-28 03:06:30 +02:00
Jan NIJS
b5a42dc489 LP-536 Reorganize GPS display widget for a wider SNR widget. 2017-06-28 03:06:30 +02:00
Jan NIJS
507ec08db8 LP-536 UTC is the more correct label for GNSS time + fix for the jumping number of satellites in gps widget.
The number of satellites was jumping around the screen. This was due to an unnecessary resize being called.
2017-06-28 03:06:29 +02:00
Jan NIJS
93bf673f54 LP-536 brighten the Galileo satellite icons a bit for better readability of the SV number 2017-06-28 03:06:29 +02:00
Jan NIJS
4ca27d2413 LP-536 Display information for up to 24 satellites instead of only 16.
Information for 24 satellites is fine when using 3 constellations. I think displaying more is overkill.
2017-06-28 03:06:29 +02:00
Lalanne Laurent
726c882aab Merged in f5soh/librepilot/LP-520_OPlink_RSSI_PPMoutput (pull request #428)
LP-520 OPlink RSSI PPMoutput

Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
Approved-by: Vladimir Zidar <mr_w@mindnever.org>
Approved-by: Brian Webb <webbbn@gmail.com>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
2017-06-26 19:16:28 +00:00
Philippe Renon
985beadd9b Merged in filnet/librepilot/LP-535_msys2_automatic_dependencies (pull request #443)
LP-535 msys2 automatic dependencies

Approved-by: Jan NIJS <dr.oblivium@gmail.com>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
Approved-by: Lalanne Laurent <f5soh@free.fr>
2017-06-26 18:46:15 +00:00
Philippe Renon
cf1b716c9d Merged in filnet/librepilot/LP-496_reverted_bank_copy (pull request #442)
LP-496 config stabilization: copy banks from/to were reversed

Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Jan NIJS <dr.oblivium@gmail.com>
Approved-by: Brian Webb <webbbn@gmail.com>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
2017-06-26 18:38:59 +00:00
Philippe Renon
bdd95f95f3 LP-535 msys2: use new addCopyDependenciesTarget to automatically find and copy library dependencies 2017-06-26 09:14:33 +02:00
Philippe Renon
5e6b0e83b3 LP-535 cosmetic renaming in addCopyFileTarget and addCopyDirTarget 2017-06-26 09:14:31 +02:00
Philippe Renon
53cf78e63f LP-535 msys2: add python utility to find and copy library dependencies
also add a new qmake addCopyDependenciesTarget function to invoke new utility
2017-06-26 09:14:30 +02:00
Philippe Renon
ded673442c LP-496 config stabilization: copy banks from/to were reversed 2017-06-22 13:42:22 +02:00
Laurent Lalanne
34d27dc854 LP-520 Change checkbox name 2017-06-18 23:41:24 +02:00
Laurent Lalanne
86a8eded51 LP-520 Update UI using checkbox for Rssi PPM output 2017-06-18 23:41:23 +02:00
Laurent Lalanne
673dbeee40 LP-520 Oplink : Add PPM Rssi option to Gui - Allow only one PPM port 2017-06-18 23:41:23 +02:00
Fredrik Arvidsson
bd555623dd LP-531 Adds support for Qt 5.9.0
SDK install script and Qt installer script updated with new version, paths and URL:s
Explicit casts to char added to avoid clang compiler warnings (treated like errors) on MacOSX and XCode 8.3.2
2017-06-14 00:18:33 +02:00
Vladimir Zidar
ff9b1fdd0a Merged in mindnever/librepilot/LP-522_GCS_Fix_DFUObject_stack_overflow_on_macOS (pull request #431)
LP-522 GCS: DFUObject::CRCFromQBArray - allocate temp buffer on heap

Approved-by: Vladimir Zidar <mr_w@mindnever.org>
Approved-by: David Wilson <dgwilson65@gmail.com>
Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Brian Webb <webbbn@gmail.com>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
2017-06-13 19:56:52 +00:00
Vladimir Zidar
9f12a27f53 LP-523 Move object id and instance_size members from UAVOData structure into UAVObjType and keep only pointer to it. UAVObjType contains init_callback too to allow resetting data to default values. 2017-06-07 00:47:47 +02:00
Vladimir Zidar
e44114d794 LP-512 Uncrustify 2017-06-02 11:46:39 +02:00
Vladimir Zidar
5194f79784 LP-522 GCS: DFUObject::CRCFromQBArray - allocate temp buffer on heap 2017-06-01 14:07:23 +02:00
Vladimir Zidar
48ebb8359e LP-512 GCS: Added missing board images 2017-05-30 23:22:44 +02:00
Vladimir Zidar
4eeb983f2d LP-512 Addressed remainging PR comments. 2017-05-30 16:31:39 +02:00
Vladimir Zidar
916188dd11 LP-512 Added support for tinyFISH FC 2017-05-29 21:12:28 +02:00
Vladimir Zidar
b523f69f0e LP-512 Addressed most of the PR comments. 2017-05-26 01:06:31 +02:00
Vladimir Zidar
77918c51a1 LP-512 Uncrustify 2017-05-25 22:08:39 +02:00
Vladimir Zidar
faf0ae7c04 LP-512 PikoBLX board added 2017-05-25 22:08:38 +02:00
Vladimir Zidar
fdf7e8858a LP-512 Added F3 boards to uploader widget 2017-05-25 22:08:34 +02:00
Vladimir Zidar
5435dbd464 LP-512 Initial F3 support 2017-05-25 22:08:16 +02:00
Philippe Renon
239aad83ba Merged in filnet/librepilot/LP-517_uavtalk_logging_qt5_8_0 (pull request #423)
LP-517 uavtalk logging qt5 8 0

Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Brian Webb <webbbn@gmail.com>
2017-05-15 20:19:16 +00:00
Philippe Renon
03ec59b6a6 Merged in filnet/librepilot/LP-513_gcs_remove_unused_code (pull request #417)
LP-513 gcs remove unused code

Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Brian Webb <webbbn@gmail.com>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
2017-05-15 19:49:35 +00:00
Laurent Lalanne
0f8f560b36 LP-505 Oplm Gui: Add missing image 2017-05-15 21:31:53 +02:00
Lalanne Laurent
6875c664f7 Merged in f5soh/librepilot/LP-505_OPLM_Gui (pull request #420)
LP-505 OPLM Gui

Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Brian Webb <webbbn@gmail.com>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
2017-05-15 18:59:29 +00:00
Lalanne Laurent
9f0d7ea4aa Merged in f5soh/librepilot/LP-510_Update_oplm_panel (pull request #416)
LP-510 Fix OPLM panel display and SMeter

Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Brian Webb <webbbn@gmail.com>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
2017-05-15 18:58:45 +00:00
Philippe Renon
3b8bfabf28 LP-517 gcs: fix uavtalk logging UI state handling
fix issues affecting the UI
fix LP-271 : it was not possible to log after a replay
remove the possibility to log while replaying
more translation aware
2017-05-12 09:41:58 +02:00
Philippe Renon
5220cb0d6f LP-517 gcs: make uavtalk log file more robust and thread safe 2017-05-12 09:41:56 +02:00
Philippe Renon
f4b53b75c1 LP-517 gcs: declare uavtalk log file as a sequential device
fixes spurious "UAVTalk - error : bad type" errors when replaying a log file
2017-05-12 09:41:55 +02:00
Philippe Renon
8c744a331d LP-517 gcs: fix uavtalk logging timer threading issues
make sure QTimer stop and start are always called from owner thread
2017-05-12 09:41:53 +02:00
Philippe Renon
faf0fe758a LP-517 gcs: fix double free when stopping uavtalk logging 2017-05-12 09:41:52 +02:00
Philippe Renon
44869bb934 LP-517 gcs: flush when writing to uavtalk log to avoid device full errors
UAVTalk checks that (io->bytesToWrite() < TX_BUFFER_SIZE)
and, since upgrading to Qt 5.8.0, that test fails when writting to log file
Apparently Qt 5.8.0 has increased the file buffer size or made some change to file handling
Flushing after each write works around this issue.
2017-05-12 09:41:50 +02:00
Philippe Renon
8e87f8b793 LP-517 gcs: rework main sequencing to allow file logging of application shutdown 2017-05-12 09:41:49 +02:00
Laurent Lalanne
289285cadb LP-505 Use clear() for OpenLRS settings reset 2017-05-10 15:13:32 +02:00
Laurent Lalanne
ba5e5695db LP-505 Handle OpenLRS unbinding 2017-05-09 22:53:01 +02:00
Laurent Lalanne
eb59d7381f LP-505 Check customID and coordID changes - Use isEmpty() 2017-05-07 22:01:12 +02:00
Laurent Lalanne
d3280b0bbf LP-505 Add erase/unbind button icon - Cleanup names and logic 2017-05-07 13:07:21 +02:00
Laurent Lalanne
b42d6d0ecf LP-505 Change the channel tooltip according to the RFBand used. 2017-05-07 13:07:21 +02:00
Laurent Lalanne
f2cc267435 LP-505 Disable serial-telemetry options per stream/vcp used 2017-05-07 13:07:20 +02:00
Laurent Lalanne
cac8807941 LP-505 Fix AuxStreamFlexi typo 2017-05-07 13:07:20 +02:00
Laurent Lalanne
0b8fea6fe7 LP-505 Refine OPLM uart/speed visibility 2017-05-07 13:07:20 +02:00
Laurent Lalanne
faaa60862f LP-505 Refactor OPlink tab GUI 2017-05-07 13:07:09 +02:00
Laurent Lalanne
1d04b95323 LP-510 Changes from review - Add some limits and conditions for Rssi and S-Meter 2017-05-05 19:44:18 +02:00
Vladimir Zidar
50fce728f8 LP-479 Addressed PR comments 2017-04-25 14:10:08 +02:00
Vladimir Zidar
3a102d3a64 LP-479 The ui->actuatorValue does not have limits (it is used as label only) so use ui->actuatorMax instead. 2017-04-25 14:10:08 +02:00
Vladimir Zidar
1ebfb701f6 LP-479 Initial DShot implementation, F4 & F1 2017-04-25 14:10:07 +02:00
Philippe Renon
4c2659e92f LP-513 gcs: remove QtCreator cruft 2017-04-24 21:55:16 +02:00
Philippe Renon
2d6d0b6974 LP-513 gcs: remove unused libs/qtconcurrent 2017-04-24 09:34:10 +02:00
Laurent Lalanne
c16eb9821b LP-510 Fix OPLM panel display and SMeter 2017-04-23 02:44:59 +02:00
Brian Webb
dc5eef0cb5 LP-499 Adds support for bridging either radio primary, radio auxilary, and/or VCP to any of the output ports (main, flexi, VCP, HID). Also adds the ability to configure the com speed of the UARTs independent of the air data rate. 2017-04-22 09:36:04 -07:00
Philippe Renon
a9ca744293 Merged in filnet/librepilot/LP-491_upgrade_to_qt_5_8 (pull request #404)
LP-491 upgrade to qt 5 8

Approved-by: Alessio Morale <alessiomorale@gmail.com>
Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Brian Webb <webbbn@gmail.com>
2017-04-17 09:35:54 +00:00
Philippe Renon
8e2fbd03d3 Merged in filnet/librepilot/LP-494_uavobjectbrowser_bitfield_init_value (pull request #401)
LP-494 UAVObjectBrowser: properly initialize multi-element enum/bitfield field

Approved-by: Alessio Morale <alessiomorale@gmail.com>
Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Brian Webb <webbbn@gmail.com>
2017-04-17 09:33:47 +00:00