Changeset 72 in tmcsimulator for branches/fep_client_cpp/fep_client.cpp


Ignore:
Timestamp:
09/07/2017 01:36:46 PM (9 years ago)
Author:
jtorres
Message:

added lds_data files, we are now dumping fep_reply to ATMS with real data

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/fep_client_cpp/fep_client.cpp

    r71 r72  
    2828} 
    2929 
    30  
    3130void xfer_replys(CLIENT *clnt, FEP_LINE_LDS *lines, int lines_size, LDS_LOOP *ldsMap) 
    3231{ 
     32        printf("Lines_size %d\n", lines_size); 
    3333        int i, j; // i == line_index, j == lds_index 
    3434        void *rv; 
     
    5858                        uci_unix_simulation_time(uci_simulation_time());        // GMT time 
    5959                */ 
     60                fepReply.schedule_time = time(NULL); 
     61 
     62 
    6063                fepReply.user_info1 = lines[i].lineNum; 
    6164                fepReply.user_info2 = lines[i].lineNum; 
     
    134137         
    135138        /* Load data to be xfered to ATMS */ 
    136         int lines_size; 
     139        int lines_size = 0; 
     140        printf("Loading lines and ldsMap\n"); 
    137141        FEP_LINE_LDS *lines = load_lines(&lines_size, "./lines_atms.txt"); 
     142        printf("Done loading lines\n"); 
    138143        LDS_LOOP *ldsMap = load_lds("./lds_atms.txt"); 
     144        printf("Done loading lines and lds...\n"); 
    139145 
    140146        /* Transfer data to ATMS */ 
     
    142148 
    143149        /* Free allocated memory */ 
    144         free(lines); 
    145         free(ldsMap); 
    146150 
    147151        /* Destroy client */ 
Note: See TracChangeset for help on using the changeset viewer.