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.
8 years ago
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.
9 years ago
Andrew Tridgell
b424c49bc7
AP_GPS: change ground course to be in degrees
...
more accuracy for replay
9 years ago
Lucas De Marchi
ff10d1136c
AP_GPS: reorganize includes
...
Due to the way the headers are organized a single change in a
AP_GPS backend would trigger a rebuild for most of the files in the
project. Time could be saved by using ccache (since most of the things
didn't change) but we can do better, i.e. re-organize
the headers so we don't have to re-build everything.
This makes internal headers internal and then other libraries only
depend on the AP_GPS.h header.
9 years ago
Caio Marcelo de Oliveira Filho
c33b86a783
AP_GPS: use millis/micros/panic functions
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
Andrew Tridgell
5da80f44b1
AP_GPS: fixed MTK1.6 time handling
...
my MTK1.6 does not use hectoseconds, it uses milliseconds
10 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
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
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
f67480fa50
AP_GPS: ensure constructors zero all key variables
...
this prevents a crash on PX4 if a GPS is attached after startup
12 years ago
Andrew Tridgell
727f8ff029
AP_GPS: removed the old MTK16 driver
...
the MTK19 driver supports both the 1.6 and 1.9 protocol
12 years ago
Andrew Tridgell
252d11ccfa
AP_GPS: initialise _step to zero in all drivers
...
new() does not zero-fill memory
12 years ago
Andrew Tridgell
f701d0cc85
AP_GPS: a couple more places where we should restart
...
this prevents us losing a byte
12 years ago
Andrew Tridgell
609ef220a6
AP_GPS: more state machine fixes for MTK19 GPS
12 years ago
Andrew Tridgell
c980b32319
GPS: fixed state machine logic errors in MTK19 driver
12 years ago
Andrew Tridgell
8c0d1d7084
GPS: fixed MTK19 driver for AP_HAL merge
12 years ago
Craig@3DR
2de676306e
Improved parsing in auto detect
12 years ago
Craig@3DR
8cfefbc275
Updated rev number in driver
12 years ago
rmackay9
90d7f00965
AP_GPS_MTK16: saved 22 bytes of ram by moving error message into program space.
...
Perhaps there's no point in writing an error message to a console that likely nobody will be viewing anyway.
12 years ago
rmackay9
811550cca6
AP_GPS_MTK19: small bug fix re "==" vs "="
...
Also saved 22 bytes of RAM by moving error message into program space.
12 years ago
Craig@3DR
f778961acf
Added support for Mediatek firmware Rev 1.9
12 years ago
Andrew Tridgell
f549950a9c
AP_GPS: remove some debug code
12 years ago
Andrew Tridgell
18db7b2efd
GPS: move _port setting to init()
...
this is needed to avoid constructor ordering dependencies
12 years ago
Pat Hickey
9ed023aeb4
AP_GPS: Builds under AP_HAL. Not tested.
12 years ago
Craig@3DR
2586c7a32a
Updated the MediaTek configuration
...
to set the minimum speed the GPS must be moving to update the position to 0 m/s.
to enable SBAS / WAAS / DGPS position fixes.
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
uncrustify
a48aa18d6f
uncrustify libraries/AP_GPS/AP_GPS_MTK16.cpp
13 years ago
Andrew Tridgell
ddf9541c0a
AP_GPS: fixed build of new MTK code
13 years ago
Craig Elder
2493ffaad1
GPS: Corrections to Media Tek GPS Driver. Change to 5Hz and SBAS
13 years ago
rmackay9
8a29f47ce0
AP_GPS: replaced "int" with "int16_t" and "long" with "int32_t"
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
d90dc4d893
GPS: change back to 4Hz for MTK GPS
...
this will hopefully fix the NO_GPS problems that have been regularly
happening in recent months. I will watch the logs carefully to see if
the problem recurs
13 years ago
Randy Mackay
ed19c25a97
Arduino 1.0 - changed all #includes of "WProgram.h", "wiring.h" and "WConstants.h to "Arduino.h".
...
Modified FastSerial's write function to return size_t (number of bytes written).
13 years ago
Randy Mackay
c24b5229e1
AP_GPS - updated MTK rate to 10Hz and fixed lat/lon printing inaccuracy in Arducopter logs and AP_TEST example sketch
13 years ago
Andrew Tridgell
b4965d34a9
GPS: added FAKE_GPS_LOCK_TIME
...
this allows you to fake up a GPS lock after a specific number of
seconds
13 years ago
James Goppert
14d27b1e4c
Cleaned up AP_GPS formatting.
13 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
deweibel
e620eb1326
Change MediaTek timestamps to millisecond Time of Day
...
Add epoch method to return timestamp epoch.
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1589 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago
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
14 years ago
james.goppert
dfe94bc77e
Removed delay from MTK library.
...
git-svn-id: https://arducopter.googlecode.com/svn/trunk@1189 f9c3cf11-9bcb-44bc-f272-b75c42450872
14 years ago