From e049c75d258d84fca82a253c3f5725ce4895e2f5 Mon Sep 17 00:00:00 2001
From: SZL <zhiyingli@g.ucla.edu>
Date: Sun, 31 Oct 2021 22:13:31 -0700
Subject: [PATCH] Change the buadrate

---
 .../Sunday1031_Two_Lidar_Test.ino                   | 13 ++++++-------
 1 file changed, 6 insertions(+), 7 deletions(-)
 rename Code/Control/Laptop_Code/{ => Two_Lidars_comm_test}/Sunday1031_Two_Lidar_Test/Sunday1031_Two_Lidar_Test.ino (84%)

diff --git a/Code/Control/Laptop_Code/Sunday1031_Two_Lidar_Test/Sunday1031_Two_Lidar_Test.ino b/Code/Control/Laptop_Code/Two_Lidars_comm_test/Sunday1031_Two_Lidar_Test/Sunday1031_Two_Lidar_Test.ino
similarity index 84%
rename from Code/Control/Laptop_Code/Sunday1031_Two_Lidar_Test/Sunday1031_Two_Lidar_Test.ino
rename to Code/Control/Laptop_Code/Two_Lidars_comm_test/Sunday1031_Two_Lidar_Test/Sunday1031_Two_Lidar_Test.ino
index 46393d5..df1b619 100644
--- a/Code/Control/Laptop_Code/Sunday1031_Two_Lidar_Test/Sunday1031_Two_Lidar_Test.ino
+++ b/Code/Control/Laptop_Code/Two_Lidars_comm_test/Sunday1031_Two_Lidar_Test/Sunday1031_Two_Lidar_Test.ino
@@ -21,7 +21,7 @@ void setup()
   pinMode(XSHUT_pin2, OUTPUT);
 
   
-  Serial.begin(9600);
+  Serial.begin(115200);
   
   Wire.begin();
   Wire.setClock(100000); 
@@ -63,26 +63,25 @@ void setup()
 
 void loop()
 {
-   Sensor1.startContinuous(200);
+   Sensor1.startContinuous(50);
    Sensor1.read();
    Sensor1.stopContinuous();
    long time1 = millis();
-   Sensor2.startContinuous(200);
+   Sensor2.startContinuous(50);
    Sensor2.read();
    Sensor2.stopContinuous();
    long time2 = millis();
    
    
-  Serial.print("Sensor 1 Range: ");
+  Serial.print("Sensor 1: ");
   Serial.print(Sensor1.ranging_data.range_mm);
   Serial.print(" ");
-  Serial.print("Sensor 2 Range: ");
+  Serial.print("mm \t Sensor 2: ");
   Serial.print(Sensor2.ranging_data.range_mm);
   Serial.print(" ");
-  Serial.print(" Time between end of 1st and end of 6th messurement: ");
+  Serial.print("mm \t Time: ");
   Serial.print(time2-time1);
 
   Serial.println();
 
-  delay(1000);
 }
-- 
GitLab