osqzss / gps-sdr-sim

Software-Defined GPS Signal Simulator
MIT License
2.75k stars 773 forks source link

Why do we initialize subframe 5 in GenNavMessage function? #324

Open Imtiaz08 opened 2 years ago

Imtiaz08 commented 2 years ago

@osqzss @Mictronics @sgk @scateu

Anyone, can you please clarify this confusion?

why do we need to initialize the subframe 5? sub

Imtiaz08 commented 2 years ago

@scateu @laf0rge @sgk @osqzss @Mictronics kindly if you can explain why the subframe 5 is being initialized and kept in the beginning of Dwrd?

osqzss commented 2 years ago

Since the time stamp of the sampling data is the signal "reception" time, you always receive "delayed" navigation data. At the simulation time of the beginning of the first subframe, you will get the data bit of subframe 5.