From 9e458fac6e5ba0d1d80c59d9bfa646b3d11b0412 Mon Sep 17 00:00:00 2001 From: zhaoliang <zhz03@g.ucla.edu> Date: Sun, 31 Oct 2021 15:27:22 -0700 Subject: [PATCH] changed the camera.cpp data type --- .../Laptop_Code/Previous_low_level/ESP32_slave/Camera.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Code/Control/Laptop_Code/Previous_low_level/ESP32_slave/Camera.cpp b/Code/Control/Laptop_Code/Previous_low_level/ESP32_slave/Camera.cpp index fb27cf8..56f42d6 100644 --- a/Code/Control/Laptop_Code/Previous_low_level/ESP32_slave/Camera.cpp +++ b/Code/Control/Laptop_Code/Previous_low_level/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