Andrew Tridgell
0d4018107b
AP_GPS: fixed ublox M10S auto-config
...
this copes with the M10S rejecting multiple-key VALGET calls. We fall
back to fetching one at a time
2023-06-13 11:00:47 +10:00
Andrew Tridgell
531b12e272
AP_GPS: fixed RTCM injection for DroneCAN GPS
...
need to check broadcast() return
2023-06-08 10:15:50 +10:00
Alexander Keller
6ba526fa25
AP_GPS:Comform to ardupilot undulation definition
2023-06-08 09:48:30 +10:00
Peter Barker
3f70f2104a
AP_GPS: use minimize_features.inc for more features
2023-06-06 10:14:02 +10:00
bugobliterator
5026b3d08c
AP_GPS: send RTCM Stream message to over dronecan directly
2023-05-31 17:31:09 +10:00
Ryan Friedman
639ba63560
AP_GPS: Remove gsof zero initialization
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-05-30 09:45:29 +10:00
Peter Barker
e415b5fda0
AP_GPS: add clarifying comment on _configure_config_set method
...
it's a bit confusingly named, because it doesn't actually "set" anything - it gets messages from the GPS which are then parsed and responded to based on the received values.
2023-05-29 09:56:20 +10:00
Ryan Friedman
f092c22915
AP_GPS: Enforce max of 10 GSOF outputs per the manual
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-05-20 14:23:17 +10:00
Ryan Friedman
77e169b226
AP_GPS: Update GSOF docs with newer data
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-05-20 14:22:15 +10:00
Ryan Friedman
a05af3f3c3
AP_GPS: More const for gsofmsgreq
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-05-19 18:43:31 +10:00
Peter Barker
a16c9cf64e
AP_GPS: log fragments used/fragments discarded for RTCM injection data
2023-05-17 18:37:43 +10:00
Ryan Friedman
5c815e2c32
AP_GPS: Reduce extra GSOF namespacing since it's all in class scope
...
* Also remove in s on enums to follow Peter's conventions
* Fixed incorrect style on class and enum names
2023-05-17 18:12:44 +10:00
Ryan Friedman
2f5f77712f
AP_GPS: Use enum classes in GSOF
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-05-17 18:12:44 +10:00
Ryan Friedman
29a6ae4ea1
AP_GPS: Add missing const to the rest of the headers
...
* Related to #23743 , but I missed this since I didn't realize the buffer was not modified in-place
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-05-15 12:25:34 +10:00
Ryan Friedman
b8f59b0df5
AP_GPS: Remove unused member variable in gsof driver
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-05-12 19:19:43 +10:00
Ryan Friedman
4b2687352c
AP_GPS: Add const and WARN_IF_UNUSED to AP_GPS_GSOF
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-05-11 10:41:17 -07:00
Ryan Friedman
d6569d6f79
AP_GPS: Use SI unit abbreviation
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-04-26 14:08:01 +10:00
Peter Barker
271571e29c
AP_GPS_NMEA: fix stringop truncation failure on g++ 9
2023-04-18 11:44:57 +10:00
Ryan Friedman
1e9403dca6
AP_GPS: Add covariance output to AP_GPS matching ROS NavSatFix
...
* Zero every iteration in case GPS quality degrades or fix is lost
* Use float precision for now
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-04-14 12:06:42 +10:00
Andrew Tridgell
f6fa35a1f7
AP_GPS: fixed name length
2023-04-11 10:31:31 +10:00
Andrew Tridgell
834831bfeb
AP_GPS: text messages and more defines
2023-04-11 10:31:31 +10:00
Andrew Tridgell
645fd82507
AP_GPS: rename more variables, types and defines
2023-04-11 10:31:31 +10:00
Andrew Tridgell
5952eb1249
AP_GPS: update header references
2023-04-11 10:31:31 +10:00
Andrew Tridgell
258158b0bc
AP_GPS: rename UAVCAN drivers to DroneCAN
2023-04-11 10:31:31 +10:00
Andrew Tridgell
8829f54d89
AP_GPS: rename AP_UAVCAN to AP_DroneCAN
2023-04-08 07:11:23 +10:00
Ryan Friedman
c6060dd047
AP_GPS: Fix spelling in receiver
...
Signed-off-by: Ryan Friedman <ryanfriedman5410+github@gmail.com>
2023-04-06 09:13:09 +10:00
bugobliterator
09de24f3d2
AP_GPS: replace libuavcan with libcanard based driver
2023-03-29 17:16:39 +11:00
Peter Barker
3c3f383601
AP_GPS: decouple status enumeration from MAVLink fix types
...
This moves us towards being able to compile the GPS library without having the MAVLink headers available. We shouldn't need those headers when building for Periph.
If the headers are available then we ensure our values match mavlink so we can do a simple cast from one to the other
2023-03-22 14:23:41 +11:00
Peter Barker
84bf020897
AP_GPS: correct config boards include
...
Important to include AP_HAL_Boards.h directly, rather than relying on someone else having done it or getting it transitively
2023-03-19 09:08:41 +11:00
Henry Wurzburg
eeb72637ec
AP_GPS:make Unicore reset to rover in all cases
2023-03-07 10:57:20 +11:00
Tom Pittenger
fe37282f77
AP_GPS: allow external libraries to detect CAN instance
2023-03-02 09:22:15 +11:00
Henry Wurzburg
7e214b2695
AP_Compass: add GPYW metadata
2023-03-02 08:37:32 +11:00
Pierre Kancir
8d962f915e
AP_GPS: change isnanf for isnan
2023-02-27 04:15:24 -08:00
Andrew Tridgell
fd0bf49ca5
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 15:33:13 +11:00
Peter Barker
5423dd0210
AP_GPS: avoid using struct Location
...
clang reports this could be a problem when compiling under some EABIs. Remove it from most places as it is just noise, replace with class where we want to avoid including Location.h
2023-02-04 22:51:54 +11:00
Andrew Tridgell
7a741a0a2d
AP_GPS: fixed use of undulation for GPS2_RAW
...
GPS2_RAW needs to use undulation of 2nd receiver
2023-01-08 13:30:11 +11:00
Andrew Tridgell
17c25780c7
AP_GPS: support UNIHEADINGA message for Unicore NMEA
...
this allows for good yaw even without a RTK fix, which makes yaw with
dual-antenna Unicore GPS modules much more useful
2023-01-08 13:30:11 +11:00
Andrew Tridgell
f53c865c7a
AP_GPS: only create GPS logs for active GPS backends
2022-12-20 10:23:58 +11:00
Andrew Tridgell
fc5ae600ef
AP_GPS: fixed handling of empty HDT/THS sentences
...
fixes #22432
2022-12-20 10:23:58 +11:00
Andrew Tridgell
761e4a05e2
AP_GPS: don't consume Heading message if we have RelPosHeading
...
this avoids 2 conflicting yaw sources
2022-12-20 10:23:58 +11:00
Andrew Tridgell
b0c006deca
AP_GPS: suppress string truncation warnings
2022-12-20 10:23:58 +11:00
Andrew Tridgell
898187950e
AP_GPS: give yaw information for AP_Periph from Unicore GPS
...
this allows for CAN GPS yaw with length and height checks with unicore
GPS
2022-12-20 10:23:58 +11:00
Andrew Tridgell
2fd575aca2
AP_GPS: allow for DroneCAN GPS other than u-blox rover with yaw
...
single module, dual antenna GPS can give yaw information
2022-12-20 10:23:58 +11:00
Andrew Tridgell
d7a3c643a6
AP_GPS: improved unicore setup
...
log version information and improve auto-bauding
2022-12-20 10:23:58 +11:00
Andrew Tridgell
3c1a54c3df
AP_GPS: added measured lag for Unicore GPS
...
measured as 0.14s from flight log
2022-12-20 10:23:58 +11:00
Andrew Tridgell
9cebe3b880
AP_GPS: added a common velocity_to_speed_course()
...
this saves flash using common code
2022-12-20 10:23:58 +11:00
Andrew Tridgell
29f1c31854
AP_GPS: added GPYW logging for GPS yaw
...
this makes it much easier to debug GPS yaw issues, by logging the raw
data even if the yaw is rejected
2022-12-20 10:23:58 +11:00
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