pub use self::satrec::SatRec;
use crate::Instant;
#[derive(PartialEq, PartialOrd, Clone, Debug, Eq, Copy)]
pub enum GravConst {
WGS72,
WGS72OLD,
WGS84,
}
#[derive(PartialEq, PartialOrd, Clone, Debug, Eq, Copy)]
pub enum OpsMode {
AFSPC,
IMPROVED,
}
mod dpper;
mod dscom;
mod dsinit;
mod dspace;
mod getgravconst;
mod initl;
pub mod satrec;
mod sgp4_impl;
mod sgp4_lowlevel;
mod sgp4init;
pub use sgp4_impl::sgp4;
pub use sgp4_impl::sgp4_full;
pub use sgp4_impl::SGP4Error;
pub use sgp4_impl::SGP4State;
#[derive(Debug, Clone, Copy, PartialEq)]
pub struct SGP4InitArgs {
pub jdsatepoch: f64,
pub bstar: f64,
pub ndot: f64,
pub nddot: f64,
pub ecco: f64,
pub argpo: f64,
pub inclo: f64,
pub mo: f64,
pub no: f64,
pub nodeo: f64,
}
pub trait SGP4Source {
fn epoch(&self) -> Instant;
fn satrec_mut(&mut self) -> &mut Option<SatRec>;
fn sgp4_init_args(&self) -> anyhow::Result<SGP4InitArgs>;
}