Hwurzburg
3d4f6cc2c4
AP_GPS: add build options for GPS backends
2022-01-12 16:17:21 +11:00
Michael du Breuil
53c66106d6
AP_GPS: Remove unneeded intilizers
...
saves 160 bytes on make px4-v2
2018-05-16 20:34:00 +10:00
Lucas De Marchi
b62e8909c4
AP_GPS: add missing fallthrough
2017-09-01 13:45:22 -07:00
Lucas De Marchi
3414883f05
AP_GPS: remove tabs and fix coding style
2017-08-22 23:59:13 -07:00
Lucas De Marchi
8389158d76
AP_GPS: use FALLTHROUGH define
...
When falling through on a case switch, allow to add an empty statement
with the correct attribute to tell the compiler this behavior is
intended.
2017-08-22 23:59:13 -07:00
Mathieu OTHACEHE
152edf7189
Global: remove mode line from headers
...
Using a global .dir-locals.el file is a better alternative than
reincluding the same emacs header in every file of the project.
2016-10-24 09:42:01 -02:00
Gustavo Jose de Sousa
174cefa8a5
AP_GPS: use ARRAY_SUBSCRIPT instead of bytes field
...
That fixed compilation issues and seems more semantically correct. Using array
of length 0 fails compilation because of -Werror=array-bounds in GCC 6.1.
2016-06-23 21:02:05 -03:00
Andrew Tridgell
b424c49bc7
AP_GPS: change ground course to be in degrees
...
more accuracy for replay
2016-05-07 18:27:21 +10:00
Lucas De Marchi
1b07dabeb7
Replace prog_char and prog_char_t with char
...
prog_char and prog_char_t are now the same as char on supported
platforms. So, just change all places that use them and prefer char
instead.
AVR-specific places were not changed.
2015-10-30 14:35:30 +09:00
Lucas De Marchi
831d8acca5
Remove use of PROGMEM
...
Now variables don't have to be declared with PROGMEM anymore, so remove
them. This was automated with:
git grep -l -z PROGMEM | xargs -0 sed -i 's/ PROGMEM / /g'
git grep -l -z PROGMEM | xargs -0 sed -i 's/PROGMEM//g'
The 2 commands were done so we don't leave behind spurious spaces.
AVR-specific places were not changed.
2015-10-30 14:35:16 +09:00
Andrew Tridgell
2c7a113790
AP_GPS: ensure all GPS drivers give headings as 0..360 degrees
...
this prevents inconsistency between interfaces, and fixes a MAVLink
reporting bug with UAVCAN GPS
2015-08-31 08:24:35 +10:00
Andrew Tridgell
0191355488
AP_GPS: fixed init strings to all be in progmem
...
and sent async ...
2014-04-01 06:38:25 +11:00
Andrew Tridgell
368daf89f1
AP_GPS: new GPS API
...
This is a complete rewrite of the GPS driver structure, with a static
main driver and separate backend drivers. This will allow proper
support for multiple GPSes, and will allow parameters to be set on the
GPS object
2014-04-01 06:38:23 +11:00
Andrew Tridgell
2dd92832dc
AP_GPS: support multiple AP_GPS_Auto drivers
...
move all static variables into a dynamically allocated structure in
the AUTO driver which gets freed when we have found a GPS type
2014-04-01 06:38:23 +11:00
Andrew Tridgell
7ff293ca38
AP_GPS: added DataFlash to GPS init to allow for detailed logging
...
this will allow GPS drivers to log much more detailed device specific
information
2014-03-24 12:01:13 +11:00
Andrew Tridgell
6f5ac1d553
AP_GPS: added support for GPS time in week/millisec
...
also adds time_epoch_usec() for MAVLink SYSTEM_TIME
2013-10-24 14:22:47 +11:00
Andrew Tridgell
97b7130bb9
libraries: update license header to GPLv3
...
we switched to GPLv3 a long time ago, but neglected to update the
per-file license headers
2013-08-30 13:01:39 +10:00
Andrew Tridgell
7dbb898264
AP_GPS: switch fields to add units suffix
...
altitude -> altitude_cm
ground_speed -> ground_speed_cm
ground_course -> ground_course_cd
this helps prevent unit mixups
2013-07-10 14:04:22 +10:00
Andrew Tridgell
edfebc1f29
AP_GPS: fixed indent-tabs-mode
2013-05-30 09:52:21 +10:00
Andrew Tridgell
b3ec5187f2
AP_GPS: fixed uninitialied variable bugs found with valgrind
2013-04-17 23:02:13 +10:00
Randy Mackay
27309a553f
GPS: fixes after review
...
Ensure 3D fix before returning velocity_down
UBLOX: restore check of fix_status as part of determining 2D or 3D fix
SIRF: add missing brackets on fix type check
2013-03-27 11:41:54 +09:00
Randy Mackay
d7454bb09e
GPS: add 2D fix type
2013-03-27 11:41:39 +09:00
Andrew Tridgell
252d11ccfa
AP_GPS: initialise _step to zero in all drivers
...
new() does not zero-fill memory
2013-01-12 16:04:23 +11:00
Andrew Tridgell
f3783b0306
AP_GPS: put SIRF init_messages in progmem
...
this saves 32 bytes of memory
2013-01-10 21:27:41 +11:00
Andrew Tridgell
18db7b2efd
GPS: move _port setting to init()
...
this is needed to avoid constructor ordering dependencies
2012-12-20 14:52:32 +11:00
Pat Hickey
9ed023aeb4
AP_GPS: Builds under AP_HAL. Not tested.
2012-12-20 14:51:25 +11:00
Andrew Tridgell
608cc60689
GPS: fixed SIRF auto detect code
2012-09-25 07:10:07 +10:00
Andrew Tridgell
59b44816ec
GPS: replaced the GPS auto-detect mechanism
...
the old mechanism wasted most of the input bytes, and chewed a lot of
CPU, making it impractical to do GPS detection for a GPS attached
after startup
The new code is async, and detects a GPS by looking for a fully formed
packet with the right checksum for each GPS type
2012-09-17 14:45:47 +10:00
uncrustify
a8ed24da6c
uncrustify libraries/AP_GPS/AP_GPS_SIRF.cpp
2012-08-21 19:19:51 -07:00
rmackay9
8a29f47ce0
AP_GPS: replaced "int" with "int16_t" and "long" with "int32_t"
2012-08-18 16:35:38 +09:00
Andrew Tridgell
33a2ad7e07
GPS: add stub settings for nav_setting in the other GPS drivers
...
only Ublox supports nav_setting so far
2012-06-10 16:34:53 +10:00
James Goppert
14d27b1e4c
Cleaned up AP_GPS formatting.
2011-10-28 14:52:50 -04:00
deweibel@gmail.com
8d7e7ff58e
revert gps lib to 2602
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2608 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-06-21 01:38:31 +00:00
deweibel@gmail.com
5b9e7eff9d
clean up idleTimeout
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2606 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-06-21 01:20:39 +00:00
deweibel@gmail.com
b53b749fc7
Fix initialization of idleTimeout
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2602 f9c3cf11-9bcb-44bc-f272-b75c42450872
2011-06-20 21:11:45 +00:00
DrZiplok@gmail.com
8da4a29d58
Add support for the DIYD MTK v1.6 firmware
...
Nuke AP_GPS_IMU, as nothing is using it anymore.
Simplify the handling of no GPS/no fix detection.
Fix prototypes for ::init and ::read.
Update AP_GPS_Auto and corresponding example, nearly ready for primetime.
Use uint8_t rather than byte.
Strip some _error() calls to save space. More could still go.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1246 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-12-24 06:35:09 +00:00
james.goppert
aa115aea68
AP_GPS libs now recover from disconnect or failed initialization.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1188 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-12-19 13:24:29 +00:00
DrZiplok@gmail.com
0a94520682
Add support for automatically detecting the connected GPS and configuring accordingly.
...
Note that this is currently disabled as changes need to be made to APM to support it.
Tested with MTK, u-blox and SiRF GPS'.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@671 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-17 06:06:04 +00:00
paulbmather@gmail.com
079dd3c617
Changes to accommodate blinking lights and loss of GPS commands. Tested with NMEA, uBlox, Sirf and MTK. Does not function correctly with rmack's changes to APM_Compass posted 10/17/2010 (I don't know why).
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@669 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-10-17 04:07:46 +00:00
deweibel
34aa823003
Bug fixes for EM-406
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@539 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-23 00:20:11 +00:00
DrZiplok@gmail.com
80bc831363
Reinstate the ground course filter for the not-really-suppored SiRF GPS.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@448 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-10 06:32:33 +00:00
DrZiplok@gmail.com
ba021b5fe8
Remove a diagnostic I missed.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@424 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-07 04:22:13 +00:00
DrZiplok@gmail.com
c6ceb85c21
Refactor the EM-406 support into a 406-specific init routine and a generic SiRF parser.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@423 f9c3cf11-9bcb-44bc-f272-b75c42450872
2010-09-07 04:20:34 +00:00