Randy Mackay
81b20e971b
AP_GPS_UBLOX: use get_rate_ms accessor
2017-03-13 11:31:51 +11:00
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
2017-03-13 11:31:51 +11:00
Randy Mackay
729ce34ce3
AP_GPS: add all_consistent and blend health for use as pre-arm check
2017-03-13 11:31:51 +11:00
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
2017-03-13 11:31:51 +11:00
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
2017-03-13 11:31:51 +11:00
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
2017-03-13 11:31:51 +11:00
Randy Mackay
e764f0d5d0
AP_GPS: sanity check update rate
...
Also minor spelling and parameter documentation fix
2017-03-13 11:31:51 +11:00
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
2017-03-13 11:31:51 +11:00
Randy Mackay
cd379b0e86
AP_GPS: move time_epoch calcs into proper file
...
The frontend implementation was in the backend file
No functional change
2017-03-13 11:31:51 +11:00
Randy Mackay
a79474dcbc
AP_GPS: minor comment fix
...
No functional change
2017-03-13 11:31:51 +11:00
Randy Mackay
201504dbae
AP_GPS: remove unused get_antenna_offsets()
...
callers always specify an instance
2017-03-13 11:31:51 +11:00
Randy Mackay
2d0258b6a2
AP_GPS: remove unused highest_supported_status(void)
2017-03-13 11:31:51 +11:00
Randy Mackay
ac86c7999b
AP_GPS_MAV: set have_accuracy as boolean
2017-03-13 11:31:51 +11:00
Michael Oborne
e4ff445ea7
AP_GPS_GSOF-NOVA: fix last_gps_time_ms
2017-03-09 10:41:48 -08:00
Michael du Breuil
398ff823c0
AP_GPS: Always consider ublox as configured in sitl
2017-03-07 12:43:30 +11:00
Michael du Breuil
44bcd74a57
AP_GPS: Remove dead SBF code
...
CID 125035
2017-03-06 15:24:22 +00:00
Michael du Breuil
7b483a1460
AP_GPS: Ublox, always quickly set the rates until we have fetched the version
2017-02-23 07:33:58 +11:00
Andrew Tridgell
3ce7e4b322
AP_GPS: fixed fake uBlox with PVT message support
2017-02-21 06:09:33 +11:00
Lucas De Marchi
9f09442548
AP_GPS: rename UNIX_OFFSET
...
To keep consistency with other constants and make clear the unit.
2017-02-11 01:34:09 -08:00
murata
30151c8253
Global: Define MSEC_PER_SEC, MSEC_PER_WEEK, SEC_PER_WEEK and UNIX_OFFSET.
2017-02-11 01:34:09 -08:00
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.
2017-02-06 09:27:22 -08:00
murata
b77941c4f2
AP_GPS: Delete unnecessary code.
2017-02-03 15:11:27 +09:00
Andrew Tridgell
c0cc2faefd
AP_GPS: disable esoteric GPS types on FMUv2
2017-01-29 16:31:06 +11:00
Francisco Ferreira
7ea0baefb1
AP_GPS: re-fix SBP fix status
2017-01-28 17:43:58 +00:00
Francisco Ferreira
512bd08326
AP_GPS: fix SBP supported status
2017-01-28 17:29:48 +00:00
priseborough
6d53ab7b76
AP_GPS: minor comment change
2017-01-27 16:57:42 +09:00
priseborough
4a490d522e
AP_GPS: use standard unit descriptor for milliseconds
2017-01-27 16:57:42 +09:00
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).
2017-01-27 16:57:42 +09:00
Andrew Tridgell
bdc0630ccf
AP_GPS: added all_configured() function
...
used for EKF to tell if gps_lag is valid
2017-01-27 16:57:42 +09:00
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.
2017-01-27 16:57:42 +09:00
murata
3200f24106
AP_GPS: Unify from print or println to printf.
2017-01-27 18:20:22 +11:00
Francisco Ferreira
1fc0dbe0bd
AP_GPS: fix GSOF highest supported status
2017-01-26 00:04:32 +00:00
Michael Oborne
8e9f382240
AP_GPS_GSOF: update for new GPS_FIX's
2017-01-26 00:04:19 +00:00
Michael du Breuil
0cf41c9288
AP_GPS: Force ublox baud rate if we are allowed to config the GPS
2017-01-26 07:48:22 +09:00
Michael du Breuil
855d91145a
AP_GPS: ublox - fix incorrect step ordering
2017-01-25 03:44:57 +00:00
Michael du Breuil
1c1e6e9398
AP_GPS: Support more fix types
2017-01-25 03:44:42 +00:00
Michael Oborne
d05b0d5885
AP_GPS_UBLOX: add pvt message support
2017-01-25 03:34:26 +00:00
Francisco Ferreira
d472fbde0c
AP_GPS: fix PX4 GPS driver leap seconds
2017-01-21 21:59:36 +00:00
Michael du Breuil
c696137a42
AP_GPS: Update the number of leapseconds
2017-01-18 18:07:26 +00:00
Dr.-Ing. Amilcar Do Carmo Lucas
b7f32e216d
AP_GPS: update parameter descriptions
2017-01-09 13:32:28 +09:00
Dr.-Ing. Amilcar Do Carmo Lucas
9aaeb6fe1a
AP_GPS: Add missing GPS Types
2017-01-06 21:24:42 +00:00
Dr.-Ing. Amilcar Do Carmo Lucas
8419045aea
Spell in comments
2017-01-06 10:57:39 -08:00
murata
fd153f2861
AP_GPS: Change search method of GPS type to switch statement.
...
AP_GPS: Correct the tab code to white space.
2016-12-21 10:31:43 +09:00
priseborough
453ced4a38
AP_GPS: remove unused EKF1 include
2016-12-19 08:07:11 +11:00
Randy Mackay
b296bc1d00
GPS: MAV driver fix for sanity checks of cog, sat count
2016-12-08 15:52:26 +09:00
Randy Mackay
8118222946
GPS: MAV driver fix for GPS_INPUT altitude
2016-12-08 15:52:26 +09:00
Randy Mackay
9e62f12dd7
GPS: MAV driver gets support for HIL_GPS message
2016-12-08 15:52:26 +09:00
Michael du Breuil
d97861d685
AP_GPS: Ublox: Skip SBAS request if we don't want to alter it
2016-11-21 14:15:19 +09:00
Michael Oborne
c62050dc1b
AP_GPS_SBF: fix accuracy reported by driver
2016-11-12 16:42:35 +09:00
Holger Steinhaus
5b66062f85
AP_GPS_PX4: unsubscribe on driver destruction.
2016-11-07 08:00:57 -03:00
murata
c808ee2f49
Global: To nullptr from NULL.
...
RC_Channel: To nullptr from NULL.
AC_Fence: To nullptr from NULL.
AC_Avoidance: To nullptr from NULL.
AC_PrecLand: To nullptr from NULL.
DataFlash: To nullptr from NULL.
SITL: To nullptr from NULL.
GCS_MAVLink: To nullptr from NULL.
DataFlash: To nullptr from NULL.
AP_Compass: To nullptr from NULL.
Global: To nullptr from NULL.
Global: To nullptr from NULL.
2016-11-02 16:04:47 -02:00
Michael Oborne
c5f8d8a695
AP_GPS_SBF: change reported altitude from geoid to MSL
2016-11-01 13:06:59 +09:00
Randy Mackay
aeb1de08f5
AP_GPS: fix MAV compile error
2016-10-29 16:45:00 +09:00
Randy Mackay
9290ee65cc
AP_GPS: MAV driver uses existing baud rates
...
GPS_INPUT messages can arrive through any mavlink serial port so we shouldn't be modifying any port's baud rates.
2016-10-29 14:33:44 +09:00
Peter Barker
7b75a4ec09
AP_GPS: add missing parameter metadata
2016-10-27 09:15:03 -07:00
Andrew Tridgell
af332cb336
AP_GPS: use const reference
2016-10-27 15:05:58 +11:00
priseborough
1dec6dd9b0
AP_GPS: Update parameter documentation
...
Add brief description of body frame conventions.
2016-10-27 14:54:45 +11:00
priseborough
b51c9dea6c
AP_GPS: Add parameters defining antenna offset in body frame
2016-10-27 14:54:41 +11:00
murata
762a66c9e5
AP_GPS_SBF: Adjust the initial value of HDOP
2016-10-26 09:54:59 +11: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
Peter Barker
6e72c899d1
AP_GPS: AP_GPS_GSOF: remove unused variable
2016-10-24 08:57:56 -02:00
Peter Barker
e17a71c6cc
AP_GPS: AP_GPS_NOVA: remove unused variables
2016-10-24 08:57:55 -02:00
Randy Mackay
e6e6e36da7
AP_GPS_MAV: fix hdop conversion
2016-10-18 20:24:55 +09:00
Lucas De Marchi
ae53920e5b
build: don't build examples with old build system
...
We currently check examples are buildable with waf which doesn't need
the libraries to be specified in a make.inc file. Having the makefiles
there is misleading since people try to build and realize the build is
broken.
2016-10-11 13:03:08 +11:00
Andrew Tridgell
9caf44b494
AP_GPS: update drivers for changed inject_data() API
...
need 16 bit length
2016-10-11 11:00:35 +11:00
Andrew Tridgell
500df1edf2
AP_GPS: support GPS_RTCM_DATA fragmented MAVLink message
...
support re-assembly of RTCM data packets
2016-10-11 11:00:35 +11:00
Michael du Breuil
cf5e79f80e
AP_GPS: ublox support user controlled rate updates
...
Also corrects accepting bad nav rates as configured, and fixes a incorrect
index as to which GPS is being updated
2016-10-11 10:44:51 +11:00
Michael du Breuil
86c2b1d84a
AP_GPS: u-blox Remove 5Hz warning
...
The warnings test case is better covered by the rest of the driver
while it is performing the normal settings audit.
2016-10-11 10:44:51 +11:00
Michael du Breuil
3e3f539a6a
AP_GPS: Raise target baud of u-blox devices
...
A knockon effect is that we need less config strings as raw logging
on u-blox will use the same baud rates
2016-10-11 10:44:50 +11:00
Andy Little
0d113b265c
Examples: fix examples for px4
...
The change to use AP_BoardConfig messed up the examples. Here are some
updated but there are plenty more to do.
2016-10-04 12:50:47 -03:00
Michael du Breuil
9c4b3ec1e1
AP_GPS: Fix incorrect incrementing of last_baud rate
...
This is a revert of 7c3b8dceb
which tried to start at index 0 of the
array of baudrates, however because of the way last_baud is used
this lead to a GPS always being reported as being 1 index off which
lead to users getting reports of baud rates that their GPS wasn't
configured for
Also renames last_baud to be current_baud as that is how it's
actuallly used and should reduce future confusion
And fixed some tabs/vs space issues around where the last_baud rate
was incremented.
2016-09-25 08:50:47 -07:00
Michael Oborne
11c376588d
AP_GPS_NOVA: support tersus/novatel/comnav gps
2016-09-20 10:53:49 +10:00
Matthew Brener
06388b0417
Global: Fix typos
2016-09-17 00:36:36 -03:00
Randy Mackay
38b3d3ff3a
AP_GPS_MAV: initialise location while handling_msg
...
This reduces a covarity warning but it likely not really an issue because we always initialise newly allocated memory to zero anyway
2016-09-01 12:01:14 +09:00
Lee Hicks
51e8d8a294
AP_GPS: Don't send config blob to GPS unless AUTO_CONFIG=1
...
All GPS types will recieve startup up blob config. For
some recievers this will cause them to hang. This commit
only allows sending of blobs if AUTO_CONFIG=1. Fixes #2622
2016-08-16 10:56:37 +10:00
Lee Hicks
7c3b8dceb9
AP_GPS: Fixed GPS serial speeds starting at 1 instead of 0
...
The counting of this will increment the counter before
selecting the baud speed, skipping the first baud rate.
2016-08-16 10:56:36 +10:00
Lee Hicks
3dd4f30460
AP_GPS: Adding 19200 as serial speed for GPS
...
APM supports baud speeds of 19200, but GPS baud rates
don't support it. This commit adds it to follow APM supported
baud rates.
2016-08-16 10:56:36 +10:00
Holger Steinhaus
cc4fafc3e4
AP_GPS_PX4: fixed GPS epoch calculations
2016-08-02 11:20:48 +10:00
Randy Mackay
6e224158f1
AP_GPS_MAV: use GPS_INPUT_IGNORE_FLAGS
2016-07-12 15:44:46 +09:00
Randy Mackay
e34aa0bc72
AP_GPS_MAV: minor formatting fixes
...
No functional change
2016-07-12 15:44:19 +09:00
Allan Matthew
4249f7dbe6
AP_GPS: Add GPS_MAV type and accept GPS_INPUT message
2016-07-12 15:34:27 +09: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
2239fd6a6e
AP_GPS: fixed hexdigit in NMEA detector
...
thanks to adorus for spotting this! See issue#4255
2016-06-06 07:36:31 +10:00
Andrew Tridgell
af116d238f
AP_GPS: use zero length flexible arrays
...
this works with gcc-6.1 and also works with asan. Hopefully it will
make coverity happy too.
2016-05-25 19:55:49 +10:00
Lucas De Marchi
035937ea7e
AP_GPS: add some safety checks to _parse_decimal_100()
2016-05-20 10:06:45 -03:00
Lucas De Marchi
994b2fc966
AP_GPS: add unit test for _parse_decimal_100()
2016-05-20 10:06:44 -03:00
Lucas De Marchi
fc6dd97e61
AP_GPS: make _parse_decimal_100() a static function
...
This allows to easily write tests for it as opposed to having to
construct the entire object.
2016-05-20 10:06:44 -03:00
Bert Regelink
7379d120e1
AP_GPS: fix _parse_decimal_100() with negative numbers
...
_parse_decimal_100() did not parse the fractional part for negative
numbers. Furthermore, use the third decimal (when present) for proper
rounding.
2016-05-20 10:06:44 -03:00
Lucas De Marchi
39bd196481
AP_GPS: do not use flexible array in union
...
We actually don't want a flexible array in this union, but rather a way
to access it byte by byte. This fixes the build for gcc >= 6
In file included from ../../libraries/AP_GPS/AP_GPS.cpp:24:0:
../../libraries/AP_GPS/AP_GPS_ERB.h:93:23: error: flexible array member in union
uint8_t bytes[];
^
compilation terminated due to -Wfatal-errors.
In file included from ../../libraries/AP_GPS/AP_GPS_ERB.cpp:22:0:
../../libraries/AP_GPS/AP_GPS_ERB.h:93:23: error: flexible array member in union
uint8_t bytes[];
^
compilation terminated due to -Wfatal-errors.
In file included from ../../libraries/AP_GPS/AP_GPS_MTK.cpp:25:0:
../../libraries/AP_GPS/AP_GPS_MTK.h:75:23: error: flexible array member in union
uint8_t bytes[];
^
compilation terminated due to -Wfatal-errors.
In file included from ../../libraries/AP_GPS/AP_GPS_MTK19.cpp:26:0:
../../libraries/AP_GPS/AP_GPS_MTK.h:75:23: error: flexible array member in union
uint8_t bytes[];
^
compilation terminated due to -Wfatal-errors.
In file included from ../../libraries/AP_GPS/AP_GPS_SIRF.cpp:22:0:
../../libraries/AP_GPS/AP_GPS_SIRF.h:101:23: error: flexible array member in union
uint8_t bytes[];
^
compilation terminated due to -Wfatal-errors.
In file included from ../../libraries/AP_GPS/AP_GPS_UBLOX.cpp:23:0:
../../libraries/AP_GPS/AP_GPS_UBLOX.h:387:23: error: flexible array member in union
uint8_t bytes[];
^
compilation terminated due to -Wfatal-errors.
2016-05-16 13:50:39 -03:00
Ricardo de Almeida Gonzaga
4047fb63fc
AP_GPS: Fix typos
2016-05-13 19:20:06 -03:00
dgrat
41661f815f
AP_Math: Replace the pythagorous* functions with a variadic template
...
The new function can deal with a variable number of function parameters.
Additionally, I renamed the functions to norm(), because this is the
standard name used in several other projects.
2016-05-10 11:41:26 -03:00
Andrew Tridgell
5ddb872b79
AP_GPS: allow Replay to set last sample time
2016-05-07 18:27:23 +10:00
Andrew Tridgell
428923b4b1
AP_GPS: use 3D velocity for uBlox
...
this makes uBlox use the 3D velocity for ground course and speed,
ensuring we use a consistent value everywhere (so same vector in EKF
as in navigation)
2016-05-07 18:27:23 +10:00
Andrew Tridgell
d24bbcd1ff
AP_GPS: convert vdop to cm
2016-05-07 18:27:22 +10: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
Andrew Tridgell
4e5f1374da
AP_GPS: added setHil_Accuracy()
2016-05-07 18:27:19 +10:00
Andrew Tridgell
c85607b80c
AP_GPS: added time_epoch_convert() function
...
used by replay to get identical timestamps
2016-05-07 18:27:18 +10:00
Andrew Tridgell
69e233a39d
AP_GPS: fixed init string for SBF GPS
...
coverity #125042
2016-04-26 16:51:29 +10:00
Randy Mackay
3c7b2232b0
AP_GPS_GSOF: remove unused last_hdop
...
resolves a compiler warning
2016-04-23 23:06:22 -07:00
Andrew Tridgell
2a214f1e46
AP_GPS: support a wider variety of NMEA receivers
...
some reeivers use a different talker ID. This allows us to accept
them.
2016-04-18 15:30:17 +10:00
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.
2016-04-14 21:01:51 -03:00
Lucas De Marchi
affa759fb4
AP_GPS: add missing override
2016-04-13 11:27:19 -03:00
Michael du Breuil
2538c17ee0
AP_GPS: add fetching of gps configuration failure reasons
2016-04-13 11:24:01 -03:00
Ricardo de Almeida Gonzaga
5bd034a5a8
Global: start using cmath instead of math.h
2016-04-05 21:06:19 -07:00
Michael Oborne
92106a944f
AP_GPS_UBLOX: add data injection support
2016-03-18 15:51:32 +11:00
Lucas De Marchi
cd266fbf4f
AP_GPS: replace header guard with pragma once
2016-03-16 18:40:40 +11:00
Alexey Bulatov
3933ac2a63
AP_GPS: Added ERB to AP_GPS
2016-03-02 06:04:52 -08:00
Alexey Bulatov
7e2c822499
AP_GPS: Structure for detect ERB
2016-03-02 06:04:46 -08:00
Alexey Bulatov
97190c89d1
AP_GPS: ERB GPS driver
...
ERB - Emlid Reach Binary protocol.
That driver designed for communication between Reach
and ArduPilot.
Provided opportunities:
- Detection of the driver
- Parsing of input messages: status of transmitter
and navigation information.
- Inject GPS messages from base
2016-03-02 06:04:39 -08:00
Andrew Tridgell
04bac8a446
AP_GPS: removed duplicate dataflash write of ublox version
2016-02-24 14:26:57 +11:00
Andrew Tridgell
14bd4ba2c7
AP_GPS: removed console print for GPS type
...
it is now sent as a STATUSTEXT
2016-02-24 14:22:48 +11:00
Michael du Breuil
1426ff2732
AP_GPS: Broadcast what type of GPS is found and at what baud rate
2016-02-24 14:22:48 +11:00
Tom Pittenger
12fab6c59a
AP_GPS: save cfg only when needed
...
added GPS_SAVE_CFG param option 2
2016-02-12 15:33:33 -08:00
Tom Pittenger
18163bd01f
AP_GPS_UBLOX: save cfg only when needed
...
added GPS_SAVE_CFG param option 2
2016-02-12 15:33:18 -08:00
Michael du Breuil
55e64b3622
AP_GPS: u-blox: copy paste typo in a #else
2016-02-12 15:33:08 -08:00
Michael du Breuil
217a06322b
AP_GPS: u-blox: don't throw 5hz update warnings if no fix
...
5hz update warnings are only valid if you have a fix, without a fix it adds load
to the GPS without any benefit. Our _5hz time messages are depenend upon GPS fix
time which isn't available yet
2016-02-12 15:32:41 -08:00
Michael du Breuil
726bf110cc
AP_GPS: update save_cfg description
...
Saving config is not expected to work on a LEA-6H based on user reports, so the parameter should warn of this
2016-02-12 00:37:05 -08:00
Michael du Breuil
4251ee0e4b
AP_GPS: u-blox verify ublox settings
...
The ublox driver will now continuosly poll for the settings from the GPS and correct any that are found to be in correct.
This status is then reported to the arming library as an additional arming check, allowing the user to be sure that the
gps is correctly configured before using it. If a user has a GPS2 configured that is not present they will fail the arming
checks until after they have disabled the second GPS.
2 new parameters were introduced as well:
-GPS_AUTO_CONFIG: Will not request any configuration packets to attempt to change them. (If the packet is recieved then
a update will be sent to it, but in testing this scenario never occured. This is set to 1 or 0 to change the setting.
(Defaults to 1 enabling auto config)
-GPS_GNSS_MODE2: Behaves the same way as GPS_GNSS_MODE but only applies to the second GPS.
GPS drivers are now allowed 2 seconds of non responsiveness before being unloaded
2016-02-12 00:37:04 -08:00
Andrew Tridgell
a7079b730a
AP_GPS: GPVTG can give new velocity
2016-02-11 18:46:01 +11:00
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
2016-02-11 18:46:01 +11:00
Peter Barker
ede7ffedfc
AP_GPS: correct #if from UBLOX_DEBUG to UBLOX_DEBUGGING
2016-01-30 12:48:39 -02:00
Gustavo Jose de Sousa
c2e3f05dbf
waf: ardupilotwaf: prefix build context methods with ap_
...
It helps to distinguish between things from waf and things from ardupilotwaf.
2016-01-22 20:10:29 -02:00
Gustavo Jose de Sousa
3d22490397
waf: examples: use methods from bld instead of ardupilotwaf
2016-01-22 20:10:29 -02:00
Gustavo Jose de Sousa
d281067bcc
waf: make example binaries be placed in 'examples' dir
...
This commit makes examples' wscripts use ardupilotwaf.example() instead of
ardupilot.program().
2016-01-15 16:46:41 -02:00
Michael du Breuil
8c9eafeb3c
AP_GPS: Fix param docs that had incorrect spaces
...
The spaces between values aren't stirpped by the autodoc tool that generates the XML files
2016-01-08 20:17:54 +11:00
Michael Oborne
a42b286c01
AP_GPS_SBF: update logging based on vendor recommendation.
2016-01-08 10:47:05 +11:00
mirkix
dee20a31f1
AP_Notify: Add gps_num_sats
2016-01-07 14:32:56 -02:00
Jonathan Challinger
04dc7130f5
AP_GPS: fix example build
2015-12-29 10:46:35 -08:00
Lucas De Marchi
a096703b06
Global: don't link with AP_Progmem
...
AP_Progmem is not used anymore.
2015-12-27 15:58:12 -02:00
Lucas De Marchi
5bb4e3eda9
AP_GPS: stop using Progmem.h
...
Besides the trivial convertions, while reading
initblob_state[instance].blob we need to be sure to read only one byte
like we were before.
2015-12-27 15:58:12 -02:00
Andrew Tridgell
bc8ee8af36
AP_GPS: added QURT GPS
2015-12-27 16:21:26 +11:00
Aaron Wang Shi
800c142ac0
BH: Support UBLOX GPS M8N
2015-12-21 15:54:30 +11:00
Michael Oborne
1c1eea6119
AP_GPS_SBF: add sd logging by default, improve init
2015-12-07 21:56:44 +09:00
Michael Oborne
0bcc6e324a
AP_GPS_SBF: formatting fixes
2015-12-07 21:56:42 +09:00
Lucas De Marchi
2b5417046b
AP_GPS: remove unused AP_ADC_AnalogSource
2015-12-03 13:32:43 +11:00
Peter Barker
0f9e7a905d
AP_GPS: remove use of AddLogFormats
2015-12-03 13:21:52 +11:00
Michael du Breuil
2f97f9f416
AP_GPS: Fix incorrect values docstring on RAW_DATA
2015-12-03 10:17:22 +09:00
Caio Marcelo de Oliveira Filho
6e7b73610d
waf: add waf support
2015-12-03 07:54:30 +11:00
Lucas De Marchi
2591261af6
Global: rename min and max macros to uppercase
...
The problem with using min() and max() is that they conflict with some
C++ headers. Name the macros in uppercase instead. We may go case by
case later converting them to be typesafe.
Changes generated with:
git ls-files '*.cpp' '*.h' -z | xargs -0 sed -i 's/\([^_[:alnum:]]\)max(/\1MAX(/g'
git ls-files '*.cpp' '*.h' -z | xargs -0 sed -i 's/\([^_[:alnum:]]\)min(/\1MIN(/g'
2015-12-01 16:28:09 -02:00
Caio Marcelo de Oliveira Filho
c33b86a783
AP_GPS: use millis/micros/panic functions
2015-11-20 12:30:48 +09:00
Randy Mackay
36c0beb918
GPS_UBlox: reorder init to resolve compiler warning
...
Also removed duplicate init of noReceivedHdop
2015-11-16 15:09:17 +09:00
Andrew Tridgell
8f4ce7f20b
build: removed all nocore.inoflag files
...
these were APM2 specific
2015-11-16 08:05:17 +11:00
Michael Oborne
2f49fa1531
AP_GPS_GSOF: add second comport to base config
2015-11-15 14:56:49 +08:00
Siddharth Bharat Purohit
5e2382ea09
AP_GPS:UBLOX: send save cfg msg once per 5s and 5 times only
2015-11-10 15:16:55 +11:00
Siddharth Bharat Purohit
360c09f9bd
AP_GPS_UBLOX: send cfg save msg only once every 1 second
2015-11-10 15:16:55 +11:00
Jonathan Challinger
bc708f9808
AP_GPS: add SAVE_CFG parameter make ublox config saving optional
2015-11-10 15:16:55 +11:00
Jonathan Challinger
e82df48631
AP_GPS: save configuration to non-volatile memory in UBlox GPS
2015-11-10 15:16:55 +11:00
Lucas De Marchi
1a9b57da1f
AP_GPS: remove check for GPS_SKIP_SIRF_NMEA
2015-11-04 12:14:15 +11:00
Lucas De Marchi
e31595c60c
AP_GPS: remove check for GPS_RTK_AVAILABLE
2015-11-04 12:14:15 +11:00
Lucas De Marchi
c75c1d84d9
AP_GPS: remove check for GPS_MAX_INSTANCES
...
All supported boards may have more than 1 GPS instance.
2015-11-04 12:14:15 +11:00
Lucas De Marchi
4cef751aef
AP_GPS: remove check for AVR CPUs
...
Remove the checks for HAL_CPU_CLASS > HAL_CPU_CLASS_16 and
HAL_CPU_CLASS >= HAL_CPU_CLASS_75. Corresponding dead code will be
removed on separate commits.
2015-11-04 12:14:14 +11:00
Lucas De Marchi
24e5deb906
AP_GPS: remove comments about AVR boards
2015-11-04 12:14:11 +11:00
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.
2015-10-30 14:35:32 +09: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
20c6ffc5e3
Replace use of UARTDriver::printf_P() with UARTDriver::printf()
...
This also starts to show warnings on places that were already using
wrong printf format strings.
2015-10-30 14:35:25 +09:00
Lucas De Marchi
a964ac38ec
Replace use of print_P() with print()
2015-10-30 14:35:21 +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
Lucas De Marchi
aa370fe758
Replace use of strcmp_P() with strcmp()
2015-10-30 14:35:09 +09:00
Lucas De Marchi
2c38e31c93
Remove use of PSTR
...
The PSTR is already define as a NOP for all supported platforms. It's
only needed for AVR so here we remove all the uses throughout the
codebase.
This was automated with a simple python script so it also converts
places which spans to multiple lines, removing the matching parentheses.
AVR-specific places were not changed.
2015-10-30 14:35:04 +09:00
Caio Marcelo de Oliveira Filho
db1491f079
AP_GPS: remove unnecessary board includes from examples
2015-10-21 09:16:11 +11:00
Caio Marcelo de Oliveira Filho
ec52df991c
build: compile only the HAL files needed by the board
...
Instead of requiring every program to specify the HAL related modules,
let the build system do it (in practice everything we compiled depended
on HAL anyway). This allow including only the necessary files in the
compilation.
2015-10-21 09:16:07 +11:00
Caio Marcelo de Oliveira Filho
2e464a53c2
AP_HAL: make code not depend on concrete HAL implementations
...
The switching between different AP_HAL was happening by giving different
definitions of AP_HAL_BOARD_DRIVER, and the programs would use it to
instantiate.
A program or library code would have to explicitly include (and depend)
on the concrete implementation of the HAL, even when using it only via
interface.
The proposed change move this dependency to be link time. There is a
AP_HAL::get_HAL() function that is used by the client code. Each
implementation of HAL provides its own definition of this function,
returning the appropriate concrete instance.
Since this replaces the job of AP_HAL_BOARD_DRIVER, the definition was
removed.
The static variables for PX4 and VRBRAIN were named differently to avoid
shadowing the extern symbol 'hal'.
2015-10-21 09:16:07 +11:00
Caio Marcelo de Oliveira Filho
b5abab9d37
AP_GPS_GSOF: minor tweak to avoid warning
...
Fixes the issue of three unused variables, two of which were used in a
commented Debug() call.
To keep the convenient debug message (and the variable names for the
data bytes), this patch uncomment the debug call but wrap the variables
and the debug call around an ifdef for the local symbol
gsof_DEBUGGING. So by turning it on, the debug will already be in place.
The Debug() call was modified to actually compile and include the third
variable in the output.
2015-10-10 14:34:54 +09:00
Michael Oborne
8ec9ab6ad3
AP_GPS: add SBF and GSOF to gps documentation
2015-10-06 15:00:46 +11:00
Michael Oborne
0fceb76493
AP_GPS_GSOF: add trimble gsof driver
2015-10-06 15:00:46 +11:00
Michael du Breuil
75c0644b9a
AP_GPS: Use state.instance instead of trying to track instance numbers inside of the ublox driver
2015-09-23 20:42:42 -07:00
Andy Piper
5adb6d2b89
AP_GPS: Support UBX messages for dual UBLOX GPS setups.
...
Add extra DOP information to UBX precision messages.
2015-09-23 20:41:50 -07:00
Andrew Tridgell
6fbe88ba3a
AP_GPS: improved fake ublox to give enough for EKF health
2015-09-14 11:36:15 +10:00
Andrew Tridgell
e87139eb32
AP_GPS: fixed a build warning
2015-09-14 11:36:10 +10:00
Andrew Tridgell
d07d2f3a46
AP_GPS: removed UBX3 message
...
replaced by GPA and GPA2 messages
2015-09-09 15:01:45 +10:00
Randy Mackay
f1322252ae
GPS: fix GNSS_MODE param descriptions
...
Thanks to Michael DuBreuil for noticing the problem and providing the correction
2015-09-09 13:40:32 +09:00
Michael Oborne
88cf710f94
AP_GPS_SBF: add accuracy estimates
2015-09-09 12:28:25 +10:00
Michael du Breuil
9f02834f6d
AP_GPS: Broadcast vDOP data over mavlink
2015-09-09 11:38:12 +10:00
Michael du Breuil
0e3a188f6f
AP_GPS: Read the vdop information from a ublox GPS
2015-09-09 11:38:12 +10:00
Michael Oborne
993904f01c
AP_GPS_SBF: add init string and increase union size
2015-09-07 12:11:47 +10:00
Michael Oborne
cce46cf0c5
AP_GPS_SBF: add support for Septentrio gps
2015-09-03 19:43:31 +10:00
Randy Mackay
6701d53d49
GPS: add GNSS_MODE parameter bitmask
2015-09-01 12:19:59 +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
Randy Mackay
9ef6abf613
AP_GPS: config file for Ublox M8N
...
This is not directly used by the driver but this directory is where we place the recommended GPS config files
2015-08-27 09:54:22 +09:00
Tom Pittenger
816d1f0e1b
AP_GPS: resolve compiler warning re init order
2015-08-25 13:51:33 +09:00
Andrew Tridgell
31f20db139
AP_GPS: provide hdop and speed accuracy with UAVCAN GPS
2015-08-23 09:49:52 +10:00
Lucas De Marchi
55beb6bc0f
AP_GPS: standardize inclusion of libaries headers
...
Do the missing header changes due to changing the code before the pr
getting accepted.
2015-08-18 17:12:51 +10:00
Michael du Breuil
4f9fbc5aa7
AP_GPS: Fix a bound error when calculating GNSS minimum channels.
...
This is really just calculating the hamming weight of the GNSS_MODE bitmask, but I don't know if the APM compiler could handle the GCC intrinsic that could calculate it faster, and this is done so rarely there isn't a significant penalty to using the for loop.
2015-08-13 15:15:20 +10:00
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.
2015-08-11 16:28:43 +10:00
Michael du Breuil
c29b19f768
AP_GPS: Fix a typo on spelling received
2015-08-08 13:22:04 +09:00
Michael du Breuil
bc26eaab63
AP_GPS: Ublox: fall back to the DOP if hDOP hasn't come in yet
...
Provides a stable fallback, and can be considered fairly safe from the perspective that it provides a worse value then the hDOP under almost all scenarios.
2015-08-07 21:21:48 +10:00
Michael du Breuil
c704102dcd
AP_GPS: Default the value of hdop to 99.99 if no value has been read yet.
2015-08-04 22:10:02 +09:00
Andrew Tridgell
087e729748
AP_GPS: re-enable SBAS config on APM2 for uBlox
2015-07-30 11:04:31 +10:00
Andrew Tridgell
b6beeb6f2f
AP_GPS: save some memory and code space on APM2 for ublox
...
don't include structures we don't need for low end CPUs
2015-07-30 08:46:20 +10:00
Randy Mackay
8aa7a3cffc
GPS: suppress compile warning
2015-07-29 16:53:18 +09:00
Randy Mackay
be6089e903
GPS: fix compile warning for NMEA logging
2015-07-29 16:53:16 +09:00
Andrew Tridgell
25fe2b3fb0
AP_GPS: added optional NMEA debug log
...
compile time option for debugging
2015-07-29 11:07:01 +10:00
Michael du Breuil
5c9d248407
AP_GPS: Fix copy/paste error in ublox (uncovered by coverity)
2015-07-28 18:01:02 +09:00
Michael du Breuil
9d53aa77eb
AP_GPS: Add reboot required docstring
2015-07-25 10:56:19 +09:00
Michael du Breuil
59dda49cce
AP_GPS: Fix missing reserved fields in the UBX-RXM-RAWX message
2015-07-22 21:31:10 +10:00
Michael du Breuil
09fef505e0
AP_GPS: With a ublox driver, accept a packet if it will fit in the buffer
2015-07-22 21:31:10 +10:00
Michael du Breuil
22b16b4532
AP_GPS: Enable selecting what GNSS system to use if the reciever supports it
...
Ublox 7 and 8 seires use a UBX-CFG-GNSS message to enable satellite constellations. The default value does not enable any additional ones, and any constellations the reciever doesn't report knowing about are not configured.
2015-07-22 21:31:10 +10:00
Michael du Breuil
47592a1953
AP_GPS: Raise the baud rate on a ublox GPS if using RAW logging
...
the implementation leaves an easy path forward for providing a different startup blob for all the GPS's if raw logging is enabled
2015-07-22 21:31:09 +10:00
Michael du Breuil
19bb96b9cb
AP_GPS: Improve startup logic for detecting what gps is connected
...
Remove race condition on sending intial blob to the GPS, it was possible to send a blob that got the GPS configured enough to allow the autodetect to take over (and then some drivers like ublox would not finish sending the blob, which has potential details that the driver might have needed to send)
Limit the delay to checking for NMEA gps to only checking after all the available baud rates have been checked
Since a UBlox will actually report having DGPS (due to SBAS or RTCM data) actually report this as the highest supported mode
2015-07-22 21:31:09 +10:00
Randy Mackay
6f72d202fe
GPS: fix parameter descriptions
2015-07-21 19:50:12 +09:00
Lucas De Marchi
9d59b43920
AP_GPS: use ARRAY_SIZE macro
2015-07-21 14:24:54 +09:00
Andrew Tridgell
3b1b7ea029
AP_GPS: fixed time handling with NMEA driver
2015-07-20 09:15:32 +10:00
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
2015-07-20 09:14:15 +10:00
Randy Mackay
7d2fe3cc2b
AP_GPS_UBlox: remove unused member
2015-07-14 15:02:15 +09:00
Randy Mackay
2c33250bee
AP_GPS_UBlox: send_next_rate_update always runs all steps
...
Moving the if, endif checks within the case statement ensures the state
machine goes through all 10 states
2015-07-14 15:02:13 +09:00
Randy Mackay
4b015d2091
AP_GPS: remove compiler warnings
2015-07-14 15:02:10 +09:00
Randy Mackay
df3a04e284
AP_GPS: reduce fake Ublox hdop to 130
2015-07-14 15:02:08 +09:00
Andy Piper
5ccc58ffb4
AP_GPS: Read actual hDOP value from UBLOX messages
...
Before we were reading the position DOP and calling it hDOP. Since the
other drivers actualy read hDOP it seem best to do the same.
Fixes issue 462.
2015-07-14 15:02:03 +09:00
Julien BERAUD
b32259307d
AP_GPS: Add baudrate 230400 for GPS
...
Needed by bebop gps by default
2015-07-10 10:12:52 +10:00
kozinalexey
20a04bad77
AP_GPS: request RMC message in NMEA driver
2015-07-06 11:16:12 +10:00
dzollo
5d5d9dc137
AP_GPS: Fix max/min bug on SBP buffering. Log messages whether SBP driver recognizes the msg_type or not.
2015-07-06 10:53:35 +10:00
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
2015-07-03 22:08:05 +10:00
Michael du Breuil
a382ce2b0c
AP_GPS: Add support for logging ublox RXM-RAWX messages
...
Can only record 32 satellites raw info before memory corruption occurs. (And raised the limit on normal RXM-RAW messages to 22)
2015-06-30 09:05:49 +10:00
mirkix
38a8a772f8
AP_GPS: Add fix status 3D+DGPS
2015-06-30 09:00:31 +10:00
Randy Mackay
ef20676c67
GPS: fix INJECT_TO param desc and add definition
...
No functional change
2015-06-27 16:31:03 +09:00
Andrew Tridgell
f77ffd30f6
AP_GPS: fixed HIL GPS driver to make have vertical velocity sticky
2015-06-17 12:46:56 +10:00
Tom Pittenger
3544549cf4
AP_GPS: Allow switching primary GPS instance with 1 sat difference
...
Rapid switching between GPS receivers can cause real problems.
Switch if:
1) secondary GPS has 1 more satellite for at least 20 seconds
OR
2) secondary GPS has 2 more satellites for at least 5 seconds
Fixes https://github.com/diydrones/ardupilot/pull/2320
2015-06-11 21:33:06 +10:00
Eugene Shamaev
c6c6e2dc13
AP_GPS: add comments to example sketch
2015-06-08 10:04:36 +09:00
Andrew Tridgell
9a7b283322
AP_GPS: fixed enable of RXM_RAW on uBlox on Pixhawk
...
if version detection was disabled this would never trigger
2015-06-02 16:52:08 +10:00
Andrew Tridgell
e18a2df64e
AP_GPS: convert example from .pde to .cpp
2015-06-01 16:58:11 +10:00
Andrew Tridgell
7320a35ad2
AP_GPS: convert example from .pde to .cpp
2015-06-01 16:58:11 +10:00
Andrew Tridgell
084521243e
AP_GPS: fixed some build warnings
2015-05-30 22:51:00 +10:00
Peter Barker
feb85ef7d5
AP_GPS: unused SBP struct gets 64-bit timestamp
2015-05-27 11:54:16 +10:00
Peter Barker
4d67ccb338
AP_GPS: use 64-bit timestamps for dataflash logs
2015-05-27 11:54:16 +10:00
Andrew Tridgell
b0932548d8
AP_GPS: enable NMEA GPS on AntennaTracker
...
we have enough flash space for it
2015-05-21 07:30:21 +10:00
Randy Mackay
fa4ba456b4
GPS: fix example sketches
2015-05-07 14:01:14 +09:00
Andrew Tridgell
878eb88c3a
AP_GPS: avoid expanding the ublox buffer on APM2
2015-05-05 13:25:34 +10:00
Micheal Knight
ee85d37ee2
AP_GPS: added logging of RXM_RAW messages for UBlox
...
this will allow for post-flight RTK processing of DF logs
2015-05-05 13:25:34 +10:00
Andrew Tridgell
a7c3125bcc
AP_GPS: fixed warnings in SBP driver
2015-05-05 09:45:57 +10:00
Andrew Tridgell
2be45bc7e6
AP_GPS: fix for HAL_SITL rename
2015-05-05 09:45:55 +10:00
Andrew Tridgell
f21aa17980
AP_GPS: fixed sending of GPS_RAW_INT with multiple links
...
thanks to ziltoid2 for this fix! See PR #2132
2015-04-24 08:21:00 +10:00
Niels Joubert
a5beef00d1
GPS: Official Swift Binary Protocol GPS Driver v3 for Piksi GPS
...
DRIVER FEATURES:
- All logic for RTK vs Normal now lives inside Piksi
- Supports observation uplink through telem radio
- Supports full SBP packet logging
- Reports high-rate green blinking to indicate RTK lock.
- Switchable to accept only Float or Integer RTK locks.
THIS REQUIRES PIKSI FIRMWARE v0.14 OR HIGHER
- Uses Piksi's new Pseudo-Absolute-Positioning mode
- Onboard Piksi must have Pseudo-Absolute mode enabled
- Ground Station Piksi must have a surveyed location in settings
- Ground Station Piksi must send its location to Onboard Piksi.
NEXT STEPS REQUIRED:
- EKF needs to take higher accuracy GPS into account
- EKF needs to take GPS RTK height into account
- GCS needs to support sending SBP observation packets
--- MAVProxy patch forthcoming
2015-04-24 08:01:32 +10:00
Randy Mackay
7e43eaafab
GPS: TYPE param description to PX4-UAVCAN
2015-04-23 20:17:26 +09:00
Staroselskii Georgii
4a3e61f4e4
AP_GPS: turn UBlox autodetection only for NavIO
2015-04-14 10:45:49 +10:00
Staroselskii Georgii
47a336d192
AP_GPS: added Ublox' hardware generation autodetection
2015-04-14 10:45:49 +10:00
Gustavo Jose de Sousa
be67b019a7
AP_GPS: Add missing setup for GPS_AUTO_test
...
GPS_AUTO_test was missing some setup lines.
2015-04-14 09:27:41 +10:00
Randy Mackay
cbcd32d698
GPS: integrate Serial Manager instance
2015-04-01 14:59:20 -07:00
Randy Mackay
883e23b97d
GPS_Glitch: remove class
...
This logic is now within the EKF
2015-03-13 16:40:48 +09:00
Andrew Tridgell
e0870d5038
AP_GPS: disable NMEA and SiRF on AVR 2560
...
we are too low on flash space for plane on APM2 now
2015-03-13 10:30:00 +11:00
Andrew Tridgell
5da80f44b1
AP_GPS: fixed MTK1.6 time handling
...
my MTK1.6 does not use hectoseconds, it uses milliseconds
2015-03-13 10:29:36 +11:00
ustas
a2d5ac6805
AP_GPS: add includes for success build example sketch
...
include AP_Scheduler.h for achieve build GPS_UBLOX_passthrough example
2015-03-11 21:30:31 +09:00
Grant Morphett
e7e9e1adf0
AP_GPS: Changes to fix the warnings in rover sitl build.
...
We are starting the process of resolving all the warnings in the
ardupilot builds of all vehicles and platforms.
2015-02-11 18:16:45 +11:00
Andrew Tridgell
a8c1d3a134
AP_GPS: fixed SerialManager for test sketches
2015-02-09 11:47:31 +11:00
Andrew Tridgell
362b53e1da
AP_GPS: force flow control off on GPS serial ports
2015-01-29 15:53:20 +11:00
Andrew Tridgell
9ba2fefde3
AP_GPS: update for find_serial() change
2015-01-29 15:37:08 +11:00
Randy Mackay
ebf5f98dbd
GPS: detect_instance does not set uart rx, tx size
2015-01-29 14:05:12 +11:00
Randy Mackay
2eddecb10d
GPS: use SerialManager for init
2015-01-29 14:05:12 +11:00
Randy Mackay
1141363868
GPS: fix example sketches
2015-01-28 17:15:39 +09:00
Andrew Tridgell
62e7778ba8
AP_GPS: fixed build warning
2015-01-19 11:22:10 +11:00
Andrew Tridgell
d34e5b3f42
AP_GPS: fixed PX4 GPS driver for new upstream format
2015-01-09 11:37:38 +11:00
Andrew Tridgell
ef55a3c6a6
AP_GPS: keep reporting GPS status messages when no GPS at 1Hz
...
to ensure the GCS knows that we have lost the GPS we need to keep
reporting GPS_RAW_INT messages when the GPS disappears. Sending at 1Hz
should be sufficient
Fixes issue #1722
2015-01-02 17:10:23 +11:00
Andrew Tridgell
3354cb37d0
AP_GPS: fixed vertical velocity in Replay
...
fixed NavEKF use of velocity velocity
2014-12-09 18:57:17 +11:00
Holger Steinhaus
ebed80cd2a
AP_GPS: work-around for invalid time reported by PX4 GPS
2014-11-28 13:30:21 +01:00
Holger Steinhaus
df7c4baed9
AP_GPS: check lock type before accepting position and speed information
2014-11-28 13:26:51 +01:00
Andrew Tridgell
908ad46e8e
AP_GPS: fixed example build
2014-11-28 10:40:26 +11:00
Andrew Tridgell
809ff15b43
AP_GPS: make NMEA driver a bit easier to read
...
thanks to crashpilot100
2014-11-16 14:12:14 +11:00
Andrew Tridgell
b81b9e1bb8
AP_GPS: prevent bad NMEA strings from causing overruns in parser
...
fixes issue #961
thanks to crashpilot100 for spotting this!
2014-11-16 14:08:20 +11:00
Andrew Tridgell
d3b087d2c1
AP_GPS: fixed build on non-PX4 platforms
2014-11-14 14:48:42 +11:00
Andrew Tridgell
e69582aa1c
AP_GPS: added PX4EXPERIMENTAL to GPS type drop down
2014-11-14 14:39:46 +11:00
Holger Steinhaus
abad58874c
AP_GPS: enable GNSS modules handled by PX4 firmware via GPS_TYPE
...
GNSS modules handled by PX4 drivers are not auto-detectable, some are not even
connected to a UART port. The activation is therefore controlled by GPS_TYPE
only. Baud rate and port settings (if applicable) have to be handled by the PX4
firmware.
2014-11-14 14:36:10 +11:00
Holger Steinhaus
442aafbd1e
AP_GPS: add proxy driver for GNSS modules handled by PX4 firmware
2014-11-14 14:36:10 +11:00
Victor Mayoral Vilches
46c8714996
AP_GPS: make the examples compile in Linux
2014-11-08 11:25:35 +11:00
Jonathan Challinger
2293070a5b
AP_GPS: Add uBlox accuracy metrics interface and logging
2014-11-06 07:38:41 +11:00
Randy Mackay
8a776f8ff8
GPS: init primary_instance to zero
2014-10-29 12:04:13 +09:00
Benoit PEREIRA DA SILVA
010d267376
GPS: use primary for Notification
2014-10-29 12:04:12 +09:00
Jonathan Challinger
6848897999
AP_GPS: Add agcCnt to UBX1 message
2014-10-29 08:18:04 +11:00
Craig Elder
be352e9471
AP_GPS: Removed CFG-DAT message from 3DR-Ublox-NEO7
...
CFG-DAT is generated by U-Center but no longer used by the receiver.
2014-10-06 11:21:42 -07:00
Craig Elder
7367ea04a7
AP_GPS: Adding support for the NEO7 GPS
2014-10-03 03:21:28 -07:00
Randy Mackay
e7b4a02d26
GPS: fix SIRF set-binary message
...
This fixes an issue in which the the update rate for the mediatek, which
uses a similar protocol, was not being set correctly
2014-10-01 11:42:31 +09:00
Andrew Tridgell
15470bd81b
AP_GPS: added GPS_MIN_ELEV parameter
...
allows setting of satellite elevation mask in degrees
2014-09-04 14:46:10 +10:00
Andrew Tridgell
840a4dee1e
AP_GPS: added GPS_SBAS_MODE parameter
...
allows SBAS to be enabled/disabled
2014-09-04 14:46:10 +10:00
Andrew Tridgell
cd50fe82b6
AP_GPS: fixed GPS time in HIL
...
account for 10 year difference in epoch between unix time and GPS time
2014-09-04 06:37:42 +10:00
Andrew Tridgell
60e501d5ab
AP_GPS: moved UBX log headers to DataFlash
...
headers were not always being written
2014-08-19 10:08:15 +10:00
Randy Mackay
534922adc3
GPSGlitch: init members to resolve compiler warnings
2014-08-14 11:27:31 +09:00
Andrew Tridgell
b08b76b8ff
AP_GPS: fixed example build
2014-08-13 21:48:35 +10:00
Daniel Frenzel
c97b460a6b
AP_GPS: removed wrong reassignment of msec
...
Signed-off-by: Daniel Frenzel <dgdanielf@gmail.com>
2014-08-11 09:24:19 +10:00
Andrew Tridgell
b296508da4
AP_GPS: make setHIL take const references
2014-08-09 22:50:15 +10:00
Andrew Tridgell
db1479b46b
AP_GPS: fixed example build
2014-07-25 17:54:25 +10:00
Víctor Mayoral Vilches
70aafa380e
GPS_UBLOX: fix test to work with AP_HAL_Linux.
...
Some libraries were missing.
2014-07-14 09:29:18 +10:00
Randy Mackay
f630f9abc3
GPS: exclude SIRF and NMEA on APM copter build
...
This only works for the centralised builder, the modified Arduino IDE
will still include the NMEA and SIRF drivers meaning it will require
approximately 4k additional flash which may push us over the limit on
the APM2. Users will instead need to exclude other features to get
below the APM1/2 flash limit.
2014-07-13 15:41:11 +09:00
Andrew Tridgell
59de5a8465
AP_GPS: avoid some float conversion warnings
2014-07-08 20:27:03 +10:00
Niels Joubert
fabd7601f0
GPS: Fix dataflash logging bug in SBP driver
2014-07-03 09:57:10 +10:00
Niels Joubert
b57d1f5245
GPS: Include 75-class CPUs in RTK support since they will have 64 bit floating point values.
2014-07-03 09:57:07 +10:00
Andrew Tridgell
f9d87bcc88
AP_GPS: fixed build errors and warnings in SBP driver
...
shadowed variables and implied casts in structures
2014-06-30 11:15:51 +10:00
Niels Joubert
fa78634959
AP_GPS: GPS calculates MAVLink messages for GPS and GPS_RTK
2014-06-30 10:30:16 +10:00
Niels Joubert
2b1169b0ab
AP_GPS: SwiftNav RTK Driver and GPS AutoSwitch param
2014-06-30 10:29:56 +10:00
Randy Mackay
69ad632e2a
GPS: correct NAVFILTER parameter description
...
These corrected values match the GPS_Engine_Setting enum in GPS.h
Thanks to Adolfo R for noticing the issue and providing the fix
2014-05-20 22:08:40 +09:00
Andrew Tridgell
30f5e2c37f
AP_GPS: work around scheduling issue in example code
2014-05-16 22:35:32 +10:00
Andrew Tridgell
73976e2ca4
AP_GPS: fixed example build
2014-05-16 22:05:04 +10:00
Jonathan Challinger
0bb7b8e938
AP_GPS: Fix bug that causes permanent lag if we miss a message
2014-04-29 15:35:46 +10:00
Andrew Tridgell
b0fd94f18e
AP_GPS: initialise a variable in uBlox driver
2014-04-23 18:15:53 +10:00
Andrew Tridgell
5a7afbf2cd
AP_GPS: prevent writing GPS log headings multiple times
2014-04-20 21:44:14 +10:00
Andrew Tridgell
3b8839d2f7
AP_GPS: fixed num_sensors on APM2
2014-04-11 21:32:55 +10:00
Andrew Tridgell
a821b0e198
AP_GPS: fixed a build warning
...
Debug() should not be exposed in public headers
2014-04-10 10:28:55 +10:00
Andrew Tridgell
43ebd86bb1
AP_GPS: disable SBP driver on APM2
...
the driver uses double precision floating point, which can't work on
8bit AVR with gcc
2014-04-05 21:47:46 +11:00
Andrew Tridgell
5a585b90e8
AP_GPS: fixed some warnings in SBP driver
2014-04-05 14:18:01 +11:00
Niels Joubert
33576dfdd9
AP_GPS: Swift Binary Protocol SINGLE-POINT-POSITIONING Driver
...
This is the SBP driver for Piksi, Lodestar and other forthcoming Swift Navigation GPSes.
This driver currently implements three things:
- Implements a lightweight SBP protocol detection system
- Implements Piksi as a single-point-positioning GPS (same as ublox/others)
- Implements hardware logging of GPS health and baseline messages
Forthcoming iin future updates:
- Need to implement the RTK functionality
2014-04-05 13:42:23 +11:00
Niels Joubert
552f33b39e
AP_GPS: Support fix types of DGPS and RTK
2014-04-05 13:42:23 +11:00
Andrew Tridgell
67ed5b73ef
AP_GPS: added lock_port() interface
...
used by SERIAL_CONTROL message
2014-04-05 07:34:33 +11:00
Andrew Tridgell
d9d038345a
AP_GPS: save 800 bytes of code space on APM2
...
we can assume a single GPS
2014-04-04 10:08:28 +11:00
Andrew Tridgell
9f857529ca
AP_GPS: auto-switch primary GPS based on status and number of satellites
2014-04-04 08:32:34 +11:00
Andrew Tridgell
21c205a57e
AP_GPS: cope with different MON-HW message size in u-Blox Neo7
2014-04-03 10:55:05 +11:00
Craig Elder
3a92d75936
Ublox: Enable 1Hz Lock LED by default
2014-04-01 20:57:18 -07:00
Andrew Tridgell
e40a048009
AP_GPS: handle multiple GPS in GPS setHIL()
2014-04-02 07:55:28 +11:00
Andrew Tridgell
79f5618f6f
AP_GPS: zero state structure on driver release
...
this ensures no values are left from the previous driver
2014-04-02 07:55:28 +11:00
Andrew Tridgell
7e2ef0cfc0
AP_GPS: fixed GPS for Replay
2014-04-01 17:25:15 +11:00
Andrew Tridgell
77e2f48581
AP_GPS: fixed notify updates for new API
2014-04-01 06:38:25 +11:00
Andrew Tridgell
9781175bf5
AP_GPS: fixed handling of driver destruction
...
this allows for more complex destructors, and ensures we don't have
multiple backends allocated at once per instance
2014-04-01 06:38:25 +11:00
Andrew Tridgell
7ceba8dce4
AP_GPS: prevent double allocation of GPS drivers
2014-04-01 06:38:25 +11:00
Andrew Tridgell
8779ffe088
AP_GPS: flush pending config strings when uBlox starts
2014-04-01 06:38:25 +11: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
c2486d8d6e
AP_GPS: updated examples for new API
...
removed old per-driver examples, and updates AUTO example
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
3c4389180e
AP_GPS: removed GPS_406 driver
...
this driver was untested and badly structured. If we want to support
the 406 we can revive it and do it properly
2014-04-01 06:38:23 +11:00
Andrew Tridgell
c6f3e0a81c
AP_GPS: fixed example builds
2014-03-24 12:20:34 +11:00
Andrew Tridgell
5630bb1ef6
AP_GPS: added detailed hardware status logging for uBlox
...
this gives us noise, jamming and RF information from the uBlox
protocol. This will hopefully allow a more detailed investigation of
antenna choices and RF interference
2014-03-24 12:02:37 +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
6b5d27efbb
AP_GPS: fixed example builds with change to init()
2014-03-16 06:44:50 +11:00
Andrew Tridgell
9cf1fd46c8
AP_GPS: removed nav_setting default
...
not needed, and apparently caused issue with xcode 5.1
2014-03-14 07:49:56 +11:00
Andrew Tridgell
794cc33e6a
GPS: added set_secondary() function
...
for preventing notify updates for 2nd GPS
2014-03-08 21:47:49 +11:00
Andrew Tridgell
d7b2a09919
AP_GPS: added fix type to setHIL
2014-02-25 21:10:30 +11:00
Andrew Tridgell
7a6f671659
AP_GPS: added have_vertical_velocity() function
...
for use by EKF
2014-02-24 18:24:10 +11:00
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.
2014-01-13 09:58:30 +11:00
Andrew Tridgell
e7a1331b81
AP_GPS: allow HIL GPS to show no lock
2013-12-30 14:35:20 +11:00
Andrew Tridgell
519a26691e
AP_GPS: make last_message_time_ms const
2013-12-29 18:39:07 +11:00
Andrew Tridgell
7a12f44a41
AP_GPS: GPS week is unsigned
2013-12-11 17:29:27 +11:00
Andrew Tridgell
137880be70
AP_GPS: fixed a build warning
2013-12-11 10:22:22 +11:00
Randy Mackay
91c17e9848
GPSGlitch: reduce radius to 2m
2013-12-09 11:42:03 +09:00
Randy Mackay
e489224c6b
GPSGlitch: update @Range for RADIUS and ACCEL params
2013-11-24 23:21:19 +09:00
Randy Mackay
bd6511dd0a
GPS: add GPS_UBLOX_passthrough sketch
...
This sketch allows the user to configure the Ublox GPS using U-Center
without the need for an FTDI cable.
2013-11-24 14:53:08 +09:00
Andrew Tridgell
72415ed358
AP_GPS: change HIL GPS to always be 5Hz
...
this prevents too short updates in DCM from affecting attitude
2013-11-23 18:50:57 +11:00
Randy Mackay
7c52572020
Ublox: disable NMEA info in 3DR config
2013-11-21 17:02:00 +09:00
Randy Mackay
4e5cb72604
Ublox: set default rate to 5hz in 3DR config
2013-11-21 17:01:58 +09:00
Randy Mackay
b349d95269
Ublox: disable TimePulse Timedata in 3DR config
2013-11-21 17:01:55 +09:00
Randy Mackay
25046b4e6d
Ublox: update config to ver 7.03
2013-11-21 17:01:52 +09:00
Randy Mackay
bcbf0feff0
GPS Glitch: revert accel max to 10m/s/s
...
This may not be the best real world value but it keeps the autotester
from failing because it recovers from the glitch before the 5second
time-out on the GPS failsafe
2013-11-13 21:33:34 +09:00
Randy Mackay
3bd124eb72
GPS Glitch: radius and accel max to 5m and 5m/s/s
2013-11-13 11:49:21 +09:00
Andrew Tridgell
ff73773de4
AP_GPS: try harder to get 5Hz updates from a uBlox
...
check for getting at least one 5Hz update every 15s
2013-11-05 15:18:25 +11:00
Andrew Tridgell
de96ad9445
AP_GPS: fixed date handling in NMEA driver
2013-10-24 14:22:48 +11:00
Andrew Tridgell
744819cec8
AP_GPS: added fake time to fake GPS lock
2013-10-24 14:22:48 +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
25d3e5b7e9
AP_GPS: changed fake GPS fix to have a latitude/longitude
...
Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
2013-10-11 16:06:35 +11:00
Randy Mackay
13cf7c96cd
GPSGlitch: parameters for accel and always-ok-radius
2013-10-09 13:02:14 +09:00
Andrew Tridgell
7a9ed0a5a1
AP_GPS: fixed warning
2013-10-03 12:21:08 +10:00
Andrew Tridgell
5489097476
AP_GPS: update the UBLOX rates async from the start
...
this saves a bit of startup time
2013-10-03 12:21:07 +10:00
Andrew Tridgell
cee8a017ab
AP_GPS: added UBLOX_FAKE_3DLOCK debugging option
...
useful when unable to get 3D lock
2013-10-03 12:21:07 +10:00
Andrew Tridgell
34f7f88190
AP_GPS: check for corret GPS solution rates in flight and fix
...
if the GPS is giving us data at less than 300ms intervals then re-send
the configuration messages to try to kick it into the right rates
Pair-Programmed-With: Randy Mackay <rmackay9@yahoo.com>
2013-10-03 12:21:07 +10:00
Randy Mackay
cddbaf0459
GPS_Glitch: make accessor functions const
2013-09-24 21:41:56 +09:00
Randy Mackay
55c94b3b41
GPS_Glitch: bug fix for enable/disable parameter
2013-09-24 21:41:54 +09:00
Randy Mackay
a2c0415ba9
GPS_Glitch: make enable/disable a parameter
2013-09-24 21:41:42 +09:00
Randy Mackay
78124f2fca
GPS_Glitch: remove unused recovered flag
2013-09-24 21:41:38 +09:00
Randy Mackay
4dcfce7104
GPS_Glitch: glitch detection class
2013-09-24 21:41:10 +09:00
Andrew Tridgell
448167e958
AP_GPS: fixed examples build
2013-09-24 11:57:03 +10:00
Andrew Tridgell
284492cfec
AP_GPS: fixed an initialisation problem with GPS drivers
...
before the first full packet arrives we could report uninitialised
values for groundspeed and heading
2013-09-16 21:20:36 +10:00
Andrew Tridgell
5484b97419
AP_GPS: reset _fix_count to 0 on nav settings update
...
this makes it run every 20s exactly
2013-09-04 13:18:00 +10:00
Andrew Tridgell
879d44f930
AP_GPS: use the mask bits to only set dynamic model
...
this ensures we don't try to change any other CFG_NAV5 settings
2013-09-04 13:17:20 +10: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
e6bd3b65b9
AP_GPS: fixed examples build
2013-08-30 13:01:36 +10:00
Andrew Tridgell
7b1e2b0e78
AP_GPS: don't need notify.h here
2013-08-30 13:01:35 +10:00
Randy Mackay
82b7b2cb3e
GPS: integrate AP_Notify
2013-08-30 13:01:35 +10:00
Randy Mackay
496962f037
GPS: update notify
2013-08-30 13:01:35 +10:00
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)
2013-08-14 14:36:44 +10:00
Andrew Tridgell
01c124d5f5
AP_GPS: added velocity_vector() method
2013-07-22 12:50:00 +10:00
Andrew Tridgell
c7141c4851
AP_GPS: fixed examples build
2013-07-15 14:09:07 +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
Tobias
c95072ea25
AP_GPS: added explicit cast to omit [-Wconversion] warning
2013-07-08 14:53:20 +10:00
Andrew Tridgell
edfebc1f29
AP_GPS: fixed indent-tabs-mode
2013-05-30 09:52:21 +10:00
Andrew Tridgell
06b6f4b04e
AP_GPS: use PACKED attribute instead of pragma pack
2013-05-09 20:10:31 +10:00
Andrew Tridgell
786e4cf705
AP_GPS: added last_message_time_ms() API
...
used to help GPS logging
2013-04-28 14:53:02 +10:00
Andrew Tridgell
f5d062d5ba
AP_GPS: move byte swapping code to cpp
2013-04-28 14:51:37 +10:00
Andrew Tridgell
c3abdaf308
AP_GPS: removed duplicate print_latlon()
2013-04-20 13:57:59 +10:00
Andrew Tridgell
8d727614b4
AP_GPS: make status() const
2013-04-20 13:52:36 +10:00
Andrew Tridgell
b3ec5187f2
AP_GPS: fixed uninitialied variable bugs found with valgrind
2013-04-17 23:02:13 +10:00
Andrew Tridgell
a5c3051929
AP_GPS: fixed initialisation error in uBlox driver
...
found with valgrind
2013-04-12 14:25:46 +10:00
Randy Mackay
93f7e61b66
UBLOX GPS: fix MSG_SOL typo
...
"status" was used instead of "solution"
2013-03-27 11:42:05 +09: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
3f6eb87f23
AP_GPS: fixed uBlox Debug() macro
2013-03-20 15:42:07 +11:00
Andrew Tridgell
551950c573
GPS_UBLOX: fixed auto-config of baudrate
...
this fixes the setting of the baudrate on a uBlox that is configured
for 9600. It fixes the NMEA message to have a \r\n, plus sends the
NAV_SOL rate config before the NMEA baudrate config message.
This fixes issue #159
2013-03-17 17:52:48 +11:00
Andrew Tridgell
f67480fa50
AP_GPS: ensure constructors zero all key variables
...
this prevents a crash on PX4 if a GPS is attached after startup
2013-02-20 11:33:39 +11:00
Andrew Tridgell
93ef403529
AP_GPS: removed unused AP_GPS_Shim.h
2013-02-20 11:33:39 +11:00
Andrew Tridgell
727f8ff029
AP_GPS: removed the old MTK16 driver
...
the MTK19 driver supports both the 1.6 and 1.9 protocol
2013-02-16 22:03:53 +11:00
James Bielman
5631f865b2
Update floating point calculations to use floats instead of doubles.
...
- Allows use of hardware floating point on the Cortex-M4.
- Added "f" suffix to floating point literals.
- Call floating point versions of stdlib math functions.
2013-01-16 13:52:01 +11: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
f93a7d50eb
AP_GPS: fixed debug code
2013-01-07 11:06:53 +11:00
Andrew Tridgell
f7e5f88199
AP_GPS: make UBLOX driver a bit more robust
2013-01-05 20:39:31 +11:00
Andrew Tridgell
3b0398dc14
AP_GPS: fixed UBLOX example for PX4
2013-01-05 20:39:30 +11:00
Andrew Tridgell
2f111b857b
AP_GPS: ported test code for PX4
2013-01-04 19:41:36 +11:00
Andrew Tridgell
f701d0cc85
AP_GPS: a couple more places where we should restart
...
this prevents us losing a byte
2013-01-04 19:40:49 +11:00
Andrew Tridgell
3bfff4bd6d
AP_GPS: pragma pack is needed on ARM
...
we rely on GPS data structures having byte alignment. Luckily GCC can
cope with this.
2013-01-04 19:39:15 +11:00
Andrew Tridgell
374af1cd14
build: change from Arduino.mk to apm.mk
2013-01-02 17:29:37 +11:00
Andrew Tridgell
609ef220a6
AP_GPS: more state machine fixes for MTK19 GPS
2013-01-02 14:45:09 +11:00
Andrew Tridgell
c980b32319
GPS: fixed state machine logic errors in MTK19 driver
2013-01-02 10:12:55 +11:00
Andrew Tridgell
8c0d1d7084
GPS: fixed MTK19 driver for AP_HAL merge
2013-01-02 09:55:37 +11:00
Craig@3DR
2de676306e
Improved parsing in auto detect
2013-01-02 09:24:31 +11:00
Craig@3DR
8cfefbc275
Updated rev number in driver
2013-01-02 09:22:21 +11:00
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.
2013-01-02 09:18:03 +11:00
rmackay9
811550cca6
AP_GPS_MTK19: small bug fix re "==" vs "="
...
Also saved 22 bytes of RAM by moving error message into program space.
2013-01-02 09:16:48 +11:00
Craig@3DR
f778961acf
Added support for Mediatek firmware Rev 1.9
2013-01-02 09:16:47 +11:00
Andrew Tridgell
4a6b46c661
AP_GPS: fixed multiple GPS detection bug
2012-12-20 14:53:24 +11:00
Andrew Tridgell
f549950a9c
AP_GPS: remove some debug code
2012-12-20 14:53:23 +11:00
Andrew Tridgell
ceb3f577d8
libraries: use new math functions
2012-12-20 14:53:22 +11:00
Andrew Tridgell
2679eabdef
Cleanup: removed unused AP_GPS_IMU
2012-12-20 14:52:37 +11:00
Andrew Tridgell
8beaec61a8
AP_GPS: fixed build for new syntax
2012-12-20 14:52:36 +11:00
Pat Hickey
eb530b86e8
move Arduino.mk to /mk/Arduino.mk
2012-12-20 14:52:35 +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
Andrew Tridgell
7d27e420ae
AP_HAL: remove unnecessary Arduino.h includes
2012-12-20 14:52:30 +11:00
Pat Hickey
f1869d1aa6
AP_GPS: GPS_406_test ported to AP_HAL
2012-12-20 14:51:40 +11:00
Pat Hickey
d6cb240468
AP_GPS: GPS_NMEA_test ported to AP_HAL
...
* I wasn't able to demonstrate the library/test sketch working with my
ublox gps.
2012-12-20 14:51:40 +11:00
Andrew Tridgell
18fb9c67f6
AP_GPS: use AP_Progmem
2012-12-20 14:51:39 +11:00
Pat Hickey
475da4eca4
CONFIG_HAL_BOARD - test sketches fixed up, build all passes
2012-12-20 14:51:37 +11:00
Andrew Tridgell
13309cceb3
AP_GPS: reverted formatting of GPS messages
2012-12-20 14:51:37 +11:00
Pat Hickey
2be552ea22
AP_GPS: less chatty autodetect
2012-12-20 14:51:35 +11:00
Pat Hickey
d72c5cf828
AP_GPS: uartB fixup
2012-12-20 14:51:35 +11:00
Pat Hickey
a4f1f6a5db
AP_Progmem: fix dependencies for all sketches touched by AP_HAL_AVR
2012-12-20 14:51:28 +11:00
Andrew Tridgell
53105efbcd
HAL_AVR: more uart0 -> console changes
2012-12-20 14:51:27 +11:00
Andrew Tridgell
d133f15f57
HAL_AVR: use hal.console instead of hal.uart0
2012-12-20 14:51:27 +11:00
Pat Hickey
c56c4ae240
Various example sketches: hal.uart0->begin(115200) is redundant. use console.
...
just assume uart0 is initialized by the HAL, because it is. DRY.
also, don't ever use uart0 explicitly in example sketches, use console
and let the hal figure it out.
2012-12-20 14:51:25 +11:00
Pat Hickey
deb96143d3
AP_GPS_IMU: fix type punning warnings by using memcpy
2012-12-20 14:51:25 +11:00
Pat Hickey
9ed023aeb4
AP_GPS: Builds under AP_HAL. Not tested.
2012-12-20 14:51:25 +11:00
Pat Hickey
3f1d9d7f69
AP_Param: #include <AP_Param.h> fixups for libraries & sketches
...
* I mostly went through with grep and added an #include <AP_Param.h> below
every #include <AP_Common.h>. Not all of these example sketches might
strictly need AP_Param.
2012-12-20 14:51:19 +11:00
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.
2012-12-11 15:35:52 -08:00
Andrew Tridgell
57d3609d00
AP_GPS: fixed examples build
2012-11-24 21:07:53 +11:00
Andrew Tridgell
2e63b3ae8e
AP_GPS: added in two more dynamic model enums
2012-11-22 16:23:29 +11:00
Andrew Tridgell
984b1086cb
AP_GPS_UBLOX: ask for nav settings every 20 seconds
...
this ensures we don't run with the wrong nav settings on a uBlox if
we get a bad checksum on the initial nav settings message
2012-11-05 14:58:40 +11:00
Andrew Tridgell
72e97c6dfc
AP_GPS: start detection timer on first bytes
...
this prevents a uBlox plugged in late from being detected as a NMEA
GPS
2012-11-05 14:58:40 +11:00
Andrew Tridgell
6f9fa7d3b3
AP_GPS: removed shadowed class variable _nav_setting
...
this caused a uBlox to incorrectly configure as "portable" instead of
airborne if the detection took more than 2 seconds. That led to
terrible performance.
2012-11-05 14:58:40 +11:00
Andrew Tridgell
e74e730992
AP_GPS: added velocity_down() call
...
on GPSes with raw velocity support this will be used for DCM
correction
2012-11-05 14:58:40 +11:00
Andrew Tridgell
a53cbc08f3
GPS: avoid output delays in the GPS auto detection
...
this sends out the GPS init strings in 16 byte chunks to avoid causing
timing glitches when no GPS is attached
2012-10-18 16:18:32 +11:00
Andrew Tridgell
608cc60689
GPS: fixed SIRF auto detect code
2012-09-25 07:10:07 +10:00
rmackay9
50a97f3092
AP_GPS: added get_lag method to return expected lag from the GPS.
2012-09-20 15:48:22 +09:00
Andrew Tridgell
728b3a133e
GPS: disable auto detection of NMEA and SiRF on a 1280 board
...
saves a bit more flash space
2012-09-19 19:36:48 +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
Andrew Tridgell
ba9543ee04
GPS: NMEA bug fix from Alexey Kozin
...
thanks Alexey!
2012-09-12 15:04:24 +10:00
uncrustify
97035fbead
uncrustify libraries/AP_GPS/GPS.h
2012-08-21 19:19:52 -07:00
uncrustify
20d1a94778
uncrustify libraries/AP_GPS/AP_GPS_IMU.h
2012-08-21 19:19:52 -07:00
uncrustify
4cd477d13d
uncrustify libraries/AP_GPS/AP_GPS_IMU.cpp
2012-08-21 19:19:52 -07:00
uncrustify
6c885df832
uncrustify libraries/AP_GPS/AP_GPS_UBLOX.cpp
2012-08-21 19:19:52 -07:00
uncrustify
a48aa18d6f
uncrustify libraries/AP_GPS/AP_GPS_MTK16.cpp
2012-08-21 19:19:52 -07:00
uncrustify
03b42037a0
uncrustify libraries/AP_GPS/AP_GPS_NMEA.h
2012-08-21 19:19:51 -07:00
uncrustify
da81115079
uncrustify libraries/AP_GPS/AP_GPS_NMEA.cpp
2012-08-21 19:19:51 -07:00
uncrustify
a8ed24da6c
uncrustify libraries/AP_GPS/AP_GPS_SIRF.cpp
2012-08-21 19:19:51 -07:00
uncrustify
074f3ae872
uncrustify libraries/AP_GPS/AP_GPS_406.cpp
2012-08-21 19:19:51 -07:00
uncrustify
9ce7513096
uncrustify libraries/AP_GPS/AP_GPS_MTK.cpp
2012-08-21 19:19:51 -07:00
uncrustify
d8200a6aea
uncrustify libraries/AP_GPS/AP_GPS_HIL.h
2012-08-21 19:03:13 -07:00
uncrustify
8ad83695b8
uncrustify libraries/AP_GPS/AP_GPS_MTK16.h
2012-08-21 19:03:02 -07:00
uncrustify
a91687f1cb
uncrustify libraries/AP_GPS/AP_GPS_None.h
2012-08-21 19:03:02 -07:00
uncrustify
c95fc7b166
uncrustify libraries/AP_GPS/AP_GPS_406.h
2012-08-21 19:02:53 -07:00