Skip to content

Commit

Permalink
Implement choice types
Browse files Browse the repository at this point in the history
  • Loading branch information
matzipan committed Jan 4, 2024
1 parent 5781346 commit c282988
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
12 changes: 12 additions & 0 deletions crates/lox_core/src/odm/omm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@ pub struct MeanElementsType {
pub comment_list: Vec<String>,
#[serde(rename = "EPOCH")]
pub epoch: common::EpochType,
#[serde(rename = "SEMI_MAJOR_AXIS")]
pub semi_major_axis: Option<common::DistanceType>,
#[serde(rename = "MEAN_MOTION")]
pub mean_motion: Option<common::RevType>,
#[serde(rename = "ECCENTRICITY")]
pub eccentricity: common::NonNegativeDouble,
#[serde(rename = "INCLINATION")]
Expand Down Expand Up @@ -137,8 +141,16 @@ pub struct TleParametersType {
pub element_set_no: Option<ElementSetNoType>,
#[serde(rename = "REV_AT_EPOCH")]
pub rev_at_epoch: Option<u64>,
#[serde(rename = "BSTAR")]
pub bstar: Option<common::BStarType>,
#[serde(rename = "BTERM")]
pub bterm: Option<common::BTermType>,
#[serde(rename = "MEAN_MOTION_DOT")]
pub mean_motion_dot: DRevType,
#[serde(rename = "MEAN_MOTION_DDOT")]
pub mean_motion_ddot: Option<common::DRevType>,
#[serde(rename = "AGOM")]
pub agom: Option<common::AgomType>,
}

#[derive(Clone, Debug, Default, PartialEq, serde::Deserialize, serde::Serialize)]
Expand Down
4 changes: 4 additions & 0 deletions crates/lox_core/src/odm/opm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,10 @@ pub struct KeplerianElementsType {
pub ra_of_asc_node: common::AngleType,
#[serde(rename = "ARG_OF_PERICENTER")]
pub arg_of_pericenter: common::AngleType,
#[serde(rename = "TRUE_ANOMALY")]
pub true_anomaly: Option<common::AngleType>,
#[serde(rename = "MEAN_ANOMALY")]
pub mean_anomaly: Option<common::AngleType>,
#[serde(rename = "GM")]
pub gm: common::GmType,
}
Expand Down

0 comments on commit c282988

Please sign in to comment.