Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Basic definations in the spread sprectrum #3

Open
patel999jay opened this issue Jul 2, 2020 · 0 comments
Open

Basic definations in the spread sprectrum #3

patel999jay opened this issue Jul 2, 2020 · 0 comments

Comments

@patel999jay
Copy link

What if i want to just do a simulation on lower frequency let's say 25KHz I had tried with the code already it looks like the coarse_acquisition_code_signal is calculated incorrectly . Here is the case test run :

This is coarse_acquisition_code_frequency :  2500.0
Base frequency:  25000
Carrier frequency:  175000
CA code frequency:  2500.0
Message frequency:  500
Reference frequency:  32000
Reference multiplier:  5
Mixer frequency:  160000
Intermediate frequency:  15000
Filter bandwidth:  4000
Sampling frequency:  68000.0
Carrier done.
CA code done.
Message done.

message_signal.shape = (48972,)
carrier_signal.shape = (48999,)
(coarse_acquisition_code_signal.shape = (0,)
---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
<ipython-input-24-2baee26d4572> in <module>
    320 print(coarse_acquisition_code_signal)
    321 
--> 322 output_signal = message_signal * carrier_signal * coarse_acquisition_code_signal
    323 print("Output done.")
    324 

ValueError: operands could not be broadcast together with shapes (48972,) (48999,) 

I may be wrong somewhere. Can you please explain how can i calculate relative reference frequency and sampling rate ? Do we need intermediate frequency at all ? Can i just by pass those ?

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant