I am trying to implement a simple pseudo-noise (PN) ranging simulation. I have used this GNU Radio example, and I have adapted it a bit to suit my needs.
The most important change is that I have introduced a new variable called 'bps' (bits per second). I use it and the 'samp_rate' to calculate the samples-per-symbol by the following formula:
sps = int(samp_rate/bps)
Why increasing the bits per second (bps) and therefore decreasing the samples per symbol (sps) gives better correlation between the reference and "transmitted" signals?