Given:
Comments:
As long as it was working, it is a good idea to start with last week's homework. All questions in this lab refer to PRN 24. For this lab, RL1 means C1 and RL2 means P2.
Your code should be set up to read the RINEX header, and then to read as many RINEX obervation records as needed. If you want to read to the end of the file, use feof, i.e. set up a while loop, while ~feof(fid).
The orbit time-tags are defined in GPS week and GPS second of the week, the timing system used by the DoD. RINEX files were created by scientists (primarily geodesists) and they wanted something more normal, like year, month, day, hour, minute, second. The function GPS_week allows you to to calculate the week/second of the week from Y/M/D HH:MM:SS. Gps_to_sec.m is used to convert from seconds of the week to seconds since midnite.
Goal: to see how a GPS data file relates to the observable equations we are learning about in class.
Lab instructions:
Turn in: code, answers to questions, and plots. x-axis limits should all be in hours since midnite.