Siddharth Purohit
d122f00c14
AP_GPS: redetection not necessary for UAVCAN GPS
5 years ago
Tom Pittenger
8f6e9caf93
AP_GPS: change GPS_AUTO_SWITCH #define list to enum class
...
enumeration entry had to change to NONE to avoid name conflict with DISABLED
5 years ago
Andrew Tridgell
78858bbcdd
AP_GPS: switch ublox over to 230400 baud
...
this ensures we have sufficient bandwidth for raw data
5 years ago
Andrew Tridgell
529bfe8fcd
AP_GPS: fixed issue with GPS selection for moving baseline
...
when you have a moving baseline pair of ublox GPS modules and the
rover GPS does not have full fixed RTK lock on the base GPS then we
should not use it as our primary GPS as it's position and velocity can
be badly affected by the attempts of the GPS to gain a fixed lock.
This was observed in a flight with two F9P GPS, where the GPS velocity
data from the rover GPS went way off when it lost full RTK lock. It's
status stayed at 4, so it was selected as the primary GPS
5 years ago
Andrew Tridgell
4f591a338f
AP_GPS: use GCS_SEND_TEXT()
5 years ago
Andrew Tridgell
f3a5d915f3
AP_GPS: allow for larger average delta on MB rover than normal
5 years ago
Andrew Tridgell
36098c3221
AP_GPS: improved delay health threshold
...
allow for missing frames without showing unhealthy on GCS
5 years ago
Andrew Tridgell
7027eecd34
AP_GPS: added GPS_DRV_OPTIONS
...
this allows for configuration of moving baseline with either uart1 or
uart2 for the RTCM data. Using uart2 requires an extra cable between
the two modules, but requires less uart bandwidth which is good when
DMA channels are low. Using uart2 also avoids the rtcmv3 parser, which
saves memory
5 years ago
Andrew Tridgell
077ab22767
AP_GPS: fixed AP_Periph build with gcc 9.x
5 years ago
Andrew Tridgell
f00314a5d1
AP_GPS: removed dead blending code
5 years ago
Andrew Tridgell
9fa034d1de
AP_GPS: fixed antenna offset for blending
...
we were accessing beyond the end of the antenna_offset array
5 years ago
Randy Mackay
a19634b9d2
AP_GPS: reduce POS param range to 5m and add increment
5 years ago
Andrew Tridgell
f0d1d3fa90
AP_GPS: added get_semaphore()
5 years ago
Andrew Tridgell
db777c56b9
AP_GPS: provide yaw feedback in GPS_RAW_INT and GPS2_RAW
...
allow GPS to display status of GPS yaw for moving baseline and NMEA
5 years ago
Andrew Tridgell
e660532f67
AP_GPS: fixes from PR review
5 years ago
Andrew Tridgell
b86c43aa66
AP_GPS: prefer RTK MB rover when it has yaw available
...
this ensures that yaw data is time aligned with position and velocity
data
5 years ago
Andrew Tridgell
261465ef96
AP_GPS: split out update_primary() from update()
...
this makes the selection of primary GPS a lot clearer, with less
nesting of if statements
5 years ago
Andrew Tridgell
93aaf98672
AP_GPS: added automatic u-blox moving baseline configuration
...
this uses GPS_TYPE and GPS_TYPE2 to setup two u-blox F9 receivers in a
RTK moving baseline configuration
5 years ago
Michael du Breuil
f8808022b8
AP_GPS: Check the driver logging health
5 years ago
Andrew Tridgell
632114d687
AP_GPS: support RTCMStream for RTCM injection on UAVCAN
5 years ago
Michael du Breuil
d623da0de6
AP_GPS: Always send GPS2_RAW after we've seen the second GPS
...
This significantly improves the GCS's ability to correctly display whats
happening with the second GPS.
5 years ago
Michael du Breuil
5bafd7d72c
AP_GPS: Don't defeat the GCS message interval code
5 years ago
Andrew Tridgell
14cdac9202
AP_GPS: fixed GPS to UART mapping
...
this allows for first GPS as UAVCAN and 2nd as UART. That is not
possible currently unless you waste a uart
5 years ago
Andrew Tridgell
00260db65a
AP_GPS: fixed UAVCAN GPS status when disconnected
...
this fixes the status reported for a UAVCAN GPS when the cable is
unplugged. It should be "NO GPS", but was instead reporting "NO
FIX". The user had no way to distinguish between not finding a CAN GPS
at all and it not getting satellites
thanks to CUAV for reporting
5 years ago
Michael du Breuil
f857eb4640
AP_GPS: Take responsibility for logging the GPS if the EKF wants logging
5 years ago
Michael du Breuil
ca0dad9a7f
AP_GPS: Directly include needed headers
6 years ago
Andrew Tridgell
291d72601b
AP_GPS: enabled reduced size for AP_Periph support
6 years ago
Andrew Tridgell
be9c98db12
AP_GPS: ensure we have full timestamp before setting RTC clock
...
thanks to Martin Sollie for this bug report
6 years ago
Michael du Breuil
d33006a2e7
AP_GPS: Refactor first_unconfigured_gps to return bool
6 years ago
Pierre Kancir
13ac187fd8
AP_GPS: pass mavlink_message_t by const reference
6 years ago
Grant Morphett
64ed76326b
AP_GPS: Adding support for the NMEA GPHDT sentence
...
The NMEA GPHDT sentence can be used to determine the vehicles bearing
instead of a compass even when the vehicle is stationary. This type
of GPS is normally very expensive and does the bearing using some sort
of phase ambituity algorithm.
6 years ago
Michael du Breuil
7871040bb6
AP_GPS: Pass an in range value for the param initilizer
6 years ago
Michael du Breuil
e6d97f63a5
AP_GPS: Remove unneeded wrappers
6 years ago
Pierre Kancir
36f12e9818
AP_GPS: use get_distance_NED
6 years ago
Pierre Kancir
4ea10ce5f5
AP_GPS: use get_distance_NE instead of location_diff
6 years ago
Michael du Breuil
27ad9ac3ca
AP_GPS: Refactor get_singleton() to return a pointer
6 years ago
Michael du Breuil
52eb832883
AP_GPS: Remove stuff from headers
6 years ago
Tom Pittenger
12c3446777
AP_GPS: rename dataflash to logger
6 years ago
Francisco Ferreira
ba5ef18ef7
AP_GPS: correct blending check
6 years ago
Francisco Ferreira
cb1ce70ae8
AP_GPS: fix out-of-bounds array access
6 years ago
Dr.-Ing. Amilcar do Carmo Lucas
d7edd396bd
AP_GPS: replace location_offset() and get_distance() function calls with Location object member function calls
...
This allows removing duplicated code
6 years ago
Tom Pittenger
5d66c3ed62
AP_GPS: unify singleton naming to _singleton and get_singleton()
6 years ago
Ben Kurtz
08092ea72b
AP_GPS: fix typo in log message
6 years ago
Peter Barker
6fc76a32af
GLOBAL: use AP::logger() and strip redundant Log_ from methods
6 years ago
Peter Barker
b47733142f
GLOBAL: rename DataFlash_Class to AP_Logger
6 years ago
Peter Barker
30980815a8
AP_GPS: adjust for Location_Class and Location unification
6 years ago
Peter Barker
30d5d6b578
AP_GPS: do not zero options after assigning from location
...
On the assumption that the assignment operator knows what it is doing,
and that we have no idea what fields are actually present in options
6 years ago
Randy Mackay
c7287bb98f
AP_GPS: add range to POS param description
6 years ago
Andrew Tridgell
3fe4b9c0f8
AP_GPS: make GPS packet timestamps more accurate
...
this reduces the effect of processing time and uart transmit time
6 years ago
Michael du Breuil
d6944510da
AP_GPS: Suppress clearing non-trival type warning
6 years ago