From fdf76336c586d8bfc5fc15d0e285e9c0b1be619b Mon Sep 17 00:00:00 2001 From: fenrir Date: Thu, 28 Mar 2024 17:18:59 +0900 Subject: [PATCH] Fix QZSS fit_interval=(flag) setter in SWIG wrapper --- tool/swig/GPS.i | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tool/swig/GPS.i b/tool/swig/GPS.i index 505bb6e21..d8eb18bb9 100644 --- a/tool/swig/GPS.i +++ b/tool/swig/GPS.i @@ -373,8 +373,12 @@ struct GPS_Ephemeris : public GPS_SpaceNode::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::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::max)() : (2 * 60 * 60))); + }else{ + return (this->fit_interval = GPS_Ephemeris::raw_t::fit_interval(flag, this->iodc)); + } } }; %}