Andrew Tridgell
a7079b730a
AP_GPS: GPVTG can give new velocity
9 years ago
Andrew Tridgell
4beb1748c5
AP_GPS: better handle corrupted NMEA sentences
...
when a NMEA sentence is corrupted we should discard it
completely. This change prevents us considering a set of sentences
that includes corrupted sentences from being seen as new data
9 years ago
Caio Marcelo de Oliveira Filho
c33b86a783
AP_GPS: use millis/micros/panic functions
9 years ago
Lucas De Marchi
5244559010
Minimize AP_Progmem.h includes
...
Most of AP_Progmem is already gone so we can stop including it in most
of the places. The only places that need it are the ones using
pgm_read_*() APIs.
In some cases the header needed to be added in the .cpp since it was
removed from the .h to reduce scope. In those cases the headers were
also reordered.
9 years ago
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.
9 years ago
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.
9 years ago
Lucas De Marchi
aa370fe758
Replace use of strcmp_P() with strcmp()
9 years ago
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
10 years ago
Gustavo Jose de Sousa
67db430583
AP_GPS: standardize inclusion of libaries headers
...
This commit changes the way libraries headers are included in source files:
- If the header is in the same directory the source belongs to, so the
notation '#include ""' is used with the path relative to the directory
containing the source.
- If the header is outside the directory containing the source, then we use
the notation '#include <>' with the path relative to libraries folder.
Some of the advantages of such approach:
- Only one search path for libraries headers.
- OSs like Windows may have a better lookup time.
10 years ago
Randy Mackay
8aa7a3cffc
GPS: suppress compile warning
10 years ago
Randy Mackay
be6089e903
GPS: fix compile warning for NMEA logging
10 years ago
Andrew Tridgell
25fe2b3fb0
AP_GPS: added optional NMEA debug log
...
compile time option for debugging
10 years ago
Andrew Tridgell
3b1b7ea029
AP_GPS: fixed time handling with NMEA driver
10 years ago
Julien BERAUD
a852e48f37
AP_GPS_NMEA: fix gps startup
...
when no valid gps data, gps would restart in a loop. Take the frame without
gps fix into account for frame counting
10 years ago
kozinalexey
20a04bad77
AP_GPS: request RMC message in NMEA driver
10 years ago
Andrew Tridgell
21c895f6f3
AP_GPS: prevent extra NMEA messages causing rapid fix rates
...
unexpected messages could cause the GPS driver to report a very high
fix rate, which can confuse the EKF
10 years ago
Andrew Tridgell
809ff15b43
AP_GPS: make NMEA driver a bit easier to read
...
thanks to crashpilot100
10 years ago
Andrew Tridgell
b81b9e1bb8
AP_GPS: prevent bad NMEA strings from causing overruns in parser
...
fixes issue #961
thanks to crashpilot100 for spotting this!
10 years ago
Andrew Tridgell
59de5a8465
AP_GPS: avoid some float conversion warnings
11 years ago
Andrew Tridgell
0191355488
AP_GPS: fixed init strings to all be in progmem
...
and sent async ...
11 years ago
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
11 years ago
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
11 years ago
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
11 years ago
JakobSt
986417067e
AP_GPS: Improved accuracy of NMEA driver
...
The conversion of ret (32bit-integer) to float reduced accuracy to ~9cm or ~22cm. Now it's ~1cm.
11 years ago
Andrew Tridgell
de96ad9445
AP_GPS: fixed date handling in NMEA driver
11 years ago
Andrew Tridgell
6f5ac1d553
AP_GPS: added support for GPS time in week/millisec
...
also adds time_epoch_usec() for MAVLink SYSTEM_TIME
11 years ago
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
12 years ago
Andrew Tridgell
b43bf44552
AP_GPS: improved the precision of the NMEA driver
...
this brings the NMEA driver to the same lat/lon precision as the uBlox
driver (approx 1cm)
12 years ago
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
12 years ago
Andrew Tridgell
edfebc1f29
AP_GPS: fixed indent-tabs-mode
12 years ago
Andrew Tridgell
b3ec5187f2
AP_GPS: fixed uninitialied variable bugs found with valgrind
12 years ago
Randy Mackay
d7454bb09e
GPS: add 2D fix type
12 years ago
Andrew Tridgell
18db7b2efd
GPS: move _port setting to init()
...
this is needed to avoid constructor ordering dependencies
12 years ago
Andrew Tridgell
18fb9c67f6
AP_GPS: use AP_Progmem
12 years ago
Pat Hickey
9ed023aeb4
AP_GPS: Builds under AP_HAL. Not tested.
12 years ago
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
13 years ago
Andrew Tridgell
ba9543ee04
GPS: NMEA bug fix from Alexey Kozin
...
thanks Alexey!
13 years ago
uncrustify
da81115079
uncrustify libraries/AP_GPS/AP_GPS_NMEA.cpp
13 years ago
rmackay9
8a29f47ce0
AP_GPS: replaced "int" with "int16_t" and "long" with "int32_t"
13 years ago
rmackay9
1e38b0d535
AP_GPS_NMEA: fix from Roberto Navoni to improve NMEA accuracy
13 years ago
Andrew Tridgell
33a2ad7e07
GPS: add stub settings for nav_setting in the other GPS drivers
...
only Ublox supports nav_setting so far
13 years ago
Andrew Tridgell
a8bfc5d8e9
GPS: re-open the serial port with a 256 byte serial receive buffer
...
this ensures all GPS parsers have a 256 byte buffer available
13 years ago
Andrew Tridgell
7fbfcc2721
GPS: fixed some stdint types
13 years ago
James Goppert
14d27b1e4c
Cleaned up AP_GPS formatting.
13 years ago
hazyhxj@gmail.com
b110803dcb
Fix NMEA GPS error
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@3227 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
deweibel@gmail.com
8d7e7ff58e
revert gps lib to 2602
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2608 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
deweibel@gmail.com
5b9e7eff9d
clean up idleTimeout
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2606 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
deweibel@gmail.com
b53b749fc7
Fix initialization of idleTimeout
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2602 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
jasonshort
4a1772b5ff
http://code.google.com/p/arducopter/issues/detail?id=161
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2395 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
james.goppert
7809b0ca2a
Massive warning fixes.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@2089 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago