mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-06-02 11:59:17 +08:00
Always enable nav sol
This commit is contained in:
@@ -237,12 +237,6 @@ UBX::configure(unsigned &baudrate)
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
configure_message_rate(UBX_MSG_NAV_DOP, 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_VELNED, 1);
|
||||||
|
|
||||||
if (wait_for_ack(UBX_MSG_CFG_MSG, UBX_CONFIG_TIMEOUT, true) < 0) {
|
if (wait_for_ack(UBX_MSG_CFG_MSG, UBX_CONFIG_TIMEOUT, true) < 0) {
|
||||||
@@ -250,6 +244,12 @@ UBX::configure(unsigned &baudrate)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
configure_message_rate(UBX_MSG_NAV_DOP, 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);
|
configure_message_rate(UBX_MSG_NAV_SVINFO, (_satellite_info != nullptr) ? 5 : 0);
|
||||||
|
|
||||||
if (wait_for_ack(UBX_MSG_CFG_MSG, UBX_CONFIG_TIMEOUT, true) < 0) {
|
if (wait_for_ack(UBX_MSG_CFG_MSG, UBX_CONFIG_TIMEOUT, true) < 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user