1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-29 07:24:13 +01:00
LibrePilot/flight
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
..
libraries LP-512 Cleaned up buzzer configuration and usage for boards with dedicated buzzer port. 2017-06-02 11:46:29 +02:00
make LP-512 Addressed remainging PR comments. 2017-05-30 16:31:39 +02:00
modules LP-536 skip informational UBX packets that are too large to fit buffers 2017-06-28 03:06:32 +02:00
pios Merged in f5soh/librepilot/LP-538_Oplink_256k (pull request #446) 2017-06-26 19:17:36 +00:00
Project LP-512 Addressed most of the PR comments. 2017-05-26 01:06:31 +02:00
targets Merged in f5soh/librepilot/LP-520_OPlink_RSSI_PPMoutput (pull request #428) 2017-06-26 19:16:28 +00:00
templates OP-1477 - remove debug infos and add send some relevant informations using SYS message (firmware and board revision/info) 2014-09-24 01:06:41 +02:00
tests LP-368 - Add coordinate conversion functions, perform some cleanup/optimization 2016-08-28 22:44:53 +02:00
uavobjects 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
uavtalk OP-1841 - Check available size at each step to avoid overrun 2015-04-20 05:48:39 +02:00
.gitattributes Update flight/.gitattributes to include *.template files 2013-04-30 22:15:58 +02:00
Makefile Merged in f5soh/librepilot/LP-486_enable_BL_Gpsv9 (pull request #429) 2017-06-04 19:18:03 +00:00