Browse Source

add code comment

researchman 5 years ago
parent
commit
5a1a5271ad
2 changed files with 17 additions and 16 deletions
  1. 1 0
      card_base.cpp
  2. 16 16
      websocket/ws_common.h

+ 1 - 0
card_base.cpp

@@ -235,6 +235,7 @@ int  card_location_base::get_stat()
     log_info("card_lost:%03d%010d,[%lu-%lu]tlost:%lu---%s",m_type,m_id,now,m_time,tlost,tlost>CARD_LOST_TIME_OUT?"True":"False");
     if(tlost>CARD_LOST_TIME_OUT)
     {
+        // 人卡盲区: 当人卡丢失信号大于60s,判定人卡进入盲区
         return STATUS_LOST;
     }
     else if(auto ev_ptr = event_list::instance()->get_event_card(m_id, m_type, ET_CARD_HELP))

+ 16 - 16
websocket/ws_common.h

@@ -50,22 +50,22 @@ namespace YA
 	*/
 	struct _BASE_CARD_
 	{
-		int Type;//卡类型
-		int ID;//卡ID
-		double x;//x坐标
-		double y;//y坐标
-		double z;//z坐标
-		double down_time;//入井时间戳
-		double enter_area_time;//进入区域时间戳
-		double rec_time;//最后接收时间戳
-		double work_time;//工作时长
-		int map_id;//地图编号
-		int area_id;//区域ID
-		int dept_id;//部门编号
-		int stat;//状态
-		int running_stat;//运行状态
-		int biz_stat;//业务状态
-		double speed;//速度
+		int Type;               //卡类型
+		int ID;                 //卡ID
+		double x;               //x坐标
+		double y;               //y坐标
+		double z;               //z坐标
+		double down_time;       //入井时间戳
+		double enter_area_time; //进入区域时间戳
+		double rec_time;        //最后接收时间戳
+		double work_time;       //工作时长
+		int map_id;             //地图编号
+		int area_id;            //区域ID
+		int dept_id;            //部门编号
+		int stat;               //状态
+		int running_stat;       //运行状态: 包括上猴车状态
+		int biz_stat;           //业务状态
+		double speed;           //速度
 		_BASE_CARD_()
 		{
 			Type            = 0;