Changeset 79 in tmcsimulator for branches/fep_rpc_client/network.h
- Timestamp:
- 10/05/2017 12:51:23 PM (9 years ago)
- File:
-
- 1 edited
-
branches/fep_rpc_client/network.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/fep_rpc_client/network.h
r77 r79 11 11 const int Fixed_Byte_To_Checksum = 25; // the first byte is not considered in the calculation of "BYTE 2" 12 12 const int CONTROL_DATA_LEN = 27; 13 13 14 char * const dp5[8] = { "ML_1", "ML_2", "ML_3", "ML_4", "ML_5", 14 15 "ML_6", "HOV_Lane", "FYW_Conn"}; … … 20 21 "SD_6", "Pass_Vol_Count", "X"}; 21 22 22 /*** NETWORK STRUCTS ***/23 typedef struct loopagg LOOPAGG;24 struct loopagg25 {26 int index;27 char lane; // how namy lanes at the detector station28 long time;29 int interval;30 int g_vol;31 float g_occ;32 double g_spd;33 int *vol;34 float *occ;35 double *spd;36 };37 38 23 // FEP line: has several lds 39 24 typedef struct fep_line FEP_LINE; 40 25 struct fep_line 41 26 { 42 int lineNum; 43 vector<long> lds; 44 vector<long> ldsIndex; // location in ldsMap 45 short ldsNum; // actual number of lds on the line 27 int lineNum; 28 vector<long> lds; 29 vector<long> ldsIndex; // location in ldsMap 46 30 47 short count; // actual count from caltrans48 int schedule;49 int lineInfo;31 short count; // actual count from caltrans 32 int schedule; 33 int lineInfo; 50 34 long systemKey; 51 35 long globalSeq; 52 36 long schedleSeq; 37 }; 38 39 // Loop detector 40 typedef struct loop LOOP; 41 struct loop 42 { 43 long loopID; 44 char *loop_loc; 45 46 int vol; 47 float occ; 48 double spd; 53 49 }; 54 50 … … 61 57 short line_num; 62 58 short drop; 63 64 int num; // number of loops 65 long *loopID; 66 char **loop_loc; 59 60 vector<LOOP*> loops; 67 61 68 62 // LDS data … … 74 68 }; 75 69 70 typedef struct volOcc VOLOCC; 71 struct volOcc 72 { 73 char high; 74 char low; 75 }; 76 77 76 78 #endif
Note: See TracChangeset
for help on using the changeset viewer.
