Peter Barker
4334a92ac9
AP_GPS: remove unimplemented method declarations
8 years ago
Michael du Breuil
6f297deaf7
AP_GPS: Unify inject_data interface for all classes
8 years ago
Niels Joubert
4bf9fc071c
AP_GPS: Adds SBP Version 2: Swift Navigation Piksi Multi support
...
This commit adds:
- New driver for SBPv2
--- Support Piksi Multi, Swift Navigation's multi-band multi-constellation GPS
--- Proper parsing of SBP flags
--- Instant response to Piksi status changes (no more timeouts)
--- Support for Piksi Multi as a Single-Point-Positioning GPS or only onboard GPS
--- Incorporates horizontal and vertical accuracy estimates, and vdop.
- Updates driver for SBPv0
--- Continue support for previous Piksi
- Dispatches correct driver based on SBP version.
8 years ago
Eugene Shamaev
8130d85b42
AP_GPS: removal of legacy UAVCAN support
8 years ago
Pierre Kancir
292fa5f413
AP_GPS: example fix travis warning
...
missing function declaration
implicit cast
some style fix
8 years ago
Eugene Shamaev
dfe9b0e6fc
AP_GPS: support for UAVCAN connected GNSS receivers
8 years ago
Michael du Breuil
6b523cbd46
AP_GPS: Fix a memory leak in QURT GPS
...
Fixes part of #6000
8 years ago
Jacob Walser
1b00dfb642
AP_GPS: Fix parameter metadata
8 years ago
Pierre Kancir
afb488c627
AP_GPS: fix implicit conversion warning from float to double
8 years ago
Randy Mackay
b82098ca44
AP_GPS: fix blended ground course
...
Thanks to jyl58 for finding this
8 years ago
Randy Mackay
3e628f30ff
AP_GPS: fix blending when accuracy reported as 1mm
...
Thanks to Michael DuBreuil for suggesting the fix
8 years ago
Randy Mackay
2002827de3
AP_GPS: rename pre-arm blending health check
8 years ago
Randy Mackay
e9c881c668
AP_GPS: stop blending if too many blending failures
8 years ago
Randy Mackay
b7ad8da9b9
AP_GPS: minor bracketing fix
...
This silences a warning from eclipse
No functional change
8 years ago
Randy Mackay
5de64273ec
AP_GPS: more efficient initialisation of blending arrays
8 years ago
Randy Mackay
81b20e971b
AP_GPS_UBLOX: use get_rate_ms accessor
8 years ago
Randy Mackay
ef1399a52f
AP_GPS: fixups after peer review
...
This includes these changes:
RATE_MS, RATE_MS2 parameter description Range minimum reduced to 50
_blend_health_counter is reset to 0 if blending is disabled
GPS_MAX_RECEIVERS is replaced with GPS_BLENDED_INSTANCE where appropriate
simplify all_consistent functions check of number of receivers
calc_blended_weights fix for initial check of how many receivers we have
remove unnecessary setting of GPS last time when blending fails
remove RebootRequired from AUTO_SWITCH param description
8 years ago
Randy Mackay
729ce34ce3
AP_GPS: add all_consistent and blend health for use as pre-arm check
8 years ago
Randy Mackay
72dfe1127f
AP_GPS: protect parameters from being accessed externally
...
backends become friends so they can continue to access parameters held in frontend
get_rate_ms made private because only used by frontend
Also moved static arrays higher in cpp file
8 years ago
Randy Mackay
3172657f26
AP_GPS: move constructor and complex accessors to cpp file
...
These functions are slightly long and make the .h file hard to read. Also saves a small amount of flash space.
No functional change
8 years ago
Randy Mackay
0066022a7f
AP_GPS: check for valid instance in highest_supported_status
...
highest_supported_status will always return FIX_3D for blended or invalid instance
setHIL_Accuracy checks instance is 2 or less
send_mavlink_gps2_raw uses num_instances variable directly to avoid confusion with num_sensors
8 years ago
Randy Mackay
e764f0d5d0
AP_GPS: sanity check update rate
...
Also minor spelling and parameter documentation fix
8 years ago
priseborough
6b26bdd454
AP_GPS: Add option to blend multiple GPS receivers
...
Fix pre-existing bug in hard switch logic
Update GPS_AUTO_SWITCH description
protect against zero accuracy estimates returned by GPS drivers
8 years ago
Randy Mackay
cd379b0e86
AP_GPS: move time_epoch calcs into proper file
...
The frontend implementation was in the backend file
No functional change
8 years ago
Randy Mackay
a79474dcbc
AP_GPS: minor comment fix
...
No functional change
8 years ago
Randy Mackay
201504dbae
AP_GPS: remove unused get_antenna_offsets()
...
callers always specify an instance
8 years ago
Randy Mackay
2d0258b6a2
AP_GPS: remove unused highest_supported_status(void)
8 years ago
Randy Mackay
ac86c7999b
AP_GPS_MAV: set have_accuracy as boolean
8 years ago
Michael Oborne
e4ff445ea7
AP_GPS_GSOF-NOVA: fix last_gps_time_ms
8 years ago
Michael du Breuil
398ff823c0
AP_GPS: Always consider ublox as configured in sitl
8 years ago
Michael du Breuil
44bcd74a57
AP_GPS: Remove dead SBF code
...
CID 125035
8 years ago
Michael du Breuil
7b483a1460
AP_GPS: Ublox, always quickly set the rates until we have fetched the version
8 years ago
Andrew Tridgell
3ce7e4b322
AP_GPS: fixed fake uBlox with PVT message support
8 years ago
Lucas De Marchi
9f09442548
AP_GPS: rename UNIX_OFFSET
...
To keep consistency with other constants and make clear the unit.
8 years ago
murata
30151c8253
Global: Define MSEC_PER_SEC, MSEC_PER_WEEK, SEC_PER_WEEK and UNIX_OFFSET.
8 years ago
Lucas De Marchi
747f15b514
AP_GPS: add casts to consider literals as doubles
...
Since we pass -fsingle-precision-constant to the compiler, add casts to
make literals real doubles.
8 years ago
murata
b77941c4f2
AP_GPS: Delete unnecessary code.
8 years ago
Andrew Tridgell
c0cc2faefd
AP_GPS: disable esoteric GPS types on FMUv2
8 years ago
Francisco Ferreira
7ea0baefb1
AP_GPS: re-fix SBP fix status
8 years ago
Francisco Ferreira
512bd08326
AP_GPS: fix SBP supported status
8 years ago
priseborough
6d53ab7b76
AP_GPS: minor comment change
8 years ago
priseborough
4a490d522e
AP_GPS: use standard unit descriptor for milliseconds
8 years ago
priseborough
be0096e812
AP_GPS: Allow the user to specify the GPS time delay
...
If the user sets a non-zero value of the delay it will be used in preference over the default value for that GPS type.
If the GPS type is unknown and the parameter is set to zero, then a default delay of 1 sample period will be used (eg 200ms for 5Hz).
8 years ago
Andrew Tridgell
bdc0630ccf
AP_GPS: added all_configured() function
...
used for EKF to tell if gps_lag is valid
8 years ago
Andrew Tridgell
5d18f3a453
AP_GPS: added backend specific get_lag() function
...
the ublox7 and 8 seem to produce lower lag, around 120ms. Separately
we should also look at running these at 10Hz and see if that helps.
8 years ago
murata
3200f24106
AP_GPS: Unify from print or println to printf.
8 years ago
Francisco Ferreira
1fc0dbe0bd
AP_GPS: fix GSOF highest supported status
8 years ago
Michael Oborne
8e9f382240
AP_GPS_GSOF: update for new GPS_FIX's
8 years ago
Michael du Breuil
0cf41c9288
AP_GPS: Force ublox baud rate if we are allowed to config the GPS
8 years ago
Michael du Breuil
855d91145a
AP_GPS: ublox - fix incorrect step ordering
8 years ago