From f6bb362c99800f86415ca008564a32aea0b5a3bd Mon Sep 17 00:00:00 2001
From: Zhiying Li <zhiyingli@g.ucla.edu>
Date: Mon, 8 Nov 2021 11:54:37 -0800
Subject: [PATCH] add two visual core function into the test function

---
 Code/Control/Laptop_Code/main_keyboard.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/Code/Control/Laptop_Code/main_keyboard.py b/Code/Control/Laptop_Code/main_keyboard.py
index f94d9e9..373ec09 100644
--- a/Code/Control/Laptop_Code/main_keyboard.py
+++ b/Code/Control/Laptop_Code/main_keyboard.py
@@ -645,15 +645,16 @@ def get_altitude_from_AT(AT_h,ty):
 
 
 def test_function():
-    url = 'http://192.168.0.230/cam-hi.jpg'
-    tid, tx, ty, tz, rx, ry, rz = get_AT_6DOF_info(url)
+
+    tid, tx, ty, tz, rx, ry, rz = get_AT_6DOF_info(url_AT)
+    gbx, gby, gb_dist = ball_detection.detectLive(url_gb, model, minDetectionScore, showSight = True)
+    
     print("testing new function")
     print("-----------------------")
     print("tid:{}".format(tid))
     print("tx,ty,tz:{},{},{}".format(tx,ty,tz))
     print("rx,ry,rz:{},{},{}".format(rx,ry,rz))
-
-
+    print("gbx,gby,gb_dist:{},{},{}".format(gbx,gby,gb_dist))
 
 def test_function1():
     url = 'http://192.168.0.230/cam-hi.jpg'
-- 
GitLab