Changeset 5585

Show
Ignore:
Timestamp:
10/30/07 10:18:16 (6 years ago)
Author:
jgaeddert
Message:

reducing length of ramp up/phasing pattern

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • experimental/components/FrameAssembler/branches/FrameAssembler-metadata/src/FrameAssembler.cpp

    r5558 r5585  
    222222    short * Q_phasing_pattern = new short[512]; 
    223223    PortTypes::ShortSequence I_out_phasing_pattern, Q_out_phasing_pattern; 
    224     I_out_phasing_pattern.length(512); 
    225     Q_out_phasing_pattern.length(512); 
     224    I_out_phasing_pattern.length(256); 
     225    Q_out_phasing_pattern.length(256); 
    226226    PortTypes::ShortSequence I_out_ramp_up, Q_out_ramp_up; 
    227     I_out_ramp_up.length(512); 
    228     Q_out_ramp_up.length(512); 
     227    I_out_ramp_up.length(256); 
     228    Q_out_ramp_up.length(256); 
    229229    PortTypes::ShortSequence I_out_ramp_down, Q_out_ramp_down; 
    230     I_out_ramp_down.length(512); 
    231     Q_out_ramp_down.length(512); 
     230    I_out_ramp_down.length(256); 
     231    Q_out_ramp_down.length(256); 
    232232 
    233233    AssemblePhasingPattern(I_phasing_pattern, Q_phasing_pattern); 
    234     for (unsigned int i=0; i<512; i++) { 
     234    for (unsigned int i=0; i<256; i++) { 
    235235        I_out_phasing_pattern[i] = I_phasing_pattern[i]; 
    236236        Q_out_phasing_pattern[i] = Q_phasing_pattern[i]; 
    237237         
    238         I_out_ramp_up[i] = (short) (I_phasing_pattern[i] * (0.5 - 0.5*cos( PI*i/512 ))); 
    239         Q_out_ramp_up[i] = (short) (Q_phasing_pattern[i] * (0.5 - 0.5*cos( PI*i/512 ))); 
     238        I_out_ramp_up[i] = (short) (I_phasing_pattern[i] * (0.5 - 0.5*cos( PI*i/256 ))); 
     239        Q_out_ramp_up[i] = (short) (Q_phasing_pattern[i] * (0.5 - 0.5*cos( PI*i/256 ))); 
    240240         
    241241        I_out_ramp_down[i] = 1 - I_out_ramp_up[i]; 
     
    286286 
    287287        // push preamble 
    288         for (unsigned int i=0; i<2; i++) { 
     288        for (unsigned int i=0; i<1; i++) { 
    289289            DEBUG(7, FrameAssembler, "pushing phasing " << I_out_phasing_pattern.length() << " frame samples") 
    290290            dataOut_0->pushPacket(I_out_phasing_pattern, Q_out_phasing_pattern, *metadata); 
     
    330330        // ASSEMBLE_EOM_CODE: 
    331331        // push phasing pattern 
    332         ///\todo assemble EOM code 
    333         // push preamble 
     332        ///\todo push control packet (BPSK) 
    334333        for (unsigned int i=0; i<4; i++) { 
    335334            DEBUG(7, FrameAssembler, "pushing tail " << I_out_phasing_pattern.length() << " frame samples")