From 31d96b28741c9eb93b424445bbb2bf6fc57a59a9 Mon Sep 17 00:00:00 2001
From: Zhiying Li <zhiyingli@g.ucla.edu>
Date: Wed, 27 Oct 2021 03:59:47 -0700
Subject: [PATCH] change the send data type

---
 Code/Control/Laptop_Code/ESP32_slave/Camera.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Code/Control/Laptop_Code/ESP32_slave/Camera.cpp b/Code/Control/Laptop_Code/ESP32_slave/Camera.cpp
index fb27cf8..56f42d6 100644
--- a/Code/Control/Laptop_Code/ESP32_slave/Camera.cpp
+++ b/Code/Control/Laptop_Code/ESP32_slave/Camera.cpp
@@ -72,7 +72,7 @@ bool Camera::exe_color_detection_biggestblob(int8_t l_min, int8_t l_max, int8_t
 
 bool Camera::exe_goalfinder(int8_t goal1, int8_t goal2, int8_t goal3, int&id, int&tx, int&ty, int&tz, int&rx, int&ry, int&rz){
   int8_t goalid[3] = {goal1, goal2, goal3};
-  struct { uint16_t cid, ctx, cty, ctz, crx, cry, crz; } goalfinder_result;
+  struct { int16_t cid, ctx, cty, ctz, crx, cry, crz; } goalfinder_result;
   if(interface->call(F("goalfinder"), goalid, sizeof(goalid), &goalfinder_result, sizeof(goalfinder_result))){
     
   }
-- 
GitLab