forked from Archive/PX4-Autopilot
Always enable nav sol
This commit is contained in:
parent
8fcf24f23f
commit
fdff16c3cb
|
@ -237,12 +237,6 @@ UBX::configure(unsigned &baudrate)
|
|||
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);
|
||||
|
||||
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);
|
||||
|
||||
if (wait_for_ack(UBX_MSG_CFG_MSG, UBX_CONFIG_TIMEOUT, true) < 0) {
|
||||
|
|
Loading…
Reference in New Issue