Dr.-Ing. Amilcar Do Carmo Lucas
9b2e48ce10
AP_GPS: Improve comments (NFC)
2017-12-05 10:44:58 +09:00
Peter Barker
47f8ed7fab
AP_GPS: set GPS_SAVE_CFG default to save GPS config as required
2017-11-29 00:58:43 -07:00
Andrew Tridgell
9677d570e9
AP_GPS: faster GPS lock
...
use 9600 and 115200 first
2017-11-29 00:58:43 -07:00
Peter Barker
693823ae0d
AP_GPS: add gps() to AP:: namespace
2017-11-15 13:43:03 +00:00
Michael du Breuil
236e74c529
AP_GPS: Singleton
2017-11-06 01:33:57 +00:00
Michael du Breuil
c856cc6f33
AP_GPS: Allow GPS's to run functions on arming (used by SBF)
...
Supports starting/stopping GPS logging
2017-11-06 01:33:57 +00:00
Dr.-Ing. Amilcar Do Carmo Lucas
68828511cd
AP_GPS: Only send GPS*_RTK mavlink messages if the backend supports them
2017-10-30 18:28:20 +00:00
Dr.-Ing. Amilcar Do Carmo Lucas
e0c2a45eec
AP_GPS: support GPS_RTK and GPS2_RTK messages in Emlid reach modules. Requires Reach FW >= 2.7.4
2017-10-30 18:28:20 +00:00
Dr.-Ing. Amilcar Do Carmo Lucas
c0dd7984ad
AP_GPS: Publish information on the GPS*_RTK mavlink messages
2017-10-30 18:28:20 +00:00
Dr.-Ing. Amilcar Do Carmo Lucas
bf6778277e
AP_GPS: implement GPS*_RTK mavlink messages
2017-10-30 18:28:20 +00:00
Dr.-Ing. Amilcar Do Carmo Lucas
430b863f42
AP_GPS: Replace hardcoded duplicated end_mavlink_gps*_rtk() function with a flexible one
2017-10-30 18:28:20 +00:00
Michael du Breuil
b0e18de576
AP_GPS: Remove detect helpers for MTK/SIRF when minimizing the build
...
Removes 16 bytes
2017-10-22 03:03:29 +01:00
Michael du Breuil
0300f86913
AP_GPS: u-blox: Log unconfigured messages
2017-10-06 12:53:32 +01:00
Michael du Breuil
3023fac4d0
AP_GPS: SBF enable comment block logging
...
This is intended to help with GCS's injecting custom data to the GPS
2017-09-27 19:29:32 +01:00
Michael du Breuil
561acb372e
AP_GPS: SBF send port enable string on start
...
Also prohibts SBF, GSOF, NOVA drivers from getting config strings not
meant for them
2017-09-27 19:29:32 +01:00
Michael du Breuil
bfbec02736
AP_GPS: SBF track the GPS error bits
2017-09-27 19:29:32 +01:00
Michael du Breuil
0d522663b2
AP_GPS: SBF: fix the PVTMode to support PPK (and baseline) units
2017-09-27 19:29:32 +01:00
Michael du Breuil
80b71b9ced
AP_GPS: SBF: Validate that configuration was accepted
...
Note: The config string of "spm, Rover, StandAlone+SBAS+DGPS+RTK\n" is
incompatible with AsteRx-M FW 3.6.3 and will result in refusing to
arm/pass configuration checks
2017-09-27 19:29:32 +01:00
Michael du Breuil
20988b9f05
AP_GPS: SBF respect GPS_AUTO_CONFIG
2017-09-27 19:29:32 +01:00
Dr.-Ing. Amilcar Do Carmo Lucas
09baac8f25
AP_GPS: Preserve the instance number, otherwise it will get set to zero
...
Signed-off-by: Dr.-Ing. Amilcar Do Carmo Lucas <amilcar.lucas@iav.de>
2017-09-26 23:15:10 -07:00
Dr.-Ing. Amilcar Do Carmo Lucas
8b9fb19061
AP_GPS: Added const just to be explicit (NFC)
...
Signed-off-by: Dr.-Ing. Amilcar Do Carmo Lucas <amilcar.lucas@iav.de>
2017-09-26 23:15:10 -07:00
Dr.-Ing. Amilcar Do Carmo Lucas
175b7c5389
AP_GPS: spellcheck in coment (NFC)
2017-09-26 23:15:10 -07:00
Lucas De Marchi
b05610870c
global: use static method to construct AP_Rally
2017-09-26 03:01:21 +01:00
Lucas De Marchi
69b6d95cb2
global: use static method to construct AP_Board_Config{,_CAN}
2017-09-26 03:01:21 +01:00
Lucas De Marchi
72fd2d6f05
global: use static method to construct AP_SerialManager
2017-09-26 03:01:21 +01:00
Lucas De Marchi
8094482f21
global: use static method to construct AP_GPS
2017-09-26 03:01:21 +01:00
Lucas De Marchi
2cb2727a31
AP_GPS: add static create method
2017-09-26 03:01:21 +01:00
chobitsfan
02cfe9128d
AP_GPS: parse RTK status in NMEA GGA message
2017-09-15 22:33:47 +01:00
Michael du Breuil
2f8f2ffd2d
AP_GPS: Remove NMEA init blobs for binary drivers
...
All of the init strings that were sent in the NMEA driver are for GPS protocols
which have binary drivers, which provide far more features and are more robust.
It also appears that due to driver changes the config strings for SIRF/UBLOX
were no longer correct anyways).
2017-09-15 14:30:48 -07:00
Dr.-Ing. Amilcar Do Carmo Lucas
d3a18e803e
AP_GPS: Fix MAVLink message field SYSTEM_TIME.time_unix_usec when GPS_AUTO_SWITCH = blend
...
The mavlink message field SYSTEM_TIME.time_unix_usec works fine with GPS_AUTO_SWITCH == 0 (no switch) or ==1 (usebest)
But when GPS_AUTO_SWITCH == 2 (blend) then state[GPS_BLENDED_INSTANCE].last_gps_time_ms gets initialized with 0 and never rewritten.
The consequence: SYSTEM_TIME.time_unix_usec gets stuck at zero.
The solution: Do not reset state[GPS_BLENDED_INSTANCE].last_gps_time_ms because it would overwrite the correct value already set on line 1149
2017-09-14 12:38:30 +01:00
Dr.-Ing. Amilcar Do Carmo Lucas
e03826890a
AP_GPS: Fix typo in comment
2017-09-13 14:22:57 -07:00
Michael du Breuil
04eb7f411e
AP_GPS: Track the delta time between the last GPS positions
2017-09-13 13:36:40 +01:00
Michael du Breuil
be371e09f9
AP_GPS: SBF: Reject short packets early, allow 256 byte long messages to be decoded
2017-09-06 10:41:36 +10:00
Andrew Tridgell
048dfee68a
AP_GPS: make SBF driver more robust
...
this fixes a crash bug in the SBF GPS driver where a badly formed packet
could cause crc16_ccitt to reference invalid memory
2017-09-06 10:41:33 +10:00
Lucas De Marchi
b62e8909c4
AP_GPS: add missing fallthrough
2017-09-01 13:45:22 -07:00
Lucas De Marchi
3414883f05
AP_GPS: remove tabs and fix coding style
2017-08-22 23:59:13 -07:00
Lucas De Marchi
8389158d76
AP_GPS: use FALLTHROUGH define
...
When falling through on a case switch, allow to add an empty statement
with the correct attribute to tell the compiler this behavior is
intended.
2017-08-22 23:59:13 -07:00
Peter Barker
7f59279670
AP_GPS: make time_epoch_usec const
2017-07-28 14:27:53 +01:00
Peter Barker
e7ff5107fb
AP_GPS: tidy mavlink message handling using switch statement
2017-07-27 12:03:25 +01:00
Peter Barker
2ad453fc89
AP_GPS: handle inject packets as part of handle_msg
2017-07-27 12:03:25 +01:00
Dr.-Ing. Amilcar Do Carmo Lucas
b791fef7cb
AP_GPS: Publish the number of satellites in the RTK correction messages, and the age of the RTK correction messages
2017-07-19 20:42:23 +09:00
Dr.-Ing. Amilcar Do Carmo Lucas
ae47ac5a09
AP_GPS: implement missing "RTK number of satellites" and "RTK correction age" information in the GPS2_RAW MAVLink message
2017-07-19 20:42:23 +09:00
Dr.-Ing. Amilcar Do Carmo Lucas
059c213d19
AP_GPS: Improve comments and documentation (NFC)
2017-07-19 20:42:23 +09:00
Michael du Breuil
5684a5dd36
AP_GPS: Only setup state's instance field during init
2017-07-18 21:21:50 +01:00
Andrew Tridgell
82e7e44cc3
AP_GPS: fixed UAVCAN as 2nd GPS
...
This fixes the issue here:
https://discuss.ardupilot.org/t/ac3-6-dev-dual-gps-issues/19172
thanks to Francisco for spotting the issue
this is tested with UAVCAN as 2nd GPS, ublox as primary
2017-07-18 18:57:55 +01:00
Peter Barker
76847a2487
AP_GPS: eliminate GCS_MAVLINK::send_statustext_all
2017-07-11 23:53:53 +01:00
Michael du Breuil
cb1b9b6674
AP_GPS: Fix SBF race condition on start
...
Unsure what the underlying problem is, but the length of the first string in
the initilisation_blob increasing resulted in a race condition, waiting
longer before retrying the message resolves it, but we still need to identify
the underlying problem. This patch just results in the GPS working with current
configurations. Tested against AsteRx-M firmware 3.6.3
2017-07-11 09:40:02 +09:00
Eugene Shamaev
5341e51f45
AP_GPS: support for multiple instances on different interfaces
2017-07-03 11:44:32 +01:00
Peter Barker
cbe9627bf5
AP_GPS: correct example
2017-06-29 15:43:38 +01:00
Peter Barker
7258cfd20b
AP_GPS: check dataflash to see if we should log backend gps messages
2017-06-29 15:43:38 +01:00