osqzss / gps-sdr-sim

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

Modify -p option to allow setting of fixed gain value #385

Closed antmerlino closed 5 months ago

antmerlino commented 11 months ago

By allowing the fixed gain to be set, the output power can be tuned to the amount of attenuation in the antenna path. This is helpful in getting reliable CN0 values from the satellites. Too much signal causes cross-correlations among the satellites.

-p without options still works as before and sets the fixed gain to 128 -p with an integer between 1 and 128 configures the fixed gain dynamically.

NOTE: Perhaps 1 and 128 aren't the appropriate bounds. Feel free to update if there are more appropriate bounds.