Changeset 8875

Show
Ignore:
Timestamp:
03/05/09 14:30:53 (4 years ago)
Author:
hvolos
Message:

reducing overhead

Location:
ossiedev/branches/hvolos/packetwfrm/components
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • ossiedev/branches/hvolos/packetwfrm/components/FrameAssembler/src/FrameAssembler.cpp

    r8831 r8875  
    187187    unsigned int j(0); 
    188188    unsigned int blockSize(512); 
     189    unsigned int ramp_length=128; 
    189190 
    190191    // Prepare preamble phasing pattern, ramp up/down 
     
    192193    short * Q_phasing_pattern = new short[512]; 
    193194    PortTypes::ShortSequence I_out_phasing_pattern, Q_out_phasing_pattern; 
    194     I_out_phasing_pattern.length(256); 
    195     Q_out_phasing_pattern.length(256); 
     195    I_out_phasing_pattern.length(ramp_length); 
     196    Q_out_phasing_pattern.length(ramp_length); 
    196197    PortTypes::ShortSequence I_out_ramp_up, Q_out_ramp_up; 
    197     I_out_ramp_up.length(256); 
    198     Q_out_ramp_up.length(256); 
     198    I_out_ramp_up.length(ramp_length); 
     199    Q_out_ramp_up.length(ramp_length); 
    199200    PortTypes::ShortSequence I_out_ramp_down, Q_out_ramp_down; 
    200     I_out_ramp_down.length(256); 
    201     Q_out_ramp_down.length(256); 
     201    I_out_ramp_down.length(ramp_length); 
     202    Q_out_ramp_down.length(ramp_length); 
    202203 
    203204    AssemblePhasingPattern(I_phasing_pattern, Q_phasing_pattern); 
    204     for (unsigned int i=0; i<256; i++) { 
     205    for (unsigned int i=0; i<ramp_length; i++) { 
    205206        I_out_phasing_pattern[i] = I_phasing_pattern[i]; 
    206207        Q_out_phasing_pattern[i] = Q_phasing_pattern[i]; 
    207208         
    208         I_out_ramp_up[i] = (short) (I_phasing_pattern[i] * (0.5 - 0.5*cos( PI*i/256 ))); 
    209         Q_out_ramp_up[i] = (short) (Q_phasing_pattern[i] * (0.5 - 0.5*cos( PI*i/256 ))); 
     209        I_out_ramp_up[i] = (short) (I_phasing_pattern[i] * (0.5 - 0.5*cos( PI*i/ramp_length ))); 
     210        Q_out_ramp_up[i] = (short) (Q_phasing_pattern[i] * (0.5 - 0.5*cos( PI*i/ramp_length ))); 
    210211         
    211212        I_out_ramp_down[i] = 1 - I_out_ramp_up[i]; 
     
    257258                 
    258259 
    259                  ConfigureFrameType(FRAME_TYPE_DATA); 
     260                 //ConfigureFrameType(FRAME_TYPE_DATA); 
    260261 
    261262                ConfigureFrameSize(frame_size_option); 
  • ossiedev/branches/hvolos/packetwfrm/components/FrameAssembler/src/FrameAssemblerDSP.cpp

    r8831 r8875  
    192192 
    193193    // Write control blocks 
    194     for (unsigned int i=0; i<8; i++) { 
     194    for (unsigned int i=0; i<5; i++) { 
    195195        WriteSequence(controlBlock[i], 31, I_out, Q_out); 
    196196        I_out += 31; 
  • ossiedev/branches/hvolos/packetwfrm/components/SymbolSyncPoly/src/FrameSynchronizerDSP.cpp

    r8826 r8875  
    324324    } 
    325325 
     326/** 
    326327    // specify frame type 
    327328    unsigned int ft = DecodeControlSequence(5,6); 
     
    346347        eomSize=0; 
    347348    } 
    348  
     349**/ 
    349350 
    350351    std::cout << "FRAME HEADER EXTRACTED (mod: " << ms 
  • ossiedev/branches/hvolos/packetwfrm/components/SymbolSyncPoly/src/FrameSynchronizerDSP.h

    r8826 r8875  
    3030 
    3131#define FRAME_SYNC_BUFFER_SIZE 255  ///< size of frame sync buffer 
    32 #define NUM_CONTROL_CODES 8         ///< number of control codes 
     32#define NUM_CONTROL_CODES 5         ///< number of control codes 
    3333 
    3434//#define FRAME_SIZE_1 2048           ///< Frame size option 1