@@ -784,13 +784,13 @@ s8 calc_navigation_measurement(u8 n_channels, const channel_measurement_t *meas[
784
784
/* Compute the time of transmit of the signal on the satellite from the
785
785
* tracking loop parameters. This will be used to compute the pseudorange. */
786
786
nav_meas [i ]-> tot .tow = 1e-3 * meas [i ]-> time_of_week_ms ;
787
- nav_meas [i ]-> tot .tow += meas [i ]-> code_phase_chips / 1.023e6 ;
788
- nav_meas [i ]-> tot .tow -= meas [i ]-> rec_time_delta * meas [i ]-> code_phase_rate / 1.023e6 ;
787
+ nav_meas [i ]-> tot .tow += meas [i ]-> code_phase_chips / GPS_CA_CHIPPING_RATE ;
788
+ nav_meas [i ]-> tot .tow -= meas [i ]-> rec_time_delta * meas [i ]-> code_phase_rate / GPS_CA_CHIPPING_RATE ;
789
789
/* For now use the week number from the ephemeris. */
790
790
/* TODO: Should we use a more reliable source for the week number? */
791
791
/* TODO (Leith): There might be a bug where ephmeris ToW is set to 0 */
792
792
/* near end of the week, without ToW being rolled over? */
793
- /* It woukd this functions' assumptions to break. */
793
+ /* It would cause this functions' assumptions to break. */
794
794
gps_time_match_weeks (& nav_meas [i ]-> tot , & e [i ]-> toe );
795
795
796
796
/* Compute the carrier phase measurement. */
@@ -820,7 +820,7 @@ s8 calc_navigation_measurement(u8 n_channels, const channel_measurement_t *meas[
820
820
/* If we were given a time, use that. */
821
821
tor = * rec_time ;
822
822
} else {
823
- /* If we were not given a recieve time then we can just set one of the
823
+ /* If we were not given a time of reception then we can just set one of the
824
824
* pseudoranges aribtrarily to a nominal value and reference all the other
825
825
* pseudoranges to that. This doesn't affect the PVT solution but does
826
826
* potentially correspond to a large receiver clock error. */
@@ -870,7 +870,7 @@ int nav_meas_cmp(const void *a, const void *b)
870
870
* \param n_old Number of measurements in `m_old`
871
871
* \param m_old Array of old navigation measurements, sorted by PRN
872
872
* \param m_corrected Array in which to store the output measurements
873
- * \param dt The difference in receiver time betweeb the two measurements
873
+ * \param dt The difference in receiver time between the two measurements
874
874
* \return The number of measurements written to `m_tdcp`
875
875
*/
876
876
u8 tdcp_doppler (u8 n_new , navigation_measurement_t * m_new ,
0 commit comments