Michael du Breuil
9e37e9ee82
AP_GPS: Remove unused blending function.
...
Thanks to ender-chen for noticing, closes #7510
7 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
479d4be3fd
AP_GPS: Add horizontal, vertical and speed accuracy to the GPS_RAW_INT message
7 years ago
Andrew Tridgell
d2c9e2719e
AP_GPS: removed create() method for objects
...
See discussion here:
https://github.com/ArduPilot/ardupilot/issues/7331
we were getting some uninitialised variables. While it only showed up in
AP_SbusOut, it means we can't be sure it won't happen on other objects,
so safest to remove the approach
Thanks to assistance from Lucas, Peter and Francisco
7 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
9b2e48ce10
AP_GPS: Improve comments (NFC)
7 years ago
Peter Barker
47f8ed7fab
AP_GPS: set GPS_SAVE_CFG default to save GPS config as required
7 years ago
Andrew Tridgell
9677d570e9
AP_GPS: faster GPS lock
...
use 9600 and 115200 first
7 years ago
Peter Barker
693823ae0d
AP_GPS: add gps() to AP:: namespace
7 years ago
Michael du Breuil
236e74c529
AP_GPS: Singleton
7 years ago
Michael du Breuil
c856cc6f33
AP_GPS: Allow GPS's to run functions on arming (used by SBF)
...
Supports starting/stopping GPS logging
7 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
68828511cd
AP_GPS: Only send GPS*_RTK mavlink messages if the backend supports them
7 years ago
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
7 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
c0dd7984ad
AP_GPS: Publish information on the GPS*_RTK mavlink messages
7 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
bf6778277e
AP_GPS: implement GPS*_RTK mavlink messages
7 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
430b863f42
AP_GPS: Replace hardcoded duplicated end_mavlink_gps*_rtk() function with a flexible one
7 years ago
Michael du Breuil
b0e18de576
AP_GPS: Remove detect helpers for MTK/SIRF when minimizing the build
...
Removes 16 bytes
7 years ago
Michael du Breuil
0300f86913
AP_GPS: u-blox: Log unconfigured messages
7 years ago
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
7 years ago
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
7 years ago
Michael du Breuil
bfbec02736
AP_GPS: SBF track the GPS error bits
7 years ago
Michael du Breuil
0d522663b2
AP_GPS: SBF: fix the PVTMode to support PPK (and baseline) units
7 years ago
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
7 years ago
Michael du Breuil
20988b9f05
AP_GPS: SBF respect GPS_AUTO_CONFIG
7 years ago
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>
7 years ago
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>
7 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
175b7c5389
AP_GPS: spellcheck in coment (NFC)
7 years ago
Lucas De Marchi
b05610870c
global: use static method to construct AP_Rally
7 years ago
Lucas De Marchi
69b6d95cb2
global: use static method to construct AP_Board_Config{,_CAN}
7 years ago
Lucas De Marchi
72fd2d6f05
global: use static method to construct AP_SerialManager
7 years ago
Lucas De Marchi
8094482f21
global: use static method to construct AP_GPS
7 years ago
Lucas De Marchi
2cb2727a31
AP_GPS: add static create method
7 years ago
chobitsfan
02cfe9128d
AP_GPS: parse RTK status in NMEA GGA message
8 years ago
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).
8 years ago
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
8 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
e03826890a
AP_GPS: Fix typo in comment
8 years ago
Michael du Breuil
04eb7f411e
AP_GPS: Track the delta time between the last GPS positions
8 years ago
Michael du Breuil
be371e09f9
AP_GPS: SBF: Reject short packets early, allow 256 byte long messages to be decoded
8 years ago
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
8 years ago
Lucas De Marchi
b62e8909c4
AP_GPS: add missing fallthrough
8 years ago
Lucas De Marchi
3414883f05
AP_GPS: remove tabs and fix coding style
8 years ago
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.
8 years ago
Peter Barker
7f59279670
AP_GPS: make time_epoch_usec const
8 years ago
Peter Barker
e7ff5107fb
AP_GPS: tidy mavlink message handling using switch statement
8 years ago
Peter Barker
2ad453fc89
AP_GPS: handle inject packets as part of handle_msg
8 years ago
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
8 years ago
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
8 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
059c213d19
AP_GPS: Improve comments and documentation (NFC)
8 years ago
Michael du Breuil
5684a5dd36
AP_GPS: Only setup state's instance field during init
8 years ago
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
8 years ago
Peter Barker
76847a2487
AP_GPS: eliminate GCS_MAVLINK::send_statustext_all
8 years ago
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
8 years ago