File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -71,9 +71,9 @@ void GnssReceiver::MainRoutine(const int time_count) {
71
71
// Pseudorange calculation
72
72
size_t number_of_calculated_gnss_satellites = gnss_satellites_->GetNumberOfCalculatedSatellite ();
73
73
for (size_t i = 0 ; i < number_of_calculated_gnss_satellites; i++) {
74
- math::Vector<3 > gnss_satellite_position_i_m = gnss_satellites_->GetPosition_eci_m (i);
75
- math::Vector<3 > position_true_i_m = dynamics_->GetOrbit ().GetPosition_i_m ();
76
- double geometric_distance_m = (gnss_satellite_position_i_m - position_true_i_m ).CalcNorm ();
74
+ math::Vector<3 > gnss_satellite_position_ecef_m = gnss_satellites_->GetPosition_ecef_m (i);
75
+ math::Vector<3 > position_true_ecef_m = dynamics_->GetOrbit ().GetPosition_ecef_m ();
76
+ double geometric_distance_m = (gnss_satellite_position_ecef_m - position_true_ecef_m ).CalcNorm ();
77
77
randomization::NormalRand pseudorange_random_noise_m;
78
78
pseudorange_random_noise_m.SetParameters (0.0 , pseudorange_noise_standard_deviation_m_, randomization::global_randomization.MakeSeed ());
79
79
double pseudorange_m = geometric_distance_m + pseudorange_random_noise_m;
You can’t perform that action at this time.
0 commit comments