aboutsummaryrefslogtreecommitdiff
path: root/src/drivers/gps
diff options
context:
space:
mode:
authorThomas Gubler <thomasgubler@gmail.com>2014-09-30 15:50:58 +0200
committerThomas Gubler <thomasgubler@gmail.com>2014-09-30 15:50:58 +0200
commitf4851c1b148f21143c4a0446a843948af6793ed3 (patch)
tree2752a6b1577e6ef8587444ac31f69ba9eee0dce0 /src/drivers/gps
parent4fbeb73bda55f14d1ffd259d064e116047b20301 (diff)
downloadpx4-firmware-f4851c1b148f21143c4a0446a843948af6793ed3.tar.gz
px4-firmware-f4851c1b148f21143c4a0446a843948af6793ed3.tar.bz2
px4-firmware-f4851c1b148f21143c4a0446a843948af6793ed3.zip
ubx: disable sbas configuration per default
Diffstat (limited to 'src/drivers/gps')
-rw-r--r--src/drivers/gps/ubx.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/drivers/gps/ubx.cpp b/src/drivers/gps/ubx.cpp
index c54c474b3..45bd445c4 100644
--- a/src/drivers/gps/ubx.cpp
+++ b/src/drivers/gps/ubx.cpp
@@ -189,6 +189,7 @@ UBX::configure(unsigned &baudrate)
return 1;
}
+#ifdef UBX_CONFIGURE_SBAS
/* send a SBAS message to set the SBAS options */
memset(&_buf.payload_tx_cfg_sbas, 0, sizeof(_buf.payload_tx_cfg_sbas));
_buf.payload_tx_cfg_sbas.mode = UBX_TX_CFG_SBAS_MODE;
@@ -198,6 +199,7 @@ UBX::configure(unsigned &baudrate)
if (wait_for_ack(UBX_MSG_CFG_SBAS, UBX_CONFIG_TIMEOUT, true) < 0) {
return 1;
}
+#endif
/* configure message rates */
/* the last argument is divisor for measurement rate (set by CFG RATE), i.e. 1 means 5Hz */