Peter Barker
99cac83d1e
AP_GPS: correct uBlox M10 configuration on minimised boards
2023-11-14 10:34:21 +11:00
Andrew Tridgell
76483a51f8
AP_GPS: fixed RTK injection when first module is a BASE
...
this is a partial backport of #24132 which fixes RTK injection when
the 1st GPS module is a DroneCAN RTK rover. Without this change RTCM
injection for RTK fix on the base will only work if it happens to come
up as the first module
2023-08-17 08:44:37 +10:00
Andrew Tridgell
e7f79f235d
AP_GPS: don't try and configure M10 options on non-M10 GPS
...
this fixes a pre-arm failure "GPS 1 failing configuration checks" on
non-M10 GPS modules, including AP_Periph
it also adds the ublox unconfigured msgs to the DroneCAN GNSS.Status
errors field for easier diagnosis of this type of issue in the future
2023-02-18 09:20:25 +11:00
Andrew Tridgell
0c9f9d8bb3
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-12-11 09:58:17 +11:00
Andrew Tridgell
567ad00c07
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-21 19:33:35 +11:00
Andrew Tridgell
473525dcbd
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-21 19:33:35 +11:00
Andrew Tridgell
489737c2ca
AP_GPS: fixed resolution of KSXT parsing for NMEA
...
needs to be double precision for lat/lon
2022-10-19 10:22:11 +11:00
Andrew Tridgell
5cfd7e639f
AP_GPS: added logging to more serial GPS backends
2022-10-19 10:22:11 +11:00
Andrew Tridgell
1d3cdfb73b
AP_GPS: improve GPS debug logging
...
use timestamped data allowing for much more precise playback
2022-10-19 10:22:11 +11:00
Peter Barker
00a3a3e870
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-10-04 13:38:30 +11:00
Peter Barker
0750257d16
AP_GPS: no init blobs for SBF/GSOF/NOVA/SITL
2022-10-04 13:38:30 +11:00
Peter Barker
deebb09f7f
AP_GPS: cycle through baud rates for SBF/GSOF/NOVA/SITL
2022-10-04 13:38:30 +11: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