classdef.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681
  1. #ifndef YASERVER_CLASSDEF_H_
  2. #define YASERVER_CLASSDEF_H_
  3. #define DIST_COUNT 4
  4. #define ANCHOR_COUNT 4
  5. #define KALMAN_OFFSET_COOR 0.01
  6. #define KALMAN_OFFSET_MOVE 1
  7. #define KALMAN_OFFSET_RANGING 0.01
  8. #define KALMAN_INTERVAL 0.3
  9. #define KALMAN_OFFSET_COOR_TRI 0.01
  10. #define KALMAN_OFFSET_MOVE_TRI 1
  11. #define KALMAN_OFFSET_RANGING_TRI 0.09
  12. #define KALMAN_INTERVAL_TRI 1
  13. #define ANTENNA_COUNT 2
  14. #define ADHOC_COUNT 4
  15. #define READER_TIMEOUT 20
  16. #define OVER_TIME 480 * 60
  17. //#define CARD_TYPE_ADHOC 3
  18. #define MAX_SEMACOUNT 64
  19. #define INVALID_COORDINATE -1
  20. #include <string>
  21. #include <ctime>
  22. #include <map>
  23. #include <iostream>
  24. #include <string>
  25. #include <vector>
  26. #include <deque>
  27. //#include "winsock2.h"
  28. #include <kalman\locate.h>
  29. #include "Filter\KalmanFilter.h"
  30. #define MIN(x,y) (x < y ? x : y)
  31. #define MAX(x,y) (x > y ? x : y)
  32. //#define MAP_SCALE 0.392
  33. //#define MAP_SCALE 0.77
  34. //#define MAP_SCALE 7
  35. //算法类型
  36. //#define ALGORITHM_TYPE_TOF
  37. #define ALGORITHM_TYPE_TDOA
  38. using namespace std;
  39. enum TIMER_ID
  40. {
  41. TMR_SEND_COUNTING = 1,
  42. TMR_SEND_ALARM,
  43. TMR_SEND_DEVICE_STATE,
  44. TMR_SEND_POSTION,
  45. TMR_SYNC_READER_TIME,
  46. TMR_CLEAR_CALL_TIMER,
  47. TMR_SEND_CALL
  48. };
  49. enum ALARM_FLAG{
  50. AF_CARD_OVER_COUNT = 1,
  51. AF_CARD_OVER_TIME,
  52. AF_CARD_OVER_SPEED,
  53. AF_CARD_AREA_OVER_TIME,
  54. AF_CARD_AREA_OVER_COUNT,
  55. AF_CARD_AREA_FORBIDDEN,
  56. AF_AREA_OVER_COUNT,
  57. AF_AREA_OVER_TIME,
  58. AF_AREA_FORBIDDEN
  59. };
  60. enum EDIT_TYPE_ID{
  61. ET_INSERT = 0,
  62. ET_UPDATE,
  63. ET_DELETE
  64. };
  65. enum ALARM_TYPE_ID
  66. {
  67. ATID_OVER_COUNT_PERSON = 1,
  68. ATID_OVER_TIME_PERSON,
  69. ATID_AREA_OVER_COUNT_PERSON,
  70. ATID_AREA_OVER_TIME_PERSON,
  71. ATID_AREA_LIMIT_PERSON,
  72. ATID_AREA_FORBIDDEN_PERSON,
  73. ATID_READER,
  74. ATID_OVER_SPEED,
  75. ATID_RUN_THE_RED_LIGHT,
  76. ATID_POWER,
  77. ATID_OVER_COUNT_VEHICLE,
  78. ATID_OVER_TIME_VEHICLE,
  79. ATID_AREA_OVER_COUNT_VEHICLE,
  80. ATID_AREA_OVER_TIME_VEHICLE,
  81. ATID_AREA_LIMIT_VEHICLE,
  82. ATID_AREA_FORBIDDEN_VEHICLE
  83. };
  84. enum STATUS_DEVICE{
  85. STATUS_DEVICE_NORMAL = 1,
  86. STATUS_DEVICE_ERROR,
  87. };
  88. enum STATUS_CARD
  89. {
  90. STATUS_NORMAL = 0,
  91. STATUS_ERROR,
  92. STATUS_ERROR_SERIOUS,
  93. STATUS_ERROR_DEALED,
  94. //STATUS_OVER_TIME = 1,
  95. //STATUS_OVER_COUNT = 1,
  96. //STATUS_OVER_SPEED = 1,
  97. //STATUS_AREA_OVER_TIME = 1,
  98. //STATUS_AREA_OVER_COUNT = 1,
  99. //STATUS_AREA_OVER_SPEED = 1,
  100. //STATUS_AREA_FORBIDDEN = 1,
  101. //STATUS_HELP = 1,
  102. //STATUS_HELP_DEALED,
  103. //STATUS_CALL = 1,
  104. //STATUS_POWER_LOWER = 1,
  105. //STATUS_LOST = 1
  106. };
  107. enum STORE_CARD_DATA_FLAG{
  108. TEST_LOCATE_COMPARE = 0,
  109. TEST_LOCATE_DATA,
  110. HIS_LOCATION,
  111. HIS_RAW_DATA,
  112. HIS_AREA_LOCATION_ENTER,
  113. HIS_AREA_LOCATION_LEAVE,
  114. RPT_ATTEND_DOWN,
  115. RPT_ATTEND_UP,
  116. ALARM_CARD_OVER_TIME_START,
  117. ALARM_CARD_OVER_TIME_END,
  118. ALARM_CARD_OVER_SPEED_START,
  119. ALARM_CARD_OVER_SPEED_END,
  120. //ALARM_CARD_LOST_START,
  121. //ALARM_CARD_LOST_END,
  122. ALARM_CARD_LOW_POWER_START,
  123. ALARM_CARD_LOW_POWER_END,
  124. ALARM_CARD_OVER_TIME_AREA_START,
  125. ALARM_CARD_OVER_TIME_AREA_END,
  126. ALARM_CARD_OVER_SPEED_AREA_START,
  127. ALARM_CARD_OVER_SPEED_AREA_END,
  128. ALARM_CARD_AREA_FORBIDDEN_START,
  129. ALARM_CARD_AREA_FORBIDDEN_END,
  130. ALARM_CARD_HELP_START,
  131. ALARM_CARD_HELP_END
  132. };
  133. enum STORE_AREA_DATA_FLAG{
  134. ALARM_AREA_OVER_COUNT_PERSON_START = 0,
  135. ALARM_AREA_OVER_COUNT_PERSON_END,
  136. ALARM_AREA_OVER_COUNT_VEHICLE_START,
  137. ALARM_AREA_OVER_COUNT_VEHICLE_END,
  138. ALARM_AREA_FORBIDDEN_PERSON_START,
  139. ALARM_AREA_FORBIDDEN_PERSON_END,
  140. ALARM_AREA_FORBIDDEN_VEHICLE_START,
  141. ALARM_AREA_FORBIDDEN_VEHICLE_END,
  142. };
  143. enum STORE_READER_DATA_FLAG{
  144. ALARM_READER = 0,
  145. ALARM_READER_LOST_START,
  146. ALARM_READER_LOST_END
  147. };
  148. enum STORE_MINE_DATA_FLAG{
  149. ALARM_MINE_OVER_COUNT_PERSON_START = 0,
  150. ALARM_MINE_OVER_COUNT_PERSON_END,
  151. ALARM_MINE_OVER_COUNT_VEHICLE_START,
  152. ALARM_MINE_OVER_COUNT_VEHICLE_END
  153. };
  154. enum LOCATE_TYPE
  155. {
  156. LT_COORDINATE = 0,
  157. LT_READER,
  158. LT_TDOA,
  159. };
  160. struct SQLTHREAD_DATA//写数据库线程传递的参数
  161. {
  162. char* pText;//数据库语句地址指针
  163. int nRepeatTimes;//已经重试几次
  164. };
  165. // 定位坐标
  166. struct _coordinate{
  167. _coordinate(){}
  168. int t; // 定位时间戳
  169. int reader_id;
  170. unsigned long long tt;
  171. double d; // 距离
  172. double x; // x坐标
  173. double y; // y坐标
  174. double z; // z坐标
  175. double a; // 平面角度
  176. double v; // 速度
  177. int antenna_id;
  178. double d_offset; // 与显示距离的偏移,用来修正单基站的情况
  179. };
  180. struct _point{ // 坐标
  181. double x;
  182. double y;
  183. double z;
  184. };
  185. struct _call_info_card
  186. {
  187. int card_id;
  188. int card_type;
  189. int call_type;
  190. string str_card_id;
  191. time_t start_time;
  192. int time_out;
  193. bool is_success;
  194. };
  195. typedef map<std::string, _call_info_card*> CallInfoCardMap;
  196. struct _call_info_reader
  197. {
  198. bool is_call_all;
  199. BYTE call_type;
  200. int cards_count;
  201. CallInfoCardMap mpCard;
  202. };
  203. typedef map<int, _call_info_reader*> CallInfoReaderMap;
  204. const int MAX_CALC_POINTS = 30;
  205. // 分站接收时间定义
  206. struct ReceiveData{
  207. unsigned int reader_id; // 分站号
  208. unsigned short antenna_id; // 天线号
  209. long long rec_time_stamp; // 分站接收时间,一个5字节的无符号数
  210. ReceiveData(){
  211. reader_id = -1;
  212. antenna_id = -1;
  213. rec_time_stamp = 0;
  214. };
  215. };
  216. typedef unordered_map<int,ReceiveData> ReceiveDataMap;
  217. //地图数据 2016-09-12 start
  218. //const int STATION_MAX = 40;
  219. /*typedef struct STATION{
  220. //int nType; //0---表示px,py使用2个参数,1表示px,py使用3个参数
  221. int nRealCalcPoints;
  222. double x[2];
  223. double y[2];
  224. double z[2];
  225. double px[MAX_CALC_POINTS];
  226. double py[MAX_CALC_POINTS];
  227. double pz[MAX_CALC_POINTS];
  228. };*/
  229. struct INFO_PRE{
  230. int t;
  231. long long detaT;
  232. double dist;
  233. int ant;
  234. int sta_num;
  235. };
  236. struct POS{
  237. double posx;
  238. double posy;
  239. double posz;
  240. double pos_radius;
  241. };
  242. struct RESULT{
  243. double x[3];
  244. double y[3];
  245. double z[3];
  246. int nCount;
  247. };
  248. //2016-09-12 end
  249. class Mine;
  250. class Area;
  251. class Reader;
  252. class Card;
  253. class MapInfo;
  254. class Dept;
  255. class ReaderPath;
  256. typedef map<string, Card*> CardMap;
  257. typedef map<int, Area*> AreaMap;
  258. typedef map<int, Reader*> ReaderMap;
  259. typedef map<int, MapInfo*> MapInfoMap;
  260. typedef map<int, Dept*> DeptMap;
  261. typedef map<int, string> AlarmTypeMap;
  262. typedef map<string, _coordinate*> DistMap;
  263. typedef map<int,ReaderPath*> ReaderPathMap;
  264. //typedef map<int,ReaderPathMap> TDOAReaderPathMap;
  265. typedef unordered_map<int,ReaderPathMap> TDOAReaderPathMap;
  266. struct DistQueItem
  267. {
  268. unsigned int t;
  269. DistMap mp_dist;
  270. };
  271. // 地图
  272. class MapInfo{
  273. public:
  274. MapInfo(void);
  275. ~MapInfo(void);
  276. public:
  277. int map_id;
  278. string map_path;
  279. string map_name;
  280. double map_width;
  281. double map_height;
  282. double map_scale;
  283. int map_type;
  284. AreaMap map_area_list;
  285. ReaderMap map_reader_list;
  286. CardMap map_card_list_person;
  287. CardMap map_card_list_vehicle;
  288. };
  289. // 区域
  290. class Area // 矩形
  291. {
  292. private:
  293. std::vector<std::string> split(std::string str,std::string pattern);
  294. double get_vertex(std::string src); // 顶点
  295. public:
  296. Area(void);
  297. ~Area(void);
  298. void init_border(string sz_path);
  299. bool is_in_polygon(_point p);
  300. public:
  301. int map_id;
  302. int area_id;
  303. string area_name;
  304. string area_type_name;
  305. int area_type_id;
  306. string path; // 多边形
  307. // 人员
  308. int over_count_person;
  309. int over_time_person;
  310. int under_count_person;
  311. int under_time_person;
  312. // 车辆
  313. int over_count_vehicle;
  314. int over_time_vehicle;
  315. int under_count_vehicle;
  316. int under_time_vehicle;
  317. int polygon_count;
  318. _point* polygon;
  319. // 坐标
  320. //double x;
  321. //double y;
  322. //double z;
  323. //double sr; // 短半径
  324. //double lr; // 长半径
  325. //double x1, y1, z1; // 矩形四个顶点
  326. //double x2, y2, z2;
  327. //double x3, y3, z3;
  328. //double x4, y4, z4;
  329. double rect_left;
  330. double rect_right;
  331. double rect_top;
  332. double rect_bottom;
  333. // 区域人数
  334. int count_person;
  335. int count_vehicle;
  336. int count_card;
  337. //
  338. bool is_area_over_time_person; // 车辆超时
  339. bool is_area_over_time_vehicle; // 人员超时
  340. int count_area_over_time_person; // 超时人数
  341. int count_area_over_time_vehicle; // 超时车数
  342. time_t time_over_time_person; // 开始超时时间
  343. time_t time_over_time_vehicle; // 开始超时时间
  344. bool is_area_over_count_person; // 人员超员
  345. bool is_area_over_count_vehicle; // 车辆超员
  346. int count_area_over_count_person;
  347. int count_area_over_count_vehicle;
  348. time_t time_over_count_person; // 开始时间
  349. time_t time_over_count_vehicle; // 开始时间
  350. bool is_area_forbidden_person;
  351. bool is_area_forbidden_vehicle;
  352. int count_area_forbidden_person;
  353. int count_area_forbidden_vehicle;
  354. time_t time_forbidden_person; // 开始时间
  355. time_t time_forbidden_vehicle; // 开始时间
  356. CardMap area_card_list_person;
  357. CardMap area_card_list_vehicle;
  358. };
  359. // 自组网预置坐标
  360. class Adhoc
  361. {
  362. public:
  363. Adhoc();
  364. ~Adhoc();
  365. public:
  366. int adhoc_id;
  367. double x;
  368. double y;
  369. double z;
  370. int idx;
  371. };
  372. // 天线
  373. class Antenna
  374. {
  375. public:
  376. Antenna(void);
  377. ~Antenna(void);
  378. public:
  379. int antenna_id;
  380. double antenna_x;
  381. double antenna_y;
  382. double antenna_z;
  383. double antenna_angle;
  384. };
  385. // 分站
  386. class Reader
  387. {
  388. public:
  389. Reader(void);
  390. ~Reader(void);
  391. public:
  392. int reader_id; // 分站号
  393. string reader_name; // 分站名称
  394. int device_type_id;
  395. int pos_state; // 位置状态 1井上,2井下
  396. string ip;
  397. double reader_x;
  398. double reader_y;
  399. double reader_z;
  400. double reader_angle;
  401. int map_id; // 所在地图
  402. int area_id; // 所属区域
  403. double map_scale; // 比例尺
  404. //double rec_time; // 接收数据时间
  405. time_t rec_time;
  406. time_t reader_time; // 分站时间
  407. time_t lost_time;
  408. int temperature; // 温度
  409. int tick_count; // 计数器
  410. int state; // 状态 0 正常, 1 故障
  411. int sync_level;
  412. int state_old; // 上一次状态
  413. Antenna* ant[ANTENNA_COUNT]; // 两个天线
  414. Adhoc* adhoc[ADHOC_COUNT];// 自组网节点预置坐标
  415. map<int,_point> readerCoveragePath;
  416. bool bIsInitCoverage;
  417. string get_state_text();
  418. };
  419. // 卡
  420. class Card
  421. {
  422. public:
  423. Card(void);
  424. ~Card(void);
  425. Card(string cardid, int cardtype,double z_offset, double offset_x = 12.0, double offset_y =12.0);
  426. public:
  427. int card_type; // 卡类型 0x01人, 0x02车
  428. //int64_t card_id; // 卡唯一标识, 高位为卡号,低位为卡类型, ((card_id << 8) | card_type)
  429. string card_id;
  430. // 人员
  431. string level; // 级别
  432. string occupation; // 职务
  433. // 人员、车辆
  434. string id; // 编号,人员或车辆
  435. string name; // 姓名、车辆名称
  436. string number; // 身份证号码,车牌号码
  437. string photo; // 照片
  438. string company; // 单位
  439. string department; // 部门
  440. int dept_id;
  441. int group_id;
  442. string group; // 班组
  443. string worktype; // 工种、车辆类型
  444. time_t deal_time; // 最后处理卡逻辑时间
  445. time_t rec_time; // 最后接收时间
  446. time_t down_time; // 入井时间
  447. time_t up_time; // 升井时间
  448. time_t enter_area_time; // 进入区域时间
  449. time_t enter_reader_time; // 进入分站时间
  450. time_t low_power_time; // 电量低开始时间
  451. //time_t enter_park_time; // 回场时间
  452. //time_t leave_park_time; // 出场时间, 开始工作时间
  453. double coor_offset_x;
  454. double coor_offset_y;
  455. double x;
  456. double y;
  457. double z;
  458. double a; // 上次定位时的角度
  459. int t; // 上次定位时的时间戳
  460. double z_offset;
  461. bool init_postion;
  462. bool is_first_location;
  463. double v; //速度
  464. double xx;
  465. double yy;
  466. double zz;
  467. double x1, x2, x3, x4;
  468. double y1, y2, y3, y4;
  469. double z1, z2, z3, z4;
  470. double last_x;
  471. double last_y;
  472. double last_z;
  473. int state; // 0 正常, 共32bit,每个bit代表一个状态,从右起:
  474. // 第一位 0x01 井下超时, 第二位 0x02 区域超时, 第三位 0x04 超速, 第四位 0x08, 进入限制区域
  475. // 电量低、 呼叫、呼救
  476. int status_over_time; // 0 未超时,1 超时
  477. int status_over_speed; // 0 未超速,1 超速
  478. int status_area_over_time; // 0 未区域超时, 1 区域超时
  479. int status_area_over_speed; // 0 未区域超速, 1 区域超速
  480. int status_area_forbidden; // 0 未进入限制区域, 1 进入限制区域
  481. int status_help; // 0 未呼救, 1 呼救, 2 已处理呼救
  482. int status_call; // 0 未呼叫 1 呼叫
  483. int status_power; // 0 电量正常,1 电量低
  484. int status_lost; // 0 未进入盲区,1 盲区状态
  485. int status_moving; // 运动状态, 0 静止,1 启动
  486. int map_id; // 当前地图
  487. double map_scale; // 地图比例尺
  488. int map_id_old; // 上次测距所在地图
  489. int area_id; // 当前区域
  490. int reader_id; // 当前分站
  491. Reader* p_reader;
  492. ReaderPathMap* pReaderPathMap;
  493. TDOAReaderPathMap* pTdoaReaderPathMap;
  494. _coordinate** p_dists;
  495. _coordinate** p_dists_locate;
  496. _coordinate last_locate;
  497. deque<DistQueItem*> _dists;
  498. int time_stamp_max; // 最大时间戳,即需要计算定位的时间戳
  499. //int get_pos_state() const { return pos_state; }
  500. //void set_pos_state(int val) ;
  501. //int get_pos_state_count() const { return pos_state_count; }
  502. int pos_state; // 位置状态,0初始化,1井下,2井上,3车场分站
  503. int pos_state_old;
  504. int pos_state_last;
  505. int pos_state_count; // 当前位置状态确认次数
  506. //int last_area_type_id;
  507. //int cur_area_type_id;
  508. bool issent; // true 已发送至客户端,false 新数据,需要发送至客户端
  509. bool issaved; //true 已保存到数据库,false 生成新的考勤记录,需要保存到数据库
  510. bool isdealed; // 已经处理
  511. bool isreceive; // 接收到
  512. bool is_pos_changed;
  513. bool is_init_kalman ;
  514. bool is_hist;
  515. bool is_need_cal;
  516. bool is_mine_over_time; // 是否井下超时
  517. bool is_area_over_time; // 是否区域超时, 区域超时分车辆超时、人员超时
  518. time_t time_area_over_time; // 区域超时开始时间
  519. time_t time_over_time; // 井下超时开始时间
  520. time_t time_area_forbidden; // 进入限制区域时间
  521. time_t time_over_speed; // 超速开始时间
  522. time_t time_low_power;
  523. void set_reader(Reader* preader);
  524. bool is_pos_state_changed(int nval); // 入\升井状态变化
  525. void add_dist(_coordinate* dist);
  526. string concat(int reader_id, int ant_id);
  527. time_t get_working_time();
  528. string get_state_text();
  529. string get_acc_text();
  530. double get_speed();
  531. int get_effictive_dist_count(int offset = 0);
  532. void set_reader_path(ReaderPathMap *rpm);
  533. void set_reader_path(TDOAReaderPathMap* trpm);
  534. public:
  535. // 滤波算法相关
  536. //CalLocation* cal_location;
  537. CalLocation3* cal_location3;
  538. //Point2* p2_anchors;
  539. Point3* p3_anchors;
  540. //bool is_init_kalman;
  541. CKalmanFilter* m_pKalmanFilter;
  542. //int m_max_stamp; // 最大的时间戳,即最近采集的数据
  543. bool is_anchor_changed;
  544. void get_coordinate();
  545. void get_coordinate(int cnt);
  546. void get_coordinate_3d(int cnt);
  547. void get_coordinate_2d(int cnt);
  548. void set_anchors(int cnt);
  549. void InitStation();
  550. public: // 采集到的底层数据
  551. int reader_tickcount;
  552. int time_stamp; // 定位时间戳
  553. int ranging_type; // 报文类型 tof,tdoa
  554. int accelerate_state; // 加速度
  555. int antenna_id; // 天线号
  556. double antenna_angle; // 天线角度
  557. double distance; // 距离
  558. int64_t flying_time; // 飞行时间
  559. int power_state; // 电量
  560. unsigned short sync_num;
  561. int time_stamp_last; // 定位时间戳
  562. int context_type_last; // 报文类型 tof,tdoa
  563. int accelerate_state_last; // 加速度
  564. int antenna_id_last; // 天线号
  565. double antenna_angle_last; // 天线角度
  566. double distance_last; // 距离
  567. int64_t flying_time_last; // 飞行时间
  568. int power_state_last; // 电量
  569. string str_his_time;
  570. string str_rec_time;
  571. };
  572. class Dept
  573. {
  574. public:
  575. Dept();
  576. ~Dept();
  577. Dept(int id, string name);
  578. private:
  579. public:
  580. int dept_id;
  581. string dept_name;
  582. CardMap dept_card_list_person;
  583. CardMap dept_card_list_vehicle;
  584. };
  585. /*
  586. * 地图集路径描述
  587. */
  588. class ReaderPath{
  589. public:
  590. ReaderPath(){
  591. nRealCalcPoints = 0;
  592. x[0] = x[1] = y[0] = y[1] = 0;
  593. for(int i=0;i<MAX_CALC_POINTS;i++){
  594. px[i] = py[i] = pz[i] = 0;
  595. }
  596. }
  597. public:
  598. //对于TOF而言,x,y表示1,2天线对应的坐标
  599. //对于TDOA而言,x,y表示焦点F1,F2(等同于分站i,i+1)的坐标
  600. int nRealCalcPoints;
  601. double x[2];
  602. double y[2];
  603. double z[2];
  604. double px[MAX_CALC_POINTS];
  605. double py[MAX_CALC_POINTS];
  606. double pz[MAX_CALC_POINTS];
  607. };
  608. #endif //YASERVER_CLASSDEF_H_