From a4d90ebc6a31b9948ecee74189fe1423589e1f4c Mon Sep 17 00:00:00 2001
From: wangzhengquan <wangzhengquan85@126.com>
Date: 星期四, 17 九月 2020 15:23:28 +0800
Subject: [PATCH] udpate

---
 test/test_right_walk3.c |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/test/test_right_walk3.c b/test/test_right_walk3.c
index 9b97b1c..5fbd59b 100644
--- a/test/test_right_walk3.c
+++ b/test/test_right_walk3.c
@@ -45,11 +45,13 @@
 int test2() {
     // IndirectAlg indirectAlg({  {{0.0, 0.0}, {1000.0, 0.0}}, {{1000.0, 0.0}, {1000.0, 1000.0}}, {{1000.0, 1000.0}, {0.0, 1000.0}}, {{0.0, 1000.0}, {0.0, 0.0}} }, 5, {1, 1});
     /**
-     * 绗竴涓弬鏁癅points  缁勬垚瑙傛祴鍖哄煙鐨勫郊姝ょ浉閭荤殑鐐�
-     * 绗簩涓弬鏁癅_keepTime 淇濇寔鏃堕棿
-     * 绗笁涓弬鏁癅_direction 姝g‘琛岃繘鐨勬柟鍚戞柟鍚�
+     * @points  缁勬垚瑙傛祴鍖哄煙鐨勫郊姝ょ浉閭荤殑鐐�
+     * @_direction 姝g‘琛岃繘鐨勬柟鍚戞柟鍚�
+     * @_keepTime 淇濇寔鏃堕棿
+     * @ minDistance 鏈�灏忕Щ鍔ㄨ窛绂�
      */
-    IndirectAlg indirectAlg((std::initializer_list<Point>){{0.0, 0.0}, {1000.0, 0.0},  {1000.0, 1000.0}, {0.0, 1000.0} }, 5, {1, 1});
+    IndirectAlg indirectAlg((std::initializer_list<Point>){{0.0, 0.0}, {1000.0, 0.0},  {1000.0, 1000.0}, {0.0, 1000.0} }, 
+        {1, 1}, 5, 1);
     
     int i = 0;
     // time_t start_time;
@@ -94,7 +96,7 @@
 
 void test3() {
 
-    std::ifstream fin("test3.txt");
+    std::ifstream fin("test.txt");
     char line[1024];
     //std::string line;
     char *targetIdStr;
@@ -107,7 +109,7 @@
 //{"x":148,"y":45},{"x":148,"y":539},{"x":769,"y":539},{"x":769,"y":45}
     //{148, 45}, {148, 539},  {769, 539}, {769, 45}
     Record record;
-    IndirectAlg indirectAlg((std::initializer_list<Point>){}, 3, {621, 0});
+    IndirectAlg indirectAlg((std::initializer_list<Point>){}, {621, 0}, 3, 0);
     
     // const char *delim = " ";
     while(fin.getline(line, 1024)) {
@@ -152,7 +154,6 @@
         // printf("key = %s, value=%s\n", key, value);
     }
     fin.close();
-    sleep(30);
 }
 
 

--
Gitblit v1.8.0