Commit Graph

758 Commits

Author SHA1 Message Date
Michael du Breuil 52eb832883 AP_GPS: Remove stuff from headers 2019-04-05 20:12:53 +11:00
Sagnik Bhattacharya 47f3720040 AP_GPS: add more comments to example and improved existing 2019-04-02 19:41:45 +11:00
Peter Barker 81d51b1d1a AP_GPS: move print_latlon into sole caller 2019-04-02 10:19:38 +11:00
Michael du Breuil 833bc8f12a AP_GPS: Ensure that all ublox configuration failure reasons have a description 2019-04-02 08:15:59 +11:00
Tom Pittenger 12c3446777 AP_GPS: rename dataflash to logger 2019-03-28 16:40:57 +11:00
Francisco Ferreira 5a64f8d8ba AP_GPS: use proper macro in array sizes 2019-03-07 19:48:32 -07:00
Francisco Ferreira ba5ef18ef7 AP_GPS: correct blending check 2019-03-07 19:48:32 -07:00
Francisco Ferreira cb1ce70ae8 AP_GPS: fix out-of-bounds array access 2019-03-07 19:48:32 -07:00
Dr.-Ing. Amilcar do Carmo Lucas d7edd396bd AP_GPS: replace location_offset() and get_distance() function calls with Location object member function calls
This allows removing duplicated code
2019-02-28 11:44:09 +11:00
Peter Barker 2aa0de49bb AP_GPS: remove pointless initialisers 2019-02-26 09:53:28 +11:00
Peter Barker 4194812633 AP_GPS: uavcan: reindent after WITH_SEMAPHORE change (NFC) 2019-02-16 14:33:11 +11:00
Peter Barker 1ffbc0ae56 AP_GPS: uavcan: use WITH_SEMAPHORE in place of give/take _registry 2019-02-16 14:33:11 +11:00
Tom Pittenger 5d66c3ed62 AP_GPS: unify singleton naming to _singleton and get_singleton() 2019-02-10 19:09:58 -07:00
Ben Kurtz 08092ea72b AP_GPS: fix typo in log message 2019-01-31 03:07:30 +00:00
Ben Kurtz a525f30573 AP_GPS: update implementation of SBP2 flags
Some flags were out of date or named incorrectly.

