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 Oct 24, 2024
1 parent 506eba0 commit dd4af7f
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 dd4af7f

Please sign in to comment.