mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-30 18:06:39 +08:00
GPS Dump timeout increase + GPS overflow fix
This commit is contained in:
+1
-1
Submodule src/drivers/gps/devices updated: bbdd5767a9...91e3dbb296
@@ -85,7 +85,8 @@ using namespace device;
|
|||||||
using namespace time_literals;
|
using namespace time_literals;
|
||||||
|
|
||||||
#define TIMEOUT_1HZ 1300 //!< Timeout time in mS, 1000 mS (1Hz) + 300 mS delta for error
|
#define TIMEOUT_1HZ 1300 //!< Timeout time in mS, 1000 mS (1Hz) + 300 mS delta for error
|
||||||
#define TIMEOUT_5HZ 500 //!< Timeout time in mS, 200 mS (5Hz) + 300 mS delta for error
|
#define TIMEOUT_5HZ 500 //!< Timeout time in mS, 200 mS (5Hz) + 300 mS delta for error
|
||||||
|
#define TIMEOUT_DUMP_ADD 450 //!< Additional time in mS to account for RTCM3 parsing and dumping
|
||||||
#define RATE_MEASUREMENT_PERIOD 5_s
|
#define RATE_MEASUREMENT_PERIOD 5_s
|
||||||
|
|
||||||
enum class gps_driver_mode_t {
|
enum class gps_driver_mode_t {
|
||||||
@@ -965,6 +966,12 @@ GPS::run()
|
|||||||
receive_timeout = TIMEOUT_1HZ;
|
receive_timeout = TIMEOUT_1HZ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (_dump_communication_mode != gps_dump_comm_mode_t::Disabled) {
|
||||||
|
/* Dumping the RTCM3/UBX data requires additional parsing and storing of data via uORB.
|
||||||
|
* Without additional time this can lead to timeouts. */
|
||||||
|
receive_timeout += TIMEOUT_DUMP_ADD;
|
||||||
|
}
|
||||||
|
|
||||||
while ((helper_ret = _helper->receive(receive_timeout)) > 0 && !should_exit()) {
|
while ((helper_ret = _helper->receive(receive_timeout)) > 0 && !should_exit()) {
|
||||||
|
|
||||||
if (helper_ret & 1) {
|
if (helper_ret & 1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user