Commit Graph

317 Commits

Author SHA1 Message Date
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
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
Peter Barker 88feb74762 AP_GPS: improve parameter documentation in UAVCAN GPS 2022-03-27 06:21:20 -07: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 e77bb74f9b AP_GPS: remove unnecessary multiply with 1000ULL in time_epoch_usec 2022-02-03 06:45:35 +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 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
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 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
Hwurzburg 35cc90d117 AP_GPS: change UAVCAN in metadata to DroneCAN 2021-12-15 09:53: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 1ae8385a0f AP_GPS: correct GPS switching when GPS blending disabled 2021-09-28 09:08:50 +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 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 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
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
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 30b9a7aeb4 AP_GPS: correct GPS_AUTO_SWITCH parameter description 2021-05-05 16:41:50 +10:00
Andrew Tridgell de5da74df1 AP_GPS: fixed spelling of GLONASS 2021-04-29 13:01:09 +10:00
Peter Barker a7e0c565dc AP_GPS: populate extension fields in GPS2_RAW 2021-04-20 11:46:35 +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
Peter Barker c2cba52ad8 AP_GPS: move gps logging structures into AP_GPS 2021-02-17 11:30:01 +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
E Thomas 2ee052b36e AP_GPS: Made GPS_DISABLE prevent last_fix_time_ms updates 2021-01-23 17:25:00 +11:00