Introduction - If you have any usage issues, please Google them yourself
The function is used to generate a pseudo-random code generation of any GPS satellite 37 C / A codes Sv_id - satellite number cod - a vector comprising an output sequence g2s - vector containing the corresponding code phase values g2 for obtaining the code required satellite SA