siderust-cpp 0.8.0
Header-only C++ wrapper for siderust
Loading...
Searching...
No Matches
sgp4.hpp File Reference

TLE parsing and SGP4 propagator C++ wrappers. More...

#include "ffi_core.hpp"
#include <cstdint>
#include <ostream>
#include <string_view>
#include <utility>
Include dependency graph for sgp4.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  siderust::tle::Tle
 Move-only RAII wrapper around a parsed Two-Line Element set. More...
 

Namespaces

namespace  siderust
 
namespace  siderust::tle
 
namespace  siderust::sgp4
 

Detailed Description

TLE parsing and SGP4 propagator C++ wrappers.

RAII wrappers around the siderust_tle_* and siderust_sgp4_* FFI functions.

Typical usage

auto tle = siderust::tle::Tle::parse(line1, line2);
auto prop = siderust::sgp4::Propagator(tle);
double epoch_jd = prop.epoch_jd_utc();
auto state = prop.propagate_at(epoch_jd + 360.0 / 1440.0);
// state.pos_km[3] — TEME position, km
// state.vel_kms[3] — TEME velocity, km/s
static Tle parse(std::string_view line1, std::string_view line2)
Definition sgp4.hpp:52
TLE parsing and SGP4 propagator C++ wrappers.

Definition in file sgp4.hpp.