Skip to content

Commit

Permalink
Add SBAS URA_index interface to SWIG wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
fenrir-naru committed Mar 28, 2024
1 parent 7fbb9a9 commit a5fad7a
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion tool/swig/GPS.i
Original file line number Diff line number Diff line change
Expand Up @@ -589,11 +589,18 @@ struct SBAS_Ephemeris : public SBAS_SpaceNode<FloatT>::SatelliteProperties::Ephe
return SBAS_SpaceNode<FloatT>::SatelliteProperties::Ephemeris::is_valid(t);
}
GPS_Time<FloatT> t_applicable() const {return GPS_Time<FloatT>(this->WN, this->t_0);}
int get_URA_index() const {
return SBAS_Ephemeris<FloatT>::URA_index(this->URA);
}
int set_URA_index(const int &idx) {
this->URA = SBAS_Ephemeris<FloatT>::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);
Expand All @@ -602,6 +609,9 @@ struct SBAS_Ephemeris : public SBAS_SpaceNode<FloatT>::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.
Expand Down

0 comments on commit a5fad7a

Please sign in to comment.