Skip to content

Commit

Permalink
feat: add TLE.construct static method (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennevincent authored Nov 9, 2022
1 parent 5a33a87 commit ed9375b
Show file tree
Hide file tree
Showing 7 changed files with 1,625 additions and 226 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,19 @@

////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

inline void OpenSpaceToolkitAstrodynamicsPy_Trajectory_Orbit_Models_SGP4_TLE ( pybind11::module& aModule )
inline void OpenSpaceToolkitAstrodynamicsPy_Trajectory_Orbit_Models_SGP4_TLE ( pybind11::module& aModule )
{

using namespace pybind11 ;

using ostk::core::types::Integer ;
using ostk::core::types::Real ;
using ostk::core::types::String ;

using ostk::physics::units::Angle ;
using ostk::physics::units::Derived ;
using ostk::physics::time::Instant ;

using ostk::astro::trajectory::orbit::models::sgp4::TLE ;

class_<TLE>(aModule, "TLE")
Expand Down Expand Up @@ -112,6 +118,88 @@ inline void OpenSpaceToolkitAstrodynamicsPy_Trajectory_Orbit
arg("file")
)

.def_static
(
"construct",
overload_cast
<
const String&,
const Integer&,
const String&,
const String&,
const Instant&,
const Real&,
const Real&,
const Real&,
const Integer&,
const Integer&,
const Angle&,
const Angle&,
const Real&,
const Angle&,
const Angle&,
const Derived&,
const Integer&
>(&TLE::Construct),
arg("satellite_name"),
arg("satellite_number"),
arg("classification"),
arg("international_designator"),
arg("epoch"),
arg("mean_motion_first_time_derivative_divided_by_two"),
arg("mean_motion_second_time_derivative_divided_by_six"),
arg("b_star_drag_term"),
arg("ephemeris_type"),
arg("element_set_number"),
arg("inclination"),
arg("raan"),
arg("eccentricity"),
arg("aop"),
arg("mean_anomaly"),
arg("mean_motion"),
arg("revolution_number_at_epoch")
)

.def_static
(
"construct",
overload_cast
<
const Integer&,
const String&,
const String&,
const Instant&,
const Real&,
const Real&,
const Real&,
const Integer&,
const Integer&,
const Angle&,
const Angle&,
const Real&,
const Angle&,
const Angle&,
const Derived&,
const Integer&
>(&TLE::Construct),
arg("satellite_number"),
arg("classification"),
arg("international_designator"),
arg("epoch"),
arg("mean_motion_first_time_derivative_divided_by_two"),
arg("mean_motion_second_time_derivative_divided_by_six"),
arg("b_star_drag_term"),
arg("ephemeris_type"),
arg("element_set_number"),
arg("inclination"),
arg("raan"),
arg("eccentricity"),
arg("aop"),
arg("mean_anomaly"),
arg("mean_motion"),
arg("revolution_number_at_epoch")
)

.def_static
(
"generate_checksum",
Expand Down
Loading

0 comments on commit ed9375b

Please sign in to comment.