From 52736f11833579627221caff6beab6b8d508e22d Mon Sep 17 00:00:00 2001
From: "ucart@co3050-12" <dawehr@iastate.edu>
Date: Wed, 1 Mar 2017 17:55:19 -0600
Subject: [PATCH] Upped the baud rate and moved the loop time to 5ms

---
 quad/sw/imu_logger/src/initialize_components.c | 2 +-
 quad/sw/imu_logger/src/timer.h                 | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/quad/sw/imu_logger/src/initialize_components.c b/quad/sw/imu_logger/src/initialize_components.c
index df1b3c86b..84e37863f 100644
--- a/quad/sw/imu_logger/src/initialize_components.c
+++ b/quad/sw/imu_logger/src/initialize_components.c
@@ -100,7 +100,7 @@ int initializeAllComponents(user_input_t * user_input_struct, log_t * log_struct
 	//Xil_AssertWait = FALSE;
 
 	// Initialize UART0 (Bluetooth)
-	if(!uart0_init(XPAR_PS7_UART_0_DEVICE_ID, 115200))
+	if(!uart0_init(XPAR_PS7_UART_0_DEVICE_ID, 921600))
 		return -1;
 
 	uart0_clearFIFOs();
diff --git a/quad/sw/imu_logger/src/timer.h b/quad/sw/imu_logger/src/timer.h
index 48d15f7da..96b40fff6 100644
--- a/quad/sw/imu_logger/src/timer.h
+++ b/quad/sw/imu_logger/src/timer.h
@@ -19,7 +19,7 @@ extern double LOOP_TIME;
 extern double time_stamp;
 
 // desired loop time is not guaranteed (its possible that the loop may take longer than desired)
-#define DESIRED_USEC_PER_LOOP 6000 // gives 5ms loops
+#define DESIRED_USEC_PER_LOOP 5000 // gives 5ms loops
 
 #define PL_CLK_CNTS_PER_USEC 100
 
-- 
GitLab