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
Siddharth Purohit
ca54123b7d
AP_GPS: move UAVCAN GPS related code to AP_GPS_UAVCAN backend
7 years ago
Dr.-Ing. Amilcar do Carmo Lucas
9c97f35b19
AP_GPS: Use GPS_AUTO_SWITCH parameter to choose exacly which GPS to use
7 years ago
Francisco Ferreira
b29369eb82
AP_GPS: adapt to changes in AP_BoardConfig_CAN
7 years ago
Michael du Breuil
1a406dacfc
AP_GPS: Ensure a lag value is always provided
...
The value may not be the optimal value for the driver, but we should
always try to provide a value for the caller
7 years ago
Peter Barker
5b41db5120
AP_GPS: use AP_RTC
...
set the system time from a GPS if we have a 3D fix or better
7 years ago
Eugene Shamaev
9985d4a937
AP_GPS: uniform naming
7 years ago
Eugene Shamaev
9f27a65f4b
AP_GPS: helper func
7 years ago
Eugene Shamaev
a805b3ce18
AP_GPS: reducing indenting by linearizing the logic
7 years ago
Francisco Ferreira
5fc7da0e83
AP_GPS: remove Qualcomm board support
7 years ago
Peter Barker
643e7e039a
AP_GPS: log received data
...
Also log a set of flag values if a driver is deleted
7 years ago
Patrick José Pereira
a255c47c33
AP_GPS: Do not restart driver if type is defined as MAV
...
Fix bluerobotics/ardusub#104
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
7 years ago
Tom Pittenger
793f50808d
AP_GPS: add param defaults for EMLID_EDGE for GPS_TYPE=9
7 years ago
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