From 3f8c158c6e6a4e1f631d6389ac61d81355cc840f Mon Sep 17 00:00:00 2001
From: Zhiying Li <zhiyingli@g.ucla.edu>
Date: Thu, 4 Nov 2021 22:22:18 -0700
Subject: [PATCH] comment out openmv part

---
 Code/Control/Laptop_Code/ESP32_slave/ESP32_slave.ino | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Code/Control/Laptop_Code/ESP32_slave/ESP32_slave.ino b/Code/Control/Laptop_Code/ESP32_slave/ESP32_slave.ino
index c32e3b4..f79c97c 100644
--- a/Code/Control/Laptop_Code/ESP32_slave/ESP32_slave.ino
+++ b/Code/Control/Laptop_Code/ESP32_slave/ESP32_slave.ino
@@ -121,7 +121,7 @@ void OnDataRecv(const uint8_t * mac, const uint8_t *incomingData, int len) {
 //Create the interface that will be used by the camera 
 openmv::rpc_scratch_buffer<256> scratch_buffer; // All RPC objects share this buffer. 
 openmv::rpc_i2c_master interface(0x12, 100000); //to make this more robust, consider making address and rate as constructor argument 
-Camera cam(&interface); 
+//Camera cam(&interface); 
 // ========================== Motor part ==================================== 
 // Create the motor shield object with the default I2C address 
 Adafruit_MotorShield AFMS = Adafruit_MotorShield(); 
@@ -195,7 +195,7 @@ void loop()
   int y = 0;  
   bool goalfind_flag = 0; 
    
-  goalfind_flag = cam.exe_goalfinder(goal_id[0],goal_id[1],goal_id[2], id, tx, ty, tz, rx, ry, rz); 
+//  goalfind_flag = cam.exe_goalfinder(goal_id[0],goal_id[1],goal_id[2], id, tx, ty, tz, rx, ry, rz); 
   if (goalfind_flag){ 
       Sent_tx = tx; 
       Sent_ty = ty; 
-- 
GitLab