From a5fad7aafd5f9a8552db9cc40075e78d32b70ee2 Mon Sep 17 00:00:00 2001 From: fenrir Date: Thu, 28 Mar 2024 17:53:12 +0900 Subject: [PATCH] Add SBAS URA_index interface to SWIG wrapper --- tool/swig/GPS.i | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tool/swig/GPS.i b/tool/swig/GPS.i index dddb2657c..367ea0fdc 100644 --- a/tool/swig/GPS.i +++ b/tool/swig/GPS.i @@ -589,11 +589,18 @@ struct SBAS_Ephemeris : public SBAS_SpaceNode::SatelliteProperties::Ephe return SBAS_SpaceNode::SatelliteProperties::Ephemeris::is_valid(t); } GPS_Time t_applicable() const {return GPS_Time(this->WN, this->t_0);} + int get_URA_index() const { + return SBAS_Ephemeris::URA_index(this->URA); + } + int set_URA_index(const int &idx) { + this->URA = SBAS_Ephemeris::URA_meter(idx); + return get_URA_index(); + } }; %} %extend SBAS_Ephemeris { MAKE_ACCESSOR(svid, unsigned int); - + MAKE_ACCESSOR(WN, unsigned int); MAKE_ACCESSOR(t_0, FloatT); MAKE_ACCESSOR(URA, FloatT); @@ -602,6 +609,9 @@ struct SBAS_Ephemeris : public SBAS_SpaceNode::SatelliteProperties::Ephe MAKE_ACCESSOR(ddx, FloatT); MAKE_ACCESSOR(ddy, FloatT); MAKE_ACCESSOR(ddz, FloatT); MAKE_ACCESSOR(a_Gf0, FloatT); MAKE_ACCESSOR(a_Gf1, FloatT); + %rename(%str(URA_index=)) set_URA_index; + %rename(%str(URA_index)) get_URA_index; + /** * Return broadcasted raw data of SBAS ephemeris * @param buf_brdc pointer to store raw data of Type 9 message.