Changeset 79 in tmcsimulator for branches/fep_rpc_client/network.h


Ignore:
Timestamp:
10/05/2017 12:51:23 PM (9 years ago)
Author:
jtorres
Message:

new atmsdriver package in trunk. fep_rpc_client dynamic data packing added in branches. fep_rpc_client refactored data packing code into static DataPacker? class. Added vds_data folder into config/. Added new project configuration for ATMSDriver.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/fep_rpc_client/network.h

    r77 r79  
    1111const int Fixed_Byte_To_Checksum = 25; // the first byte is not considered in the calculation of "BYTE 2" 
    1212const int CONTROL_DATA_LEN = 27; 
     13 
    1314char * const dp5[8] = { "ML_1", "ML_2", "ML_3", "ML_4", "ML_5", 
    1415                                                "ML_6", "HOV_Lane", "FYW_Conn"}; 
     
    2021                                                "SD_6", "Pass_Vol_Count", "X"}; 
    2122 
    22 /*** NETWORK STRUCTS ***/ 
    23 typedef struct loopagg LOOPAGG; 
    24 struct loopagg 
    25 { 
    26         int             index; 
    27         char    lane;                   // how namy lanes at the detector station 
    28         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  
    3823// FEP line: has several lds 
    3924typedef struct fep_line FEP_LINE; 
    4025struct  fep_line 
    4126{ 
    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 
    4630 
    47         short   count;  // actual count from caltrans 
    48         int             schedule; 
    49         int             lineInfo; 
     31        short   count;  // actual count from caltrans 
     32        int     schedule; 
     33        int     lineInfo; 
    5034        long    systemKey; 
    5135        long    globalSeq; 
    5236        long    schedleSeq; 
     37}; 
     38 
     39// Loop detector 
     40typedef struct loop LOOP; 
     41struct loop 
     42{ 
     43    long loopID; 
     44    char *loop_loc; 
     45     
     46    int vol; 
     47    float occ; 
     48    double spd; 
    5349}; 
    5450 
     
    6157        short   line_num; 
    6258        short   drop; 
    63  
    64         int             num;    // number of loops 
    65         long    *loopID; 
    66         char    **loop_loc; 
     59         
     60        vector<LOOP*> loops; 
    6761 
    6862        // LDS data 
     
    7468}; 
    7569 
     70typedef struct volOcc VOLOCC; 
     71struct  volOcc 
     72{ 
     73   char high; 
     74   char low; 
     75}; 
     76 
     77 
    7678#endif 
Note: See TracChangeset for help on using the changeset viewer.