From fdff16c3cb61fc2653cc5f16f6cc6122b00b9480 Mon Sep 17 00:00:00 2001 From: Lorenz Meier Date: Thu, 25 Feb 2016 13:26:52 +0100 Subject: [PATCH] Always enable nav sol --- src/drivers/gps/ubx.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/drivers/gps/ubx.cpp b/src/drivers/gps/ubx.cpp index 08044afcf8..9c3f276ddf 100644 --- a/src/drivers/gps/ubx.cpp +++ b/src/drivers/gps/ubx.cpp @@ -237,17 +237,17 @@ UBX::configure(unsigned &baudrate) return 1; } - configure_message_rate(UBX_MSG_NAV_DOP, 1); + configure_message_rate(UBX_MSG_NAV_VELNED, 1); if (wait_for_ack(UBX_MSG_CFG_MSG, UBX_CONFIG_TIMEOUT, true) < 0) { return 1; } + } - configure_message_rate(UBX_MSG_NAV_VELNED, 1); + configure_message_rate(UBX_MSG_NAV_DOP, 1); - if (wait_for_ack(UBX_MSG_CFG_MSG, UBX_CONFIG_TIMEOUT, true) < 0) { - return 1; - } + if (wait_for_ack(UBX_MSG_CFG_MSG, UBX_CONFIG_TIMEOUT, true) < 0) { + return 1; } configure_message_rate(UBX_MSG_NAV_SVINFO, (_satellite_info != nullptr) ? 5 : 0);