76 Commits

Author SHA1 Message Date
Nyall Dawson
41553459d8 [gps] Be tolerant to talker IDs which don't start with 'G'
From the nmea specifications it is clear that the talker ID
does not have to start with 'G'. Accordingly remove ALL these
incorrect hardcoded checks against (a very small subset) of
known talker IDs, and permit any two-character string
as a valid talker ID

Fixes connection to NMEA devices which use "IN" for
talker ID (and others)
2024-10-19 06:21:20 +10:00
Nyall Dawson
b39f760cbc
Correctly handle multiline SIP_OUT param documentation 2024-09-10 11:11:25 +10:00
Nyall Dawson
1a974f5841 Update 2024-09-02 11:42:12 +10:00
Nyall Dawson
ef0289f3ec Fix formatting of Python ..deprecated annotations in docstrings
Fixes https://github.com/qgis/pyqgis-api-docs-builder/issues/174
2024-09-02 11:42:12 +10:00
Nyall Dawson
3a578d6712 Header update 2024-08-13 20:28:55 +10:00
Nyall Dawson
28943f9c1b Remove a bunch of useless default constructor doxygen 2024-07-23 02:08:28 +10:00
Nyall Dawson
d87644c7db Add GPS navigation status to QgsGpsInformation 2024-05-10 06:09:15 +10:00
Nyall Dawson
94697e8176 Rework QgsGpsDetector to make it memory safe
This is messy, as there's no way we can possibly make the current,
stable API of this class safe. We have to resort to an opt-in
"safe" mode which exposes a non-dangerous API.

This should hopefully fix issues where the qt event loop causes
destruction of the detected connection before listener slot is
called and is able to take ownership of the signal argument...
2024-03-13 12:54:21 +10:00
Even Rouault
a5c8f01003
Header files: remove all mentions of '\since QGIS 1.' 2024-02-18 20:46:00 +01:00
Nyall Dawson
50c76929e1
Followup 30700f1, ensure links to Qgis members are set in docstrings 2023-03-31 10:46:24 +10:00
Nyall Dawson
046883fa9c Promote QgsWkbTypes enums to enum class, move to Qgis 2023-02-22 12:39:21 +10:00
Denis Rouzaud
828e014a26 forward declaration of settings 2023-02-03 09:05:37 +01:00
Denis Rouzaud
46a3684ef1 code layout 2023-01-25 21:17:50 +01:00
Denis Rouzaud
8d405e6f65 sipify 2023-01-25 12:50:12 +01:00
Denis Rouzaud
56c388b305 [settings] migrate QgsGpsDetector settings 2023-01-25 12:47:48 +01:00
Denis Rouzaud
72387f63a4 remove settings from bindings 2023-01-16 09:00:52 +01:00
Denis Rouzaud
bd9cd8eb0f move settings init to source files 2023-01-16 09:00:51 +01:00
Mathieu Pellerin
2aacff1d46
[gps] Catch NMEA UTC times for date-less streams (#51346) 2023-01-01 12:31:15 +00:00
Denis Rouzaud
8ca06eaa96
Merge branch 'master' into settings-registry-migration-core-2 2022-12-09 11:21:52 +01:00
Nyall Dawson
2cecb3fc5d Add API to allow storage of GPS component information in recorded
track/point geometry m values
2022-12-08 15:07:12 +10:00
Denis Rouzaud
99a1390a19 migrate babel devices settings 2022-12-05 10:57:40 +01:00
Nyall Dawson
4afcddf739 Refactor to move gps logged positions to QgsGeometry method out
to base class
2022-11-23 13:54:18 +10:00
Nyall Dawson
3e818b942b Split out qgsgpsconnection files into modular components 2022-11-17 20:13:41 +10:00
Nyall Dawson
cdffe2ef90 Add option to skip edit buffer when logging GPS to vector layer 2022-11-16 20:13:43 +10:00
Nyall Dawson
281f1d0d0c Make QgsVectorLayerGpsLogger API easier to use, and add capacity
to store all GPS information components
2022-11-14 18:00:29 +10:00
Nyall Dawson
b572e54622 Add more GPS component flags 2022-11-14 18:00:29 +10:00
Nyall Dawson
09b0d0c2ed Fix build 2022-11-14 18:00:29 +10:00
Nyall Dawson
14930d87e1 Sipify 2022-11-14 18:00:29 +10:00
Nyall Dawson
3e532a3897 Fix clang warning 2022-11-14 18:00:29 +10:00
Nyall Dawson
154ab209ce Hook up feature creation in QgsVectorLayerGpsLogger 2022-11-14 18:00:29 +10:00
Nyall Dawson
d5c05e3b17 Refactor out GPS logging classes, so that they share a common base class
Moves GPS track logging logic out of app and into core so that it
can be resused in a generic way.
2022-11-14 18:00:29 +10:00
Nyall Dawson
669fb4b9c0 Add layer fields to QgsGpsLogger 2022-11-14 18:00:29 +10:00
Nyall Dawson
f902248a84 Fix dox 2022-11-14 18:00:29 +10:00
Nyall Dawson
6571b9b573 Empty structure for logger 2022-11-14 18:00:29 +10:00
Nyall Dawson
cc7e5e3769 [gps][feature] Add an explicit "Offset from UTC" option for
storing GPS feature timestamps

This option allows users to manually enter a desired offset from
UTC for storing GPS time stamps. This allows for full flexibility
for users who need to account for daylight savings offsets or
other complex time zone issues.

Sponsored by NIWA
2022-11-08 18:52:17 +10:00
Nyall Dawson
b436282b59 Add GPS Component enum, useful for referring to specific pieces
of GPS information in a generic way
2022-11-08 18:43:39 +10:00
Nyall Dawson
2d4e6ce0e5 Use settings registry for all gps settings 2022-11-04 11:24:05 +10:00
Nyall Dawson
16e81df0aa Record last valid location in GPS connection and add changed signal 2022-11-01 16:08:15 +10:00
Nyall Dawson
fa185872cb Add constellation information to QgsGpsInformation and handle GPS fix type across different constellations 2022-11-01 16:08:15 +10:00
Nyall Dawson
3a89b5505b Add fix status changed signal to QgsGpsConnection 2022-10-31 17:22:54 +10:00
Nyall Dawson
f79eaf61e8 Cleanup GPS fix status handling, remove duplicate code 2022-10-31 17:22:54 +10:00
Nyall Dawson
5840af01dc [gps] Move 'calculate bearing from travel direction' setting to
options GPS pane
2022-10-27 13:37:14 +10:00
Nyall Dawson
2223e19f63 [gps] Move GPS track point filtering settings to settings GPS pane
These are infrequently changed settings
2022-10-27 13:37:14 +10:00
Nyall Dawson
4c3ab10058 [gps] Move GPS connection settings from GPS information panel
to GPS options tab in QGIS settings

This is a more of a "set once and forget" setting, vs something
which needs to be frequently changed and always right in the user's
face.
2022-10-27 13:37:14 +10:00
Mauro Bettella
c8192cb71c
Added GNSS constellation abbreviation (#50205) 2022-09-16 06:58:07 +10:00
Mathieu Pellerin
52a34cc7b7 [positioning] Add missing equal-to operator to the QgsSatelliteInfo class 2022-07-08 10:05:10 +10:00
Mathieu Pellerin
5bbad02806 [nmea] Convert RMC mode indicator to its equivalent signal variant to provide accurate quality description 2022-03-28 13:57:22 +07:00
Juergen E. Fischer
c6008b7ee1 fix MSVC build: reverts fee62e4, dff05dd and e3a77b9484c effectivly
reverting 3fb0f66 (followup #45348)

Using --no-public-is-protected (default on Windows) also works on Linux
and fixes #45331 too
2021-10-21 23:03:48 +02:00
nirvn
ef84e48a09 Run sipify_all.sh 2021-10-12 16:34:05 +10:00
Denis Rouzaud
ec16736306 run sipify 2021-10-12 16:34:05 +10:00