Skip to content
This repository has been archived by the owner on May 29, 2022. It is now read-only.

Commit

Permalink
[ci-skip] Clean up commented-out example code.
Browse files Browse the repository at this point in the history
  • Loading branch information
UT-dave committed Nov 18, 2020
1 parent 578820b commit 7d3a6c9
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
13 changes: 8 additions & 5 deletions core/lib/ORD/ord.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,15 @@ double TroposphereCorrection(const gpstk::TropModel& tropModel,
* Users should construct an ORD algorithm based on their data and use case.
*
double calculate_ord(const std::vector<CarrierBand>& bands,
const std::vector<double>& pseudoranges, const gpstk::Position& rx_loc,
const gpstk::SatID& sat_id, const gpstk::CommonTime& transmit_time,
const std::vector<double>& pseudoranges,
const gpstk::Position& rx_loc,
const gpstk::SatID& sat_id,
const gpstk::CommonTime& transmit_time,
const gpstk::CommonTime& receive_time,
const gpstk::IonoModelStore& iono_model,
const gpstk::TropModel& trop_model,
const gpstk::XvtStore<gpstk::SatID>& ephemeris, int range_method) {
const gpstk::XvtStore<gpstk::SatID>& ephemeris,
int range_method) {
double ps_range = IonosphereFreeRange(bands, pseudoranges);
gpstk::Xvt sv_xvt;
Expand Down Expand Up @@ -316,8 +319,8 @@ double calculate_ord(const std::vector<CarrierBand>& bands,
range += TroposphereCorrection(trop_model, rx_loc, sv_xvt);
// apply ionosphere model correction -- GPS only (this is Klobuchar)
range += IonosphereModelCorrection(iono_model, receive_time,
bands[0],
range += IonosphereModelCorrection(iono_model,
receive_time, bands[0],
rx_loc, sv_xvt);
return ps_range - range;
Expand Down
14 changes: 9 additions & 5 deletions core/lib/ORD/ord.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ double TroposphereCorrection(const gpstk::TropModel& trop_model,
/// E.g., if dual-band, there should be no additional ionosphere correction applied.
/// Users should construct an ORD based on their data and use case.
/// Parameters:
/// @params frequencies -- Signal frequencies (one or two, for single-band/dual-band).
/// @params bands -- Signal bands (one or two enums, for single-band/dual-band).
/// @params pseudoranges -- Pseudorange values, corresponding to frequency array (one or two).
/// @params trop_model -- Class that encapsulates ionospheric models.
/// @params rx_loc -- The location of the receiver.
Expand All @@ -177,15 +177,19 @@ double TroposphereCorrection(const gpstk::TropModel& trop_model,
/// @params iono_model -- Class that encapsulates ionospheric models.
/// @params trop_model -- Class that encapsulates troposphere models.
/// @params ephemeris -- The ephemeris to query against.
/// @params range_method -- One of four raw range methods, depending on what data is available.
/// @returns Observed range deviation from 1st pseudorange.
/*
double calculate_ord(const std::vector<double>& frequencies,
const std::vector<double>& pseudoranges, const gpstk::Position& rx_loc,
const gpstk::SatID& sat_id, const gpstk::CommonTime& transmit_time,
double calculate_ord(const std::vector<CarrierBand>& bands,
const std::vector<double>& pseudoranges,
const gpstk::Position& rx_loc,
const gpstk::SatID& sat_id,
const gpstk::CommonTime& transmit_time,
const gpstk::CommonTime& receive_time,
const gpstk::IonoModelStore& iono_model,
const gpstk::TropModel& trop_model,
const gpstk::XvtStore<gpstk::SatID>& ephemeris, int range_method);
const gpstk::XvtStore<gpstk::SatID>& ephemeris,
int range_method);
*/

} // namespace ord
Expand Down

0 comments on commit 7d3a6c9

Please sign in to comment.