Skip to content

Commit

Permalink
Fix QZSS fit_interval=(flag) setter in SWIG wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
fenrir-naru committed Mar 28, 2024
1 parent 1e47a59 commit 2cebc91
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tool/swig/GPS.i
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,12 @@ struct GPS_Ephemeris : public GPS_SpaceNode<FloatT>::SatelliteProperties::Epheme
return get_URA_index();
}
FloatT set_fit_interval(const bool &flag) {
// set iodc before invocation of this function
return (this->fit_interval = GPS_Ephemeris<FloatT>::raw_t::fit_interval(flag, this->iodc));
// set svid/iodc before invocation of this function
if((this->svid >= 193) && (this->svid <= 202)){ // QZSS
return (this->fit_interval = (flag ? (std::numeric_limits<FloatT>::max)() : (2 * 60 * 60));
}else{
return (this->fit_interval = GPS_Ephemeris<FloatT>::raw_t::fit_interval(flag, this->iodc));
}
}
};
%}
Expand Down

0 comments on commit 2cebc91

Please sign in to comment.