Changeset 4641

Show
Ignore:
Timestamp:
02/25/07 22:07:15
Author:
jcorgan
Message:

Applied changeset r4585 on trunk to release branch.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • gnuradio/branches/releases/3.0/gnuradio-core/src/lib/general/gr_correlate_access_code_bb.cc

    r3534 r4641  
    4646                   gr_make_io_signature (1, 1, sizeof(char))), 
    4747    d_data_reg(0), d_flag_reg(0), d_flag_bit(0), d_mask(0), 
    48     d_threshold(threshold), d_flip(0) 
     48    d_threshold(threshold) 
    4949 
    5050{ 
     
    9595    unsigned int t = 0; 
    9696 
    97     t |= d_flip ^ (((d_data_reg >> 63) & 0x1) << 0)
     97    t |= ((d_data_reg >> 63) & 0x1) << 0
    9898    t |= ((d_flag_reg >> 63) & 0x1) << 1;       // flag bit 
    9999    out[i] = t; 
     
    107107    nwrong = gr_count_bits64(wrong_bits); 
    108108 
    109     // test for access code with up to threshold errors or its compelement 
    110     new_flag = (nwrong <= d_threshold) || (nwrong >= (64-d_threshold))
     109    // test for access code with up to threshold errors 
     110    new_flag = (nwrong <= d_threshold)
    111111 
    112112#if 0    
     
    121121    if (new_flag) { 
    122122      d_flag_reg |= d_flag_bit; 
    123       d_flip = nwrong >= (64-d_threshold);   // flip bits if this is true 
    124123    } 
    125124  } 
  • gnuradio/branches/releases/3.0/gnuradio-core/src/lib/general/gr_correlate_access_code_bb.h

    r3534 r4641  
    6363                                        //   N is the number of bits in the access code) 
    6464  unsigned int       d_threshold;       // how many bits may be wrong in sync vector 
    65   unsigned int       d_flip;            // flip bits if 180 degress out of sync 
    66  
    6765 
    6866 protected: