From 591ec3563d537406f9144cac0eca21d8b2055781 Mon Sep 17 00:00:00 2001 From: Stefan Mertl Date: Thu, 27 Dec 2018 18:05:01 +0100 Subject: [PATCH] Configure the usb port baudrate and the RAW messages. --- software/arduino/ruwai/ruwai.ino | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/software/arduino/ruwai/ruwai.ino b/software/arduino/ruwai/ruwai.ino index 9b82bfd..4748d1e 100644 --- a/software/arduino/ruwai/ruwai.ino +++ b/software/arduino/ruwai/ruwai.ino @@ -307,6 +307,14 @@ void connect_gps(void) // Initialize the PPS interrupt. attachInterrupt(GPS_TP_INTERRUPT, gps_pps_isr, RISING); + + // Configure the USB Port. + ruwai_control.send_status(RW_STATUS_NOTICE, "Configuring the USB port."); + gps.set_usb_baudrate(GPS_BAUDRATE); + ruwai_control.send_status(RW_STATUS_NOTICE, status_msg); + ruwai_control.send_status(RW_STATUS_NOTICE, "Enabling the GPS USB RAW messages."); + gps.enable_message(UBX_CLASS_RXM, UBX_RXM_ID_RAW, 1, 3); + ruwai_control.send_status(RW_STATUS_NOTICE, "Finished configuration of the GPS."); } -- 2.11.4.GIT