Question: write a python script for generating the transmitted BPSK ( Binary Phase shift Keying ) of 1 0 2 3 bits for space vehicle 2

write a python script for generating the transmitted BPSK (Binary Phase shift Keying) of 1023 bits for space vehicle 20.with PRN code [4,7]. The digital output is all 1s and 0s. However when transmitted with BPSK all of the 1s become 1s and all of the 0s become -1s. The construction of G1, G2 and the taps used for each space vehicle are as followed:
# Define the shift and PRN functions as before
def shift(register, feedback, output):
out =[register[i-1] for i in output]
if len(out)>1:
out = sum(out)%2
else:
out = out[0]
fb = sum([register[i-1] for i in feedback])%2
for i in reversed(range(len(register[1:]))):
register[i+1]= register[i]
register[0]= fb
return out
def PRN(sv):
G1=[1 for i in range(10)]
G2=[1 for i in range(10)]
ca =[]
for i in range(1023):
g1= shift(G1,[3,10],[10])
g2= shift(G2,[2,3,6,8,9,10], sv)
ca.append(2*((g1+ g2)%2)-1)
# Generate the PRN code for the chosen space vehicle (e.g., SV20)
sv_prn = PRN([4,7]) # Using SV20 as an example

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!