Changeset 205 in tmcsimulator for branches/FEPSimulator/FEPSim.cpp


Ignore:
Timestamp:
11/01/2017 03:53:59 AM (9 years ago)
Author:
jtorres
Message:

LoadHighwaysTest?.java: now passing. HighwaysParser?.cpp: added a bunch of debugging output to stdout, bug still not found. FEPSim.h: changed buffer size. FEPSim.cpp: some local debugging outputs/config.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/FEPSimulator/FEPSim.cpp

    r202 r205  
    2626    vector<STATION*> ldsMap = highwaysParser.stations; 
    2727 
     28     
    2829    // Send one reply for every FEPLine 
    2930    for (int i = 0; i < lines.size(); i++) { 
     
    7475            fsa.msg.message[3 + aa] = 0xff; 
    7576             
    76             for(int l = 0; l < fsa.msg.message_len + 2; l++) 
     77            /*for(int l = 0; l < fsa.msg.message_len + 2; l++) 
    7778            { 
    7879                printf("%02X", (unsigned char) fsa.msg.message[l]); 
    7980            } 
    80             printf("\n"); 
     81            printf("\n");*/ 
    8182             
    8283            // info 
     
    8990            fepReply.answers.fep_answer_list_u.shortp.answers[0] = fsa; 
    9091            // send out data 
    91             printf("Transferring line=%d, lds_drop_no=%d...\n", lines.at(i)->lineNum, (int)ldsMap.at(index)->drop); 
     92            //printf("Transferring line=%d, lds_drop_no=%d...\n", lines.at(i)->lineNum, (int)ldsMap.at(index)->drop); 
    9293            // Make RPC Call and handle response 
    9394            // printf("Handling ATMS response...\n"); 
     
    178179        // zero out buffer 
    179180        bzero(buffer, BUFF_SIZE); 
    180  
     181         
    181182        // read XML from socket 
    182183        int totBytes = 0; 
     
    184185            totBytes += n; 
    185186        } 
     187        HighwaysParser highwaysParser = HighwaysParser(buffer); 
     188 
    186189 
    187190        if (n < 0) { 
Note: See TracChangeset for help on using the changeset viewer.