qiuyang 1 week ago
parent
commit
a29fc58432
2 changed files with 3 additions and 3 deletions
  1. 2 2
      framework/request/include/HepuTarget2.h
  2. 1 1
      modules/Hepu/src/Hepu.cpp

+ 2 - 2
framework/request/include/HepuTarget2.h

@@ -19,12 +19,12 @@ class HepuTarget2 //doc 4.7.31
         string token;
         int channelid;//0:红外 1:可见光
         int trackingStatus;//跟踪状态,0:非跟踪状态;1:跟踪正常;2:跟踪不稳定;3:跟踪目标失锁;4:跟踪目标丢失;10:跟踪通信异常;其他:跟踪失败;
-        typedef struct Size{
+        struct Size{
             int width;
             int height;
         };
 
-        typedef struct Rect{
+        struct Rect{
             int x;
             int y;
             int width;

+ 1 - 1
modules/Hepu/src/Hepu.cpp

@@ -273,7 +273,7 @@ namespace gsd{
         std::string msg;
         HepuTargetMsg.token = this->token_;
         HepuTargetMsg.channelid = 0; //1 for infrared 0 for visible light
-        HepuTargetMsg.trackingStatus = 1;
+        HepuTargetMsg.trackingStatus = 1;//1 for tracking 0 for stop
         HepuTargetMsg.response = 0;
         HepuTargetMsg.objectToJson(msg);
         msg+="\r\n";