Andrew Tridgell
c453ff1ce2
AP_GPS: fixed vertical velocity with AGRICA support
...
and add health check for unicore GPS
2022-12-20 10:23:58 +11:00
Andrew Tridgell
55683c51f5
AP_GPS: review changes
2022-12-20 10:23:58 +11:00
Andrew Tridgell
d2d6dc8ce4
AP_GPS: only give time if we have a 3D fix
...
and ensure we configure rate for GGA and RMC for Unicore
2022-12-20 10:23:58 +11:00
Andrew Tridgell
6c9cbe1a58
AP_GPS: fixed NMEA time reporting
...
basic NMEA does not have an itow, so we need to use time_week_ms
this caused us to always display the time as the start of the GPS week
on NMEA
2022-12-20 10:23:58 +11:00
Andrew Tridgell
a7c5c6b728
AP_GPS: allow for disabling of NMEA Unicore support
2022-12-20 10:23:58 +11:00
Andrew Tridgell
2837471ddf
AP_GPS: fixed build without GPS_MOVING_BASELINE
2022-12-20 10:23:58 +11:00
Andrew Tridgell
02d6931c4d
AP_GPS: fixed re-probing of NMEA GPS
...
when we lost fix on a NMEA GPS we should retain the driver as long as
it is still sending us NMEA messages that pass the CRC check. This
fixes a bug where we would re-probe the GPS (searching baudrates) when
we lost position
2022-12-20 10:23:58 +11:00
Andrew Tridgell
ad9dfe2d51
AP_GPS: added support for Unicore NMEA GPS
...
this includes dual-antenna moving baseline support, 3D velocity and accuracies
2022-12-20 10:23:58 +11:00
Andrew Tridgell
b9642b549b
AP_GPS: make GPS_MB parameters clearer
...
offsets are from the 2nd antenna to the base (primary) antenna
2022-12-20 10:23:58 +11:00
Peter Barker
a874938636
AP_GPS: fix GPS_AUTO example
2022-12-15 21:05:35 +11:00
Andrew Tridgell
b12cd48843
AP_GPS: improve support for uBlox-M10
...
this sets up the M10 to use the BaiDou B1C signal instead of B1, and
disables glonass. This is needed to get a consistent 5Hz lock
2022-11-22 19:51:01 +11:00
Peter Barker
6a64b56b0d
AP_GPS: fix SIRF defines
...
this allows SIRF to be included even on minimised boards if it is requested
2022-11-09 18:44:40 +11:00
Andrew Tridgell
9ec13be880
AP_GPS: fixed injection of RTCM on 2 different CAN buses
...
if we have two CAN GPS on difference can drivers we need to inject to
both
2022-11-09 09:05:33 +11:00
Andrew Tridgell
f84e0c9e8b
AP_GPS: disable GPS lag checking in AP_Periph
...
it is much more useful to check on the flight controller, not on the
periph, or users just get mysterious failures
2022-11-08 11:39:20 +11:00
Michael du Breuil
6b0dd7e689
AP_GPS: Fix novatel driver to handle DOP correctly, and fix overly optimistic horizontal accuracy estimate
2022-10-18 10:06:46 +11:00
Andrew Tridgell
6f805cb537
AP_GPS: fixed resolution of KSXT parsing for NMEA
...
needs to be double precision for lat/lon
2022-10-15 17:20:42 +11:00
Andrew Tridgell
4812b67ad6
AP_GPS: added logging to more serial GPS backends
2022-10-15 17:20:42 +11:00
Andrew Tridgell
5cd1aeaf38
AP_GPS: improve GPS debug logging
...
use timestamped data allowing for much more precise playback
2022-10-15 17:20:42 +11:00
jackhong12
4a4f361a17
all: use CLASS_NO_COPY() macro
2022-10-04 11:23:04 +11:00
Peter Barker
f225592f48
AP_GPS: use default case for sending blob
...
This structure avoids a compiler warning that a statement isn't reachable when all backends are compiled out.
2022-09-29 20:00:53 +10:00
Peter Barker
288089a158
AP_GPS: no init blobs for SBF/GSOF/NOVA/SITL
2022-09-29 20:00:53 +10:00
Peter Barker
3a3f9bdb84
AP_GPS: cycle through baud rates for SBF/GSOF/NOVA/SITL
2022-09-29 20:00:53 +10:00
Andrew Tridgell
fde5c35d35
AP_GPS: removed the old DroneCAN Fix message
...
only send/process Fix2 message, saving bus bandwidth and flash space
2022-09-28 17:27:32 +10:00
Henry Wurzburg
d31f6c2f57
AP_GPS: remove incorrect build option on GPS_DRV_OPTIONS param
2022-09-05 12:48:51 +10:00
Andrew Tridgell
8014f96235
AP_GPS: fixed handling of DroneCAN GPS without vertical velocity
...
detect first vertical velocity to set flag
2022-08-23 11:17:06 +10:00
Andrew Tridgell
cdf8cad801
AP_GPS: fixed undulation for DroneCAN GPS
2022-08-10 05:04:18 +10:00
Joshua Henderson
378dff5568
AP_GPS: added get_undulation support
2022-08-09 14:37:08 +10:00
Iampete1
51540359e6
AP_GPS: params always use set method
2022-08-03 13:43:48 +01:00
Peter Barker
b4bee6a510
AP_GPS: correct compilation when all serial backends compiled out
2022-07-26 10:30:43 +10:00
Peter Barker
96b4945eb9
AP_GPS: move explanation of ublox rates into ublox header
2022-07-26 10:30:43 +10:00
Tamas Nepusz
6ca593a61d
AP_GPS: Do not drop reassembly buffer for injected packets when a dupllicate fragment is received
2022-07-22 20:40:21 +10:00
Peter Barker
01751fba60
AP_GPS: move defaulting of AP_GPS_UBLOX_ENABLED to AP_GPS_config
...
Addition of this define crossed with another PR which created the config.h file
2022-07-19 10:14:18 +10:00
Peter Barker
10bc615b57
AP_GPS: add include for GCS_MAVLink.h
...
The initialisation of the GPS_Fix enumeration is made from the mavlink headers.
We should probably move away from this, converting from our own enumeration to the mavlink enumeration when required (emitting mavlink packets and receiving in AP_GPS_MAV)
2022-07-13 18:32:35 +10:00
Iampete1
71b00e0f75
AP_GPS: use config.h pattern and only include log structures if enabled
2022-07-13 18:14:12 +10:00
Peter Barker
00329ae443
AP_GPS: stop reading arbitrary amounts of data in GPS init
...
We don't like doing this in other places as the vehicle can go out to
lunch for arbitrary periods of time
2022-07-13 17:56:38 +10:00
Peter Barker
b88f414320
AP_GPS: allow UBLOX driver to be compiled out
2022-07-13 17:56:38 +10:00
Peter Barker
e858a0fab7
AP_GPS: factor out a _detect_instance method
...
This means we don't need the goto to handle the case of a detected GPS,
and it also allows for restructure remove the "else" statements, which
will allow compilinmg out the uBlox driver
2022-07-13 17:56:38 +10:00
Peter Barker
c2091fdef5
AP_GPS: fix clang++ warnings on static inits
...
these are static variables so don't need zeroing anyway...
2022-06-28 10:20:30 +10:00
Andrew Tridgell
06a9a1521c
AP_GPS: added GPS_DRV_OPTIONS bit for ellipsoid height
2022-06-15 17:30:28 +10:00
Andrew Tridgell
509f03f946
AP_GPS: cleanup driver option access
...
use option_set() to make code clearer
2022-06-15 17:30:28 +10:00
Andrew Tridgell
6832eab8a5
AP_GPS: fixed build without logging
2022-06-06 14:50:40 +10:00
Peter Barker
9857954529
AP_GPS: tidy includes
2022-05-03 09:14:58 +10:00
Peter Barker
ccca0e8e0f
AP_GPS: stop using HAL_BUILD_AP_PERIPH to gate GPS backends
2022-04-13 18:23:51 +10:00
Peter Barker
e0a96eaa83
AP_GPS: remove more code based on GPS_MOVING_BASELINE
2022-04-12 11:20:01 +10:00
Peter Barker
aa72559d00
AP_GPS: tidy initialisation of sending blobs
2022-04-12 11:20:01 +10:00
Peter Barker
4b6590734a
AP_GPS: move gps blob initialisation out to method
2022-04-12 11:20:01 +10:00
Peter Barker
c2112565b5
AP_GPS: remove redundant _blend_mask check
...
filling in of these values is already gated by checking the mask
2022-04-06 17:31:42 +10:00
Peter Barker
4332ed8f36
AP_GPS: use sq function for squaring numbers
2022-04-06 17:31:42 +10:00
Iampete1
2589fa1b3b
AP_GPS: UBlox: add TIM-TM2 logging
2022-04-06 17:22:30 +10:00
Peter Barker
cafad05b38
AP_GPS: rearrange send-text for consistency
2022-03-27 06:21:20 -07:00
Peter Barker
88feb74762
AP_GPS: improve parameter documentation in UAVCAN GPS
2022-03-27 06:21:20 -07:00
BhumilDepani
8fa6432e3a
AP_GPS: added comments in GPS_AUTO_test example sketch
...
Added comments in libraries/AP_GPS/examples/GPS_AUTO_text/GPS_AUTO_test.cpp file
AP_GPS: added comments to GPS_AUTO_test example sketch
Added comments in libraries/AP_GPS/examples/GPS_AUTO_text/GPS_AUTO_test.cpp file
AP_GPS: added comments to GPS_AUTO_test example sketch
AP_GPS: add comments to GPS_AUTO_text example sketch
AP_GPS: added comments in GPS_AUTO_test example sketch
2022-03-24 22:07:36 +11:00
bugobliterator
79c45049e0
AP_GPS: only use PPS time when there is atleast 2D Fix
2022-03-23 19:10:47 +11:00
Andrew Tridgell
feb9e78f00
AP_GPS: prevent switching to a dead GPS
...
when we switch away from the blended GPS instance we need to ensure we
don't switch to a GPS that is timing out, and may be the instance that
is triggering the disable of blending
2022-03-22 10:10:07 +11:00
Peter Barker
a9aa5c2d60
AP_GPS: add a new AP_GPS_SITL object
2022-03-17 14:39:55 +11:00
Peter Barker
8d6e442997
AP_GPS: include cleanups
2022-03-01 11:21:33 +11:00
bugobliterator
3598724378
AP_GPS: change time_epoch_convert to istate_time_to_epoch_ms
2022-02-03 06:45:35 +11:00
bugobliterator
244b8ed358
AP_GPS: change _last_itow to _last_itow_ms
2022-02-03 06:45:35 +11:00
bugobliterator
d3d3c826f7
AP_GPS: set _last_itow alongside state.last_corrected_gps_time_us
2022-02-03 06:45:35 +11:00
bugobliterator
e77bb74f9b
AP_GPS: remove unnecessary multiply with 1000ULL in time_epoch_usec
2022-02-03 06:45:35 +11:00
Peter Barker
60b8277e1b
AP_GPS: create and use AP_GPS_BACKEND_DEFAULT_ENABLED
...
Allows for all backends to be set to off by default.
2022-02-01 11:22:02 +11:00
Peter Barker
c463036706
AP_GPS: write config blob out as chunk rather than iterating
2022-01-30 13:24:45 +11:00
bugobliterator
46294c0fba
AP_GPS: sync pps rate with message rate
2022-01-20 17:26:35 +11:00
bugobliterator
49b767b24e
AP_GPS: add support for correcting GPS times while using DroneCAN GPS
2022-01-20 17:26:35 +11:00
bugobliterator
49bf4fa27b
AP_GPS: move to using last_corrected_gps_time_us instead of uart_timestamp_us
2022-01-20 17:26:35 +11:00
bugobliterator
9834304525
AP_GPS: make more precise calculation of gps message
...
use PPS signal if available as well
2022-01-20 17:26:35 +11:00
Peter Barker
c5f21664db
AP_GPS: correct compilation when SIRF disabled
2022-01-14 11:49:01 +11:00
Peter Barker
8d17b8dbe7
AP_GPS: use const structure for saving GPS config
2022-01-12 18:29:01 +11:00
Peter Barker
1943de9016
AP_GPS: tidy configuration of UBLOX rates
2022-01-12 18:29:01 +11:00
Hwurzburg
3d4f6cc2c4
AP_GPS: add build options for GPS backends
2022-01-12 16:17:21 +11:00
Andrew Tridgell
09cd7558c3
AP_GPS: drop default GPS lag to 0.1s
...
this impacts UAVCAN GPS modules, which these days usually have at
least u-blox M8
2022-01-12 07:54:46 +11:00
Andrew Tridgell
135c88d474
AP_GPS: use KSXT for position and alt when available
...
this gets velocity and position from the same message for more
consistency
2022-01-11 10:34:11 +11:00
Andrew Tridgell
9d21c0b6c1
AP_GPS: added GPS data logging system
...
for debugging GPS protocols
2022-01-11 10:34:11 +11:00
Andrew Tridgell
27cec48b82
AP_GPS: support KSXT message for Unicore NMEA
...
this gives both yaw and 3D velocity
2022-01-11 10:34:11 +11:00
Andrew Tridgell
3f160b4910
Revert "AP_GPS: drop default GPS lag to 0.1s"
...
This reverts commit 1e60d2557b
.
2022-01-04 19:02:54 +00:00
Andrew Tridgell
1e60d2557b
AP_GPS: drop default GPS lag to 0.1s
...
this impacts UAVCAN GPS modules, which these days usually have at
least u-blox M8
2022-01-03 16:39:07 -08:00
Jaaaky
6433547592
AP_GPS: Fix multi #include's
2021-12-21 10:38:46 +11:00
Hwurzburg
35cc90d117
AP_GPS: change UAVCAN in metadata to DroneCAN
2021-12-15 09:53:21 +11:00
Peter Barker
065cb2decb
AP_GPS_UBLOX: tidy reading of uart data
...
Neither of the return types used for data and numc were actually correct for the values being returned from the uartdriver functions.
2021-11-09 10:31:25 +11:00
Michael du Breuil
f08866639e
AP_GPS: Novatel respect the auto config disable parameter
2021-11-09 10:05:26 +11:00
Michael du Breuil
eedcb9aded
AP_GPS: Isolate the header to be only set once
...
Also wrap up some common whitespace issues
2021-11-09 10:05:26 +11:00
Peter Barker
2dbe15911f
AP_GPS: change empty constructors out for 'use AP_GPS_Backend::AP_GPS_Backend'
2021-10-23 15:05:28 +11:00
Peter Barker
e88cd8498b
AP_GPS: add note about GPS_LEAPSECONDS_MILLIS being copied
2021-10-21 12:09:21 +11:00
bugobliterator
ae65f2e6ab
AP_GPS: fix build and working with single GPS Receiver config
2021-09-30 21:53:07 +10:00
Peter Barker
068f91169c
AP_GPS: remove mtk GPSs
...
These are ancient and of very poor quality.
2021-09-29 17:28:59 +10:00
Peter Barker
da66ecf1f2
AP_GPS: move SBP logging structures into AP_GPS
2021-09-28 10:45:51 +10:00
Peter Barker
1ae8385a0f
AP_GPS: correct GPS switching when GPS blending disabled
2021-09-28 09:08:50 +10:00
Peter Barker
6d615a3e16
AP_GPS: move from HAL_NO_GCS to HAL_GCS_ENABLED
2021-09-22 21:37:00 +10:00
bugobliterator
f3fef657f9
AP_GPS: handle failure to allocation of GPS CAN message subscribers
2021-09-22 21:36:34 +10:00
Josh Henderson
06251335da
AP_GPS: use vector.xy().length() instead of norm(x,y)
2021-09-14 10:43:46 +10:00
bugobliterator
ddc50a8420
AP_GPS: add option to set a dedicated line for Moving Baseline Data
2021-08-19 14:20:58 +10:00
bugobliterator
d32111b376
AP_GPS: fix handling of RTCM3 parser with user notification for bad cfg
2021-08-19 14:20:58 +10:00
bugobliterator
3b58463bfd
AP_GPS: initialise uavcan drv interim_state with state structure at startup
2021-08-19 14:20:58 +10:00
bugobliterator
85d8becb8c
AP_GPS: add support for auto config Moving Baseline for AP_Periph GPS
2021-08-19 14:20:58 +10:00
bugobliterator
9fc57e40b4
AP_GPS: add support for dual GPS heading using Periph GPSes
2021-08-19 14:20:58 +10:00
Andrew Tridgell
4f4a0a02f6
AP_GPS: added doc message for bit 2 of DRV_OPTIONS
2021-08-10 10:54:14 +10:00
Andrew Tridgell
1479566921
AP_GPS: added GPS_DRV_OPTIONS bit for forcing ublox GPS to 115200
...
this may help with some GPS modules
2021-08-10 10:54:14 +10:00
Peter Barker
c9699d7ce4
AP_GPS: log GPS primary change event in GPS library
2021-08-06 15:30:18 +10:00
Andrew Tridgell
f8e40eef00
AP_GPS: fixed printf format errors
2021-08-05 09:43:35 +10:00
Andrew Tridgell
9a262d19ed
AP_GPS: mark log messages as streaming
2021-08-03 10:23:36 +10:00
Andrew Tridgell
0e7c2a27a6
AP_GPS: added arming checks for yaw available on ublox RTK rover
2021-07-30 06:51:21 +10:00
Andrew Tridgell
e5d878eebd
AP_GPS: change handling of moving baseline yaw
...
this changes yaw handling in a few ways:
- GPS yaw now has a timestamp associated with the yaw separate from
the timestamp associated with the GPS fix
- we no longer force the primary to change to the UBLOX MB rover when
it has a GPS yaw. This means we don't change GPS primary due to GPS
loss, which keeps the GPS more stable. It also increases accuracy
as the rover is always less accurate in position and velocity than
the base
- now we force the primary to be the MB base if the other GPS is a
rover and the base has GPS lock
2021-07-21 17:59:49 +10:00
Siddharth Purohit
c18652f35a
AP_GPS: add option to enable configuring PPS pin in UBLOX driver
2021-07-02 08:50:16 +10:00
Peter Barker
c0c3f92c39
AP_GPS: remove @Values from param metadata where @Bitmask exists
2021-06-23 18:37:34 +10:00
Peter Barker
9e5662e927
AP_GPS: remove HIL support
2021-06-15 09:47:31 +10:00
Peter Barker
15cd41ca19
AP_GPS: add support for AP_Logger into AP_Periph
2021-06-08 09:57:55 +10:00
Michael du Breuil
60e47b56f5
AP_GPS: Nova: Remove unneeded injection override
2021-05-25 10:07:05 +10:00
Andrew Tridgell
02feaaffcd
AP_GPS: setup ublox moving baseline at 230400 when using uart2
...
this avoids issues with needing DMA on the UARTs when using UART2 to
transport RTCMv3 data
2021-05-21 08:49:25 +09:00
Peter Barker
a61b6ebda8
AP_GPS: move from HAL_NO_LOGGING to HAL_LOGGING_ENABLED
2021-05-19 17:38:47 +10:00
Michael du Breuil
1288f4c81b
AP_GPS: Support GPS_SBAS_MODE on SBF GPS units
...
Also swaps to using an AP_Enum for the SBAS type, and fixes up the fact
that the prearm/failure reasons should be using the config step, rather
then the init blob index
2021-05-18 09:52:07 +10:00
murata
747de2c28c
AP_GPS: Change to STM32's faster processing operations
2021-05-12 06:49:03 +10:00
Andrew Tridgell
0cd97ce3d8
AP_GPS: fixed GPS yaw for GPS_INPUT mavlink
2021-05-11 17:45:46 +10:00
Peter Barker
30b9a7aeb4
AP_GPS: correct GPS_AUTO_SWITCH parameter description
2021-05-05 16:41:50 +10:00
Andrew Tridgell
7cc11e6856
AP_GPS: fixed handling of loss of GPS yaw
...
when the GPS yaw data doesn't pass the internal tests of validity for
400ms we need to stop telling the EKF that we have valid yaw
2021-05-04 10:37:15 +10:00
Andrew Tridgell
de5da74df1
AP_GPS: fixed spelling of GLONASS
2021-04-29 13:01:09 +10:00
giacomo892
a245100ae6
AP_GPS_UBLOX: Fix GALILEO auto configuration
2021-04-29 13:01:09 +10:00
Andrew Tridgell
dd86e0cc89
AP_GPS: added comment explaining the approach
2021-04-20 17:43:01 +10:00
Andrew Tridgell
8bc31ec5e9
AP_GPS: account for rotation rate in moving baseline Z test
...
this avoids switching GPS on rapid roll/pitch
2021-04-20 17:43:01 +10:00
Peter Barker
a7e0c565dc
AP_GPS: populate extension fields in GPS2_RAW
2021-04-20 11:46:35 +10:00
Philippe Hamelin
738d000f86
AP_GPS: Add NMEA THS message.
2021-04-14 17:20:28 +10:00
Andrew Tridgell
3650c02745
AP_GPS: use common nmea_printf()
2021-04-13 09:36:52 +10:00
murata
3a006ae226
AP_GPS: Supplementary explanation of configuration parameters (NFC)
2021-03-16 10:43:18 +11:00
Siddharth Purohit
edceb4e3a4
AP_GPS: move underscore one layer down for GPS
2021-03-12 16:32:36 +09:00
bugobliterator
0031fee851
AP_GPS: add support for ordering UAVCAN GPS
2021-03-12 16:32:36 +09:00
Michael du Breuil
a3ddf5264d
AP_GPS: Support uavcan ardupilot.gnss.Status
...
Also makes the drive by change to make GPS_Backend::is_configured const
2021-03-12 09:39:55 +11:00
Michael du Breuil
f227d67d58
AP_GPS: Remove unused enum
2021-03-03 10:00:15 +09:00
Peter Barker
9da9d8c94b
AP_GPS: provide method for getting single char representing fix type
...
Should allow us to be consistent across places in the code base that
need a compact representation for a user display.
2021-02-18 08:59:23 +11:00
Peter Barker
c2cba52ad8
AP_GPS: move gps logging structures into AP_GPS
2021-02-17 11:30:01 +11:00
Michael du Breuil
4c4e613f6a
AP_GPS: Don't send SBF config unless there is free space in the port
2021-02-15 16:31:45 -07:00
Michael du Breuil
4d42996068
AP_GPS: Force the buadrate on SBF units
2021-02-15 16:31:45 -07:00
Michael du Breuil
5f3b1b92a4
AP_GPS: SBF don't send configuration until we've recieved a prompt
...
This fixes a configuration problem with SBF unit's where sometimes we
fail to detect the GPS unit continously, until it's been manually
configured. This was tested by doing a hard reset to the GPS unit.
This also now accepts a set of defines from the hwdef, or build
environment, which allows us to specify extra config options.
2021-02-05 11:52:29 -07:00
Michael du Breuil
d9ffd04a96
AP_GPS: Broadcast the detect message on AP_Periph over CAN
2021-02-05 11:52:29 -07:00
Patrick José Pereira
6bdc1704f4
AP_GPS: Remove pointer check before delete
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-02-04 09:01:19 +11:00
Patrick José Pereira
2e75425a2a
AP_GPS: Add missing const in member functions
...
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2021-02-03 18:45:14 +11:00
Michael du Breuil
0f363809f5
AP_GPS: Fix some unit errors with the GPS blended instance
...
Also add a static assert and some docs on the fact that blending only
works with 2 actual recievers at the moment
Also a small optimization to not call get_rate_ms() twice
2021-01-28 11:55:30 +11:00
Peter Barker
d426d8e1f8
AP_GPS: use ground_course in preference to ground_course_cd
2021-01-26 10:22:28 +11:00
E Thomas
2ee052b36e
AP_GPS: Made GPS_DISABLE prevent last_fix_time_ms updates
2021-01-23 17:25:00 +11:00
Michael Oborne
d2720da4a2
AP_GPS: support yaw for UAVCAN GPS
2021-01-07 15:56:28 +11:00
Andrew Tridgell
bf51478dd1
AP_GPS: added ExternalAHRS backend
2021-01-05 21:13:12 +11:00
Ari Krupnik
1d288316cc
AP_GPS: standard spelling of variant
2020-12-25 00:01:50 +11:00
Andrew Tridgell
e02047861a
AP_GPS: convert to using hal.serial() instead of hal.uartX
2020-12-15 10:32:46 +11:00
Andrew Tridgell
1a4f094025
AP_GPS: allow hwdef override of default for GPS_COM_PORT
2020-12-06 16:48:08 +11:00
Andrew Tridgell
92bcc7667c
AP_GPS: allow for SBF GPS on F3 AP_Periph
2020-12-06 16:48:08 +11:00
Andrew Tridgell
862ae59e28
AP_GPS: support $PHD message for AllyStay NMEA GPS
...
this adds vertical velocity support
2020-12-01 09:04:43 +11:00
Hwurzburg
7a82898e92
AP_GPS: expand gps rate description
2020-11-26 18:25:29 +11:00
Andrew Tridgell
05194ed8b6
AP_GPS: don't accept infinite accuracies for blending
...
these result in NaN values for velocities
2020-11-24 12:00:41 +11:00
Andrew Tridgell
83c479bcc2
AP_GPS: prevent UAVCAN GPS from giving infinite accuracy values
...
this can happen due to the complex encodings of accuracies in UAVCAN
2020-11-24 12:00:41 +11:00
Andrew Tridgell
a762926526
AP_GPS: fixed constrained NaN in EKF3 caused by bad GPS blending
...
if the accuracies reported are very low then we can do a division by
zero and this results in a constraining NaN for GPS vertical velocity
filter in NavEKF3_core::calcGpsGoodToAlign
2020-11-24 12:00:41 +11:00
Peter Barker
e257dd9fee
AP_GPS: correct logging for GPS blending
2020-11-20 09:45:57 +11:00
Dr.-Ing. Amilcar do Carmo Lucas
58f0c34612
AP_GPS: fix dataflash logging of blended GPS instance
2020-11-20 09:45:57 +11:00
Peter Barker
428c9ef0e1
AP_GPS: correct logging in dual-ublox setups
2020-11-10 17:39:51 +11:00
Andrew Tridgell
6c4e552a0b
AP_GPS: removed have_ekf_logging()
2020-11-10 16:15:45 +11:00
Iampete1
60951a7891
AP_GPS: add use primary if 3D fix GPS_AUTO_SWITCH option
2020-11-10 12:01:56 +11:00
Iampete1
347723dbaf
AP_GPS: add primary param
2020-11-10 12:01:56 +11:00
Michael du Breuil
b30c55b3f3
AP_GPS: Support yaw from moving base station on SBF drivers
2020-11-03 11:12:20 +11:00
Michael du Breuil
4161e2eb28
AP_GPS: Factor out moving base offset helper
2020-11-03 11:12:20 +11:00
Michael du Breuil
a61444cec0
AP_GPS: Don't reset the entire buffer when handling RTCM data
...
This is a micro optimization intended to just make handling GPS
corrections a bit faster.
2020-10-25 14:21:39 +11:00
murata
4c835a0df9
AP_GPS: Move the CRC24 to the AP_Math class
2020-10-21 18:24:07 +11:00
Andrew Tridgell
e529d475d4
AP_GPS: use mktime for NMEA and MTK time conversion
...
this fixes NMEA time handling, which was off by 3 days
2020-10-20 11:21:00 +11:00
Andrew Tridgell
e995a198bd
AP_GPS: always send GPS2_RAW if 2nd GPS configured
...
this improves the display on the GCS when the GPS has not yet been
found. This is particularly important after a reboot, as otherwise the
GCS may display stale information from the previous boot
2020-10-06 16:48:19 +11:00
Andrew Tridgell
8e08d93026
AP_GPS: fixed pre-arm check on ublox M9 GPS
...
this prevents a failure from config of SOL and TMODE messages
2020-10-06 10:22:52 +11:00
Donione
ff80be19c1
AP_GPS: fix type and update reserved bytes in ublox PVT
2020-09-28 16:31:14 -07:00
Andrew Tridgell
8c1bc94053
AP_GPS: fixed build warnings for MSP with AP_Periph
2020-09-15 09:40:03 +10:00
Andrew Tridgell
94670879f8
AP_GPS: allow hwdef.dat override of GPS rate
2020-09-09 06:35:50 +10:00
yaapu
85b61d6bf3
AP_GPS: added support for MSP GPS sensors
2020-09-09 06:35:50 +10:00
Andrew Tridgell
5647aadbcf
AP_GPS: added API for getting last iTOW
2020-09-09 06:35:50 +10:00
Andrew Tridgell
56b743dfca
AP_GPS: build SBF driver with double precision
2020-09-03 09:56:29 +10:00
Michael du Breuil
6a8680d31d
AP_GPS: Send RTK baseline data from SBF
2020-09-03 09:56:29 +10:00
Andrew Tridgell
87c7781be2
AP_GPS: show GPS as unhealthy if it is lagged too much
...
this detects GPS data lag, and if 5 samples in a row are lagged by
more than 50ms beyond the expected lag for the GPS then we declare the
GPS as unhealthy.
This is useful to detect users who have asked for more data from the
GPS then it can send at the baudrate that is being used. The case that
led to this path was a F9 GPS with GPS_RAW_DATA=1 at 115200 baud. In
that case the UART data is quickly lagged by over 1s
2020-08-25 10:22:05 +10:00
Siddharth Purohit
0690b7bd68
AP_GPS: move to using CANManager library
2020-08-19 17:31:09 +10:00
Michael du Breuil
08d4e1c062
AP_GPS: Support configuring the SBF com port
2020-08-13 15:04:38 +10:00
Iampete1
997ffcf30d
AP_GPS: NMEA: only decode each measage once
2020-08-09 11:37:16 +10:00
Siddharth Purohit
d122f00c14
AP_GPS: redetection not necessary for UAVCAN GPS
2020-07-29 17:32:56 +10:00
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
2020-06-25 11:10:31 +10:00
Andrew Tridgell
4aa10a6c30
AP_GPS: added force_disable_yaw() API
2020-06-18 15:01:00 +10:00
Andrew Tridgell
78858bbcdd
AP_GPS: switch ublox over to 230400 baud
...
this ensures we have sufficient bandwidth for raw data
2020-06-01 17:18:17 -07:00
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
2020-05-27 10:59:46 +10:00
Andrew Tridgell
f00392d567
AP_GPS: don't accept a zero GNSS timestamp from UAVCAN GPS
...
this is needed for a bug in AP_Periph 1.0 which could briefly send a
zero timestamp on first fix marked as a UTC time
2020-04-29 12:20:19 +10:00
Andrew Tridgell
4f591a338f
AP_GPS: use GCS_SEND_TEXT()
2020-04-29 07:36:55 +10:00
Andrew Tridgell
6347d0adb0
AP_GPS: leave uart2 config enabled when using uart2 MB setup
2020-04-21 15:30:54 +10:00
Andrew Tridgell
f3a5d915f3
AP_GPS: allow for larger average delta on MB rover than normal
2020-04-21 15:30:54 +10:00
Andrew Tridgell
36098c3221
AP_GPS: improved delay health threshold
...
allow for missing frames without showing unhealthy on GCS
2020-04-21 15:30:54 +10:00
Andrew Tridgell
3397ed766d
AP_GPS: enable ublox moving baseline compilation option
...
disable for HAL_MINIMIZE_FEATURES and if max receivers 1. This fixes
the f103-GPS AP_Periph build
2020-04-21 15:30:54 +10:00
Andrew Tridgell
ae2132d861
AP_GPS: added check for Z error in moving baseline ublox
...
this ensures we don't get bad yaw from having the right distance but
incorrect Z offset for the currently expected roll/pitch
2020-04-21 15:30:54 +10:00
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
2020-04-21 15:30:54 +10:00
Andrew Tridgell
9a6de209ab
AP_GPS: ensure that PVT and RELPOSNED msgs time align
...
this ensures we wait until we have a matching PVT and RELPOSNED
message before we report new data. If we stop receiving RELPOSNED
messages then disable yaw support
2020-04-21 15:30:54 +10:00
Andrew Tridgell
3fbeae613b
AP_GPS: fixed moving baseline yaw calculation
...
this reverts #13955 and instead applies the correct fix, which is to
subtract the angle instead of adding.
2020-04-21 15:30:54 +10:00
Andrew Tridgell
077ab22767
AP_GPS: fixed AP_Periph build with gcc 9.x
2020-04-01 17:08:48 +11:00
Andrew Tridgell
4456732911
AP_GPS: fixed rotation of moving baseline GPS
...
we were off by 180 degrees. Thanks to Jaime for noticing this!
2020-04-01 17:08:19 +11:00
Peter Barker
2b08af69bc
AP_GPS: fix dereference-of-nullptr warning from scan-build
...
This is kind-of a false positive as this in practise could never be
nullptr.
2020-03-31 10:37:16 +11:00
Andrew Tridgell
f00314a5d1
AP_GPS: removed dead blending code
2020-03-17 12:13:54 +11:00
Andrew Tridgell
9fa034d1de
AP_GPS: fixed antenna offset for blending
...
we were accessing beyond the end of the antenna_offset array
2020-03-17 12:13:54 +11:00
Randy Mackay
a19634b9d2
AP_GPS: reduce POS param range to 5m and add increment
2020-02-01 08:46:03 +09:00
Andrew Tridgell
7efd5248ee
AP_GPS: added get_type() API
2020-01-26 09:12:55 +11:00
Andrew Tridgell
e59f32074d
AP_GPS: fixed yaw error when one GPS has zero position
...
the M_PI correction was only valid for one zero side. Much simpler to
always calculate difference
2020-01-24 11:46:40 +11:00
Andrew Tridgell
cf8becfa71
AP_GPS: make all semaphores recursive
...
the cost is very similar and this prevents an easy coding error which
can occur on less used code paths
2020-01-19 20:19:30 +11:00
Andrew Tridgell
f0d1d3fa90
AP_GPS: added get_semaphore()
2020-01-16 20:36:54 +11:00
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
2020-01-07 12:37:35 +11:00
Andrew Tridgell
e40c570615
AP_GPS: faster config of moving baseline
...
thanks to MdB for suggestion
2020-01-07 12:37:35 +11:00
Andrew Tridgell
e660532f67
AP_GPS: fixes from PR review
2020-01-07 12:37:35 +11:00