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
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
430b863f42
AP_GPS: Replace hardcoded duplicated end_mavlink_gps*_rtk() function with a flexible one
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
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
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
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
ae47ac5a09
AP_GPS: implement missing "RTK number of satellites" and "RTK correction age" information in the GPS2_RAW MAVLink message
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
Eugene Shamaev
5341e51f45
AP_GPS: support for multiple instances on different interfaces
8 years ago
Peter Barker
7258cfd20b
AP_GPS: check dataflash to see if we should log backend gps messages
8 years ago
Rob Ratcliff
60c6f8ad60
AP_GPS: fix bug when injecting messages bigger than 255 bytes
...
Commit 5261654
changed the used injection method so change this method signature to use uint16 for message length like previous injection method did
8 years ago
Michael du Breuil
249849dfa4
AP_GPS: Add an enum for _auto_config
8 years ago
Michael du Breuil
5f8633e322
AP_GPS: Allow backends to report their lag confidences
8 years ago
priseborough
5dcfc94371
AP_GPS: Add validity boolean to GPS lag reporting
8 years ago
priseborough
bd0229b7bc
AP_GPS: Fix bug in calculation of blended GPS delay
8 years ago
Michael du Breuil
6c3db3939e
AP_GPS: Update comment on get_rate_ms()
...
AP_GPS::get_rate_ms() is only meant to help the GPS backends
8 years ago
Michael du Breuil
ffe701bda3
AP_GPS: Use a static assert to check that the init blob is small enough
8 years ago
Michael du Breuil
1877d09f7c
AP_GPS: Don't track detection time to broadcast baud rate
8 years ago
Michael du Breuil
84598544fb
AP_GPS: Don't autodetect NMEA instances
8 years ago
Michael du Breuil
c7a89d5aa0
AP_GPS: Set unknown DOP's to UINT16_MAX, rather then 9999
...
This fixes the MAVLink reporting for unknown dops, and avoids the situation where a GPS driver could report a worse DOP then we could handle.
Also corrects an apparent error in the HIL_GPS MAVLink message, where we would always select the unknown dop value rather then provided DOP.
8 years ago
Michael du Breuil
397ae00526
AP_GPS: SBF report VDOP
8 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
2d5033b132
AP_GPS: Use SI units conventions in parameter units
...
Follow the rules from:
http://physics.nist.gov/cuu/Units/units.html
http://physics.nist.gov/cuu/Units/outside.html
and
http://physics.nist.gov/cuu/Units/checklist.html
one further constrain is that only printable (7bit) ASCII characters are allowed
8 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
e31ac00f26
AP_GPS: fix spelling in comments
8 years ago
Andrew Tridgell
3687b6bdf0
AP_GPS: rename macros to avoid conflicts
...
these macros were also defined in NuttX in clock.h
8 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
5b67b33310
AP_GPS: Remove un-used AP_GPS::inject_data_all() function
8 years ago
Dr.-Ing. Amilcar Do Carmo Lucas
5261654756
AP_GPS: Only inject RTCM data to the selected GPS device defined in GPS_INJECT_TO parameter
8 years ago
Peter Barker
b7baca8d43
AP_GPS: move GPS type announcements into backend
...
See #4584
8 years ago
Peter Barker
2354a0ec5a
AP_GPS: ability to log GPS detection state to dataflash
8 years ago
Peter Barker
94a5e94ec9
AP_GPS: canonicalise statustext messages
...
Use "GPS %d" prefix, where %d is instance+1, to correspond
with parameters
8 years ago
Niels Joubert
4bf9fc071c
AP_GPS: Adds SBP Version 2: Swift Navigation Piksi Multi support
...
This commit adds:
- New driver for SBPv2
--- Support Piksi Multi, Swift Navigation's multi-band multi-constellation GPS
--- Proper parsing of SBP flags
--- Instant response to Piksi status changes (no more timeouts)
--- Support for Piksi Multi as a Single-Point-Positioning GPS or only onboard GPS
--- Incorporates horizontal and vertical accuracy estimates, and vdop.
- Updates driver for SBPv0
--- Continue support for previous Piksi
- Dispatches correct driver based on SBP version.
8 years ago
Eugene Shamaev
8130d85b42
AP_GPS: removal of legacy UAVCAN support
8 years ago
Eugene Shamaev
dfe9b0e6fc
AP_GPS: support for UAVCAN connected GNSS receivers
8 years ago
Jacob Walser
1b00dfb642
AP_GPS: Fix parameter metadata
8 years ago
Pierre Kancir
afb488c627
AP_GPS: fix implicit conversion warning from float to double
8 years ago