Andrew Tridgell
4e1d310959
AP_GPS: fixed use of pow()
2018-05-07 11:43:23 +10:00
Andrew Tridgell
53d36c02ae
AP_GPS: enable double precision maths where needed
2018-05-07 11:43:23 +10:00
Michael du Breuil
88ea7ac5fa
AP_GPS: Remove software check from SBF driver
2018-05-06 14:52:04 -06:00
Michael du Breuil
b1a3e0a537
AP_GPS: Report when SBF errors change
2018-04-24 12:32:35 -07:00
Peter Barker
643e7e039a
AP_GPS: log received data
...
Also log a set of flag values if a driver is deleted
2018-04-18 13:50:55 +09:00
Patrick José Pereira
a255c47c33
AP_GPS: Do not restart driver if type is defined as MAV
...
Fix bluerobotics/ardusub#104
Signed-off-by: Patrick José Pereira <patrickelectric@gmail.com>
2018-04-16 17:08:39 -07:00
Michael du Breuil
362fb470c4
AP_GPS: Allow HIL_GPS to flag vertical velocity
...
Closes #7997
2018-04-10 17:01:21 +01:00
Michael du Breuil
a21eb12f9e
AP_GPS: Correct HIL_GPS altitude conversion
2018-04-02 20:21:20 -07:00
Peter Barker
816045c1ab
AP_GPS: correct compiler warnings
...
In file included from ../../libraries/AP_GPS/AP_GPS_SBF.cpp:22:
../../libraries/AP_GPS/AP_GPS_SBF.h:75:14: warning: private field
'last_injected_data_ms' is not used [-Wunused-private-field]
uint32_t last_injected_data_ms = 0;
^
../../libraries/AP_GPS/AP_GPS_SBF.h:210:7: warning: private field
'RxError_bits' is not used [-Wunused-private-field]
} RxError_bits;
2018-03-02 09:26:37 +09:00
chobits
ea1a6b2044
AP_GPS: set have_vertical_velocity if MAVLink GPS report it
2018-03-01 14:31:56 -07:00
Tom Pittenger
793f50808d
AP_GPS: add param defaults for EMLID_EDGE for GPS_TYPE=9
2018-02-13 15:29:53 +11:00
Michael du Breuil
9e37e9ee82
AP_GPS: Remove unused blending function.
...
Thanks to ender-chen for noticing, closes #7510
2018-01-09 12:52:32 -08:00
Dr.-Ing. Amilcar Do Carmo Lucas
479d4be3fd
AP_GPS: Add horizontal, vertical and speed accuracy to the GPS_RAW_INT message
2018-01-09 13:01:05 +11:00
Andrew Tridgell
d2c9e2719e
AP_GPS: removed create() method for objects
...
See discussion here:
https://github.com/ArduPilot/ardupilot/issues/7331
we were getting some uninitialised variables. While it only showed up in
AP_SbusOut, it means we can't be sure it won't happen on other objects,
so safest to remove the approach
Thanks to assistance from Lucas, Peter and Francisco
2017-12-14 08:12:28 +11:00
Dr.-Ing. Amilcar Do Carmo Lucas
9b2e48ce10
AP_GPS: Improve comments (NFC)
2017-12-05 10:44:58 +09:00
Peter Barker
47f8ed7fab
AP_GPS: set GPS_SAVE_CFG default to save GPS config as required
2017-11-29 00:58:43 -07:00
Andrew Tridgell
9677d570e9
AP_GPS: faster GPS lock
...
use 9600 and 115200 first
2017-11-29 00:58:43 -07:00
Peter Barker
693823ae0d
AP_GPS: add gps() to AP:: namespace
2017-11-15 13:43:03 +00:00
Michael du Breuil
236e74c529
AP_GPS: Singleton
2017-11-06 01:33:57 +00:00
Michael du Breuil
c856cc6f33
AP_GPS: Allow GPS's to run functions on arming (used by SBF)
...
Supports starting/stopping GPS logging
2017-11-06 01:33:57 +00:00
Dr.-Ing. Amilcar Do Carmo Lucas
68828511cd
AP_GPS: Only send GPS*_RTK mavlink messages if the backend supports them
2017-10-30 18:28:20 +00:00
Dr.-Ing. Amilcar Do Carmo Lucas
e0c2a45eec
AP_GPS: support GPS_RTK and GPS2_RTK messages in Emlid reach modules. Requires Reach FW >= 2.7.4
2017-10-30 18:28:20 +00:00
Dr.-Ing. Amilcar Do Carmo Lucas
c0dd7984ad
AP_GPS: Publish information on the GPS*_RTK mavlink messages
2017-10-30 18:28:20 +00:00
Dr.-Ing. Amilcar Do Carmo Lucas
bf6778277e
AP_GPS: implement GPS*_RTK mavlink messages
2017-10-30 18:28:20 +00:00
Dr.-Ing. Amilcar Do Carmo Lucas
430b863f42
AP_GPS: Replace hardcoded duplicated end_mavlink_gps*_rtk() function with a flexible one
2017-10-30 18:28:20 +00:00
Michael du Breuil
b0e18de576
AP_GPS: Remove detect helpers for MTK/SIRF when minimizing the build
...
Removes 16 bytes
2017-10-22 03:03:29 +01:00
Michael du Breuil
0300f86913
AP_GPS: u-blox: Log unconfigured messages
2017-10-06 12:53:32 +01:00
Michael du Breuil
3023fac4d0
AP_GPS: SBF enable comment block logging
...
This is intended to help with GCS's injecting custom data to the GPS
2017-09-27 19:29:32 +01:00
Michael du Breuil
561acb372e
AP_GPS: SBF send port enable string on start
...
Also prohibts SBF, GSOF, NOVA drivers from getting config strings not
meant for them
2017-09-27 19:29:32 +01:00
Michael du Breuil
bfbec02736
AP_GPS: SBF track the GPS error bits
2017-09-27 19:29:32 +01:00
Michael du Breuil
0d522663b2
AP_GPS: SBF: fix the PVTMode to support PPK (and baseline) units
2017-09-27 19:29:32 +01:00
Michael du Breuil
80b71b9ced
AP_GPS: SBF: Validate that configuration was accepted
...
Note: The config string of "spm, Rover, StandAlone+SBAS+DGPS+RTK\n" is
incompatible with AsteRx-M FW 3.6.3 and will result in refusing to
arm/pass configuration checks
2017-09-27 19:29:32 +01:00
Michael du Breuil
20988b9f05
AP_GPS: SBF respect GPS_AUTO_CONFIG
2017-09-27 19:29:32 +01:00
Dr.-Ing. Amilcar Do Carmo Lucas
09baac8f25
AP_GPS: Preserve the instance number, otherwise it will get set to zero
...
Signed-off-by: Dr.-Ing. Amilcar Do Carmo Lucas <amilcar.lucas@iav.de>
2017-09-26 23:15:10 -07:00
Dr.-Ing. Amilcar Do Carmo Lucas
8b9fb19061
AP_GPS: Added const just to be explicit (NFC)
...
Signed-off-by: Dr.-Ing. Amilcar Do Carmo Lucas <amilcar.lucas@iav.de>
2017-09-26 23:15:10 -07:00
Dr.-Ing. Amilcar Do Carmo Lucas
175b7c5389
AP_GPS: spellcheck in coment (NFC)
2017-09-26 23:15:10 -07:00
Lucas De Marchi
b05610870c
global: use static method to construct AP_Rally
2017-09-26 03:01:21 +01:00
Lucas De Marchi
69b6d95cb2
global: use static method to construct AP_Board_Config{,_CAN}
2017-09-26 03:01:21 +01:00
Lucas De Marchi
72fd2d6f05
global: use static method to construct AP_SerialManager
2017-09-26 03:01:21 +01:00
Lucas De Marchi
8094482f21
global: use static method to construct AP_GPS
2017-09-26 03:01:21 +01:00
Lucas De Marchi
2cb2727a31
AP_GPS: add static create method
2017-09-26 03:01:21 +01:00
chobitsfan
02cfe9128d
AP_GPS: parse RTK status in NMEA GGA message
2017-09-15 22:33:47 +01:00
Michael du Breuil
2f8f2ffd2d
AP_GPS: Remove NMEA init blobs for binary drivers
...
All of the init strings that were sent in the NMEA driver are for GPS protocols
which have binary drivers, which provide far more features and are more robust.
It also appears that due to driver changes the config strings for SIRF/UBLOX
were no longer correct anyways).
2017-09-15 14:30:48 -07:00
Dr.-Ing. Amilcar Do Carmo Lucas
d3a18e803e
AP_GPS: Fix MAVLink message field SYSTEM_TIME.time_unix_usec when GPS_AUTO_SWITCH = blend
...
The mavlink message field SYSTEM_TIME.time_unix_usec works fine with GPS_AUTO_SWITCH == 0 (no switch) or ==1 (usebest)
But when GPS_AUTO_SWITCH == 2 (blend) then state[GPS_BLENDED_INSTANCE].last_gps_time_ms gets initialized with 0 and never rewritten.
The consequence: SYSTEM_TIME.time_unix_usec gets stuck at zero.
The solution: Do not reset state[GPS_BLENDED_INSTANCE].last_gps_time_ms because it would overwrite the correct value already set on line 1149
2017-09-14 12:38:30 +01:00
Dr.-Ing. Amilcar Do Carmo Lucas
e03826890a
AP_GPS: Fix typo in comment
2017-09-13 14:22:57 -07:00
Michael du Breuil
04eb7f411e
AP_GPS: Track the delta time between the last GPS positions
2017-09-13 13:36:40 +01:00
Michael du Breuil
be371e09f9
AP_GPS: SBF: Reject short packets early, allow 256 byte long messages to be decoded
2017-09-06 10:41:36 +10:00
Andrew Tridgell
048dfee68a
AP_GPS: make SBF driver more robust
...
this fixes a crash bug in the SBF GPS driver where a badly formed packet
could cause crc16_ccitt to reference invalid memory
2017-09-06 10:41:33 +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