Changeset 113 in tmcsimulator for branches/FEPSimulator/DataPacker.cpp


Ignore:
Timestamp:
10/14/2017 09:18:40 AM (9 years ago)
Author:
jtorres
Message:

LinuxVM non-segfaulting FEPSimulator - checkpoint

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/FEPSimulator/DataPacker.cpp

    r80 r113  
    11#include "DataPacker.h"; 
     2#include <stdio.h> 
    23 
    34unsigned char * DataPacker::msg; 
     
    78    DataPacker packer; 
    89    msg = packer.staticDataPack(station); 
    9     pos = packer.dynamicDataPack(station, 5, pos);     
     10/*    pos = packer.dynamicDataPack(station, 5, pos);     
    1011    pos = packer.dynamicDataPack(station, 6, pos); 
    1112    pos = packer.dynamicDataPack(station, 7, pos); 
     
    1920    // will need to check if queue override is enabled (Currently, no queue 
    2021    // ldsMap[i].dataPack[16-1] = ; 
    21  
     22*/ 
    2223    // byte 23: MAINLINE total volume 
    2324    msg[23 - 1] = station->MlTotVol; 
     
    3031            packer.chksum(msg, station->length - 1 - 1); 
    3132     
    32     /* 
    3333    for (int j = 0; j < station->length; j++) { 
    3434        printf("%02X", msg[j]); 
    3535    } 
    3636    printf("\n"); 
    37     */ 
     37 
     38    return msg;  
    3839} 
    3940 
Note: See TracChangeset for help on using the changeset viewer.