1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-10 18:24:11 +01:00
Commit Graph

15337 Commits

Author SHA1 Message Date
Laurent Lalanne
1abe34ce7e LP-399 Prepare Autotune GUI : Define some settings as enums 2017-07-05 23:31:57 +02:00
Lalanne Laurent
d031352cdd Merged in f5soh/librepilot/LP-539_OPLM_BigUAVO (pull request #447)
LP-539 OPLink - Big object issue

Approved-by: Brian Webb <webbbn@gmail.com>
Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
2017-07-05 19:33:46 +00: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
a62064d032 Merged in filnet/librepilot/LP-535_msys2_automatic_dependencies (pull request #448)
LP-535 simplified copy_dependencies.py

Approved-by: Brian Webb <webbbn@gmail.com>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
2017-07-05 19:32:33 +00:00
Brian Webb
8f91f1b49b Merged in webbbn/librepilot/LP-537-update-f0-gps-to-be-more-similar (pull request #445)
LP-537 update f0 gps to be more similar

Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Brian Webb <webbbn@gmail.com>
2017-07-05 19:32:00 +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
Brian Webb
45a267783a LP-537 stm32f10x_flash.h include in f0 pios_flash_internal.c instead of stm32f0xx_flash.h 2017-06-28 18:14:34 -07: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
b405fa8785 LP-530 don't ignore core directories 2017-06-28 10:05:48 +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
12062a5c7d LP-536 make pretty 2017-06-28 03:06:32 +02:00
Jan NIJS
a61d87243e LP-536 gpsextendedstatus: change update type from periodic (1s) to on-change.
There is no need to transmit one telemetry update per second for this uavo on controllers where no OP-GPS is present.
For the controllers where an OP-GPS is present, the FlightTime field updates will trigger a telemetry update.
2017-06-28 03:06:32 +02:00
Jan NIJS
5e53fb283c LP-536 skip informational UBX packets that are too large to fit buffers
UBX-NAV-SVINFO (id 30) and UBX-NAV-SAT (id 35) packets are NOT critical to the navigation.
Their only use is to update the nice GPS constellation widget in the GCS.
These packets become very large when a lot of SV (Space Vehicles) are tracked. (8 + 12 * <number of SV>) bytes

In the case of 3 simultaneously enabled GNSS, it is easy to reach the currently defined tracking limit of 32 SV.
The memory taken up by this is 8 + 12 * 32 = 392 bytes

The NEO-M8N has been seen to send out information for more than 32 SV. This causes overflow errors.
We will ignore these informational packets if they become too large.
The downside of this is no more constellation updates in the GCS when we reach the limit.

An alternative fix could be to increment the maximum number of satellites: MAX_SVS and UBX_CFG_GNSS_NUMCH_VER8 in UBX.h
This would use extra memory for little gain. Both fixes can be combined.

Tests indicate that, once we reach this amount of tracked SV, the NEO-M8N module positioning output
becomes jittery (in time) and therefore less accurate.

The recommendation is to limit the maximum number of simultaneously used GNSS to a value of 2.
This will help keep the number of tracked satellites in line.
2017-06-28 03:06:32 +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
a6aeb11a56 LP-536 Timeout parameter for PIOS_COM_ReceiveBuffer() should be in milliseconds. No need to convert to ticks.
Changed the int xDelay to a define and put the define next to the other major delay in the GPS task.
Increased the time we wait for PIOS_COM_ReceiveBuffer from 5 to 20 ms.
2017-06-28 03:06:30 +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
Philippe Renon
620aabc1fe LP-535 simplified copy_dependencies.py
use the fact that ntldd can find dependencies recursivly and on a bunch
of files at once
2017-06-27 17:44:52 +02:00
Lalanne Laurent
1a4bb0cc5b Merged in f5soh/librepilot/LP-538_Oplink_256k (pull request #446)
LP-538 Set correct reg.72 value for 256kbps and 150Khz Tx deviation - Cleanup

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-26 19:17:36 +00:00
Lalanne Laurent
319a7d1d38 Merged in f5soh/librepilot/LP-482_Mag_Kp (pull request #439)
LP-482 Mag Kp + LP-534 Mag source EKF

Approved-by: Alessio Morale <alessiomorale@gmail.com>
Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Brian Webb <webbbn@gmail.com>
2017-06-26 19:16:49 +00: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
Jan NIJS
43de409afc Merged in Oblivium/librepilot/LP-533_Fix_serial_receiver_input_on_Sparky2 (pull request #441)
LP-533 incorrect MCU pin used to toggle inverter for rcvr port on Sparky2

Approved-by: Vladimir Zidar <mr_w@mindnever.org>
Approved-by: Jan NIJS <dr.oblivium@gmail.com>
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-06-26 18:39:47 +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
Vladimir Zidar
ebef943762 Merged in mindnever/librepilot/LP-529_I2C_Improvements_and_bugfixes (pull request #438)
LP-529 I2C Improvements and bugfixes

Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Vladimir Zidar <mr_w@mindnever.org>
Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Brian Webb <webbbn@gmail.com>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
2017-06-26 18:38:00 +00:00
Laurent Lalanne
b15e5c0109 LP-539 OPLink : Increase USB Telemetry buffers to previous default 2017-06-26 19:48:49 +02:00
Philippe Renon
d4f7f4af49 LP-535 added ntldd package to .drone.yml (for tea ci) 2017-06-26 10:02:00 +02:00
Fredrik Arvidsson
b29409b6ca Merged in m_thread/librepilot/LP-531-QT-5.9.0 (pull request #437)
LP-531 Adds support for Qt 5.9.0

Approved-by: Philippe Renon <philippe_renon@yahoo.fr>
Approved-by: Lalanne Laurent <f5soh@free.fr>
Approved-by: Brian Webb <webbbn@gmail.com>
Approved-by: Jan NIJS <dr.oblivium@gmail.com>
Approved-by: Paul Jewell <teulupaul@gmail.com>
Approved-by: Alessio Morale <alessiomorale@gmail.com>
2017-06-26 07:45:09 +00:00
Philippe Renon
9098517693 LP-535 add ntldd to list of required msys2 packages 2017-06-26 09:14:34 +02: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
Brian Webb
c358d1741d LP-537 GPSPSystemModStart gets called from main, so it should not be called from GPSPSystemModInitialize. 2017-06-25 19:04:24 -07:00
Laurent Lalanne
95387e5df7 LP-538 Set correct reg.72 value for 256kbps and 150Khz Tx deviation - Cleanup 2017-06-25 16:06:31 +02:00
Brian Webb
081fda25a1 LP-537 Changes startup code on GPSV9 to call PIOS_Board_Init after scheduler start. 2017-06-24 15:28:04 -07:00
Brian Webb
b47a3ad393 LP-537 The LED should be configured active low on the GPSV9. 2017-06-24 15:11:41 -07:00
Brian Webb
481d9abfd8 LP-537 Remove requirement for left shifting I2C addresses on the F0 devices. This makes the I2C driver on F0 compatible with the other devices. 2017-06-24 15:08:16 -07:00
Laurent Lalanne
6d7aa87820 LP-520 Add PIOS_RCVR_TIMEOUT for failsafe state 2017-06-24 14:54:02 +02:00
Philippe Renon
ded673442c LP-496 config stabilization: copy banks from/to were reversed 2017-06-22 13:42:22 +02:00