Updates based on protocol version 2.4.1, documented here:
b02e8d835c/docs/sbp.pdf
2019-01-31 03:07:30 +00:00
Peter Barker 6fc76a32af GLOBAL: use AP::logger() and strip redundant Log_ from methods 2019-01-18 18:08:20 +11:00
Peter Barker b47733142f GLOBAL: rename DataFlash_Class to AP_Logger 2019-01-18 18:08:20 +11:00
Peter Barker 30980815a8 AP_GPS: adjust for Location_Class and Location unification 2019-01-16 11:45:29 +11:00
Peter Barker 30d5d6b578 AP_GPS: do not zero options after assigning from location
On the assumption that the assignment operator knows what it is doing,
and that we have no idea what fields are actually present in options
2019-01-16 11:45:29 +11:00
Arjun Vinod 978cea97cf AP_GPS: whitespace and typo fixes 2019-01-05 08:45:24 +09:00
Randy Mackay c7287bb98f AP_GPS: add range to POS param description 2018-12-13 20:13:58 +09:00
Andrew Tridgell 7c50aacc92 AP_GPS: moved place we graph uart timestamp 2018-12-04 11:37:38 +11:00
Andrew Tridgell 685771c145 AP_GPS: constrain rate_ms from 5Hz to 20Hz 2018-12-04 11:37:38 +11:00
Andrew Tridgell 7a4b8d76c1 AP_GPS: added jitter correction to timestamp calculation
this allows for much more accurate (and consistent) timestamping of GPS
messages where the protocol has a ITOW field.
2018-12-04 11:37:38 +11:00
Andrew Tridgell d761b24b92 AP_GPS: optionally configure a hardware PPS pin for uBlox
useful for testing time lag estimation
2018-12-04 11:37:38 +11:00
Andrew Tridgell 2eae4901c1 AP_GPS: look for iTow on uBlox MSG_STATUS 2018-12-04 11:37:38 +11:00
Andrew Tridgell b5f3750014 AP_GPS: convert NOVA, SBP and SBP2 to use check_new_itow() 2018-12-04 11:37:38 +11:00
Andrew Tridgell df68d6413c AP_GPS: moved iTow handling to GPS_Backend 2018-12-04 11:37:38 +11:00
Andrew Tridgell 4af857da44 AP_GPS: adjust NMEA sentence length calculation
review feedback
2018-12-04 11:37:38 +11:00
Andrew Tridgell 3fe4b9c0f8 AP_GPS: make GPS packet timestamps more accurate
this reduces the effect of processing time and uart transmit time
2018-12-04 11:37:38 +11:00
Andrew Tridgell 2512b73106 AP_GPS: added ability to disable GPS
this is used for GPS loss testing in real vehicles, by linking it to a
RCn_OPTION value. GPS position is still logged, but is not used
2018-11-29 08:49:23 +11:00
Peter Barker fd888727b8 AP_GPS: add override keyword where required 2018-11-08 11:30:12 +11:00
Michael du Breuil d6944510da AP_GPS: Suppress clearing non-trival type warning 2018-10-30 16:17:03 -07:00
ebethon f67a9af339 AP_GPS: fix SBAS mode in the SBP2 driver 2018-10-24 13:12:34 -07:00
Andrew Tridgell 249291eac0 AP_GPS: use WITH_SEMAPHORE()
and removed usage of hal.util->new_semaphore()
2018-10-17 12:54:22 +11:00
Peter Barker 40daa8e15f AP_GPS: use mavlink definition to get statustext size
Also, add one for null-termination
2018-10-16 10:11:28 +11:00
liang.tang 7885b267f0 AP_GPS: fix UAVCAN gps message handlers 2018-09-05 17:23:14 +10:00
Michael du Breuil 70e587b572 AP_GPS: Fix accidental quantization to float on SBF logging 2018-08-31 01:16:31 +01:00
Siddharth Purohit ca54123b7d AP_GPS: move UAVCAN GPS related code to AP_GPS_UAVCAN backend 2018-08-29 22:54:59 +01:00
Patrick José Pereira 10ffd89a0c AP_GPS: Remove unused operation
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-08-27 23:35:34 +01:00
Dr.-Ing. Amilcar do Carmo Lucas 9c97f35b19 AP_GPS: Use GPS_AUTO_SWITCH parameter to choose exacly which GPS to use 2018-08-26 01:05:09 -07:00
Francisco Ferreira b29369eb82
AP_GPS: adapt to changes in AP_BoardConfig_CAN 2018-08-12 13:35:03 +01:00
Michael du Breuil 1a406dacfc AP_GPS: Ensure a lag value is always provided
The value may not be the optimal value for the driver, but we should
always try to provide a value for the caller
2018-08-07 09:55:26 +10:00
Michael du Breuil cca6b54921 AP_GPS: Remove unneeded field limitations
Saves ~1100 bytes of flash
2018-08-01 09:19:20 +10:00
Michael du Breuil fcb1c4cdfd AP_GPS: Remove unused ADC include 2018-07-17 09:29:50 +10:00
Alexander Remizov dc15cbd513 AP_GPS: fixed ublox configuration 2018-06-24 15:25:00 -07:00
Andrew Tridgell 796291f176 AP_GPS: improved ccache build speed
making this header equal improves speed of fmuv2 build after fmuv3
build with ccache, without affecting binary
2018-06-22 11:13:03 +10:00
Peter Barker 5b41db5120 AP_GPS: use AP_RTC
set the system time from a GPS if we have a 3D fix or better
2018-06-15 08:01:22 +10:00
Eugene Shamaev 9985d4a937 AP_GPS: uniform naming 2018-06-09 22:46:48 -07:00
Eugene Shamaev 9f27a65f4b AP_GPS: helper func 2018-06-09 22:46:48 -07:00