Icarus
Vehicle Simulation as a Transformable Computational Graph, built on Vulcan and Janus
Loading...
Searching...
No Matches
icarus::EpochConfig Struct Reference

Time epoch configuration for absolute time support. More...

#include <SimulatorConfig.hpp>

Public Member Functions

bool IsConfigured () const
 Check if epoch is configured (non-MET-only mode).

Static Public Member Functions

static EpochConfig Default ()
 Create default MET-only config.

Public Attributes

std::string system = "MET"
 Time system: "MET" (default), "UTC", "TAI", "GPS".
std::string reference
double jd = 0.0
 Julian Date (for TAI/TT systems when reference is empty).
int gps_week = 0
 GPS week number (for GPS system).
double gps_seconds = 0.0
 GPS seconds of week (for GPS system).
bool gps_configured = false

Detailed Description

Time epoch configuration for absolute time support.

Configures the simulation's reference epoch for time-varying models. When configured, Vulcan's Epoch class provides conversions between time scales (UTC, TAI, TT, GPS) and calendar representations.

If not configured (empty reference), the simulation runs in MET-only mode with an arbitrary J2000.0 reference epoch.

Member Function Documentation

◆ Default()

EpochConfig icarus::EpochConfig::Default ( )
inlinestaticnodiscard

Create default MET-only config.

◆ IsConfigured()

bool icarus::EpochConfig::IsConfigured ( ) const
inlinenodiscard

Check if epoch is configured (non-MET-only mode).

Member Data Documentation

◆ gps_configured

bool icarus::EpochConfig::gps_configured = false

GPS configured flag (set when GPS fields are explicitly provided) Required because gps_week=0 is a valid GPS week (Jan 6, 1980)

◆ gps_seconds

double icarus::EpochConfig::gps_seconds = 0.0

GPS seconds of week (for GPS system).

◆ gps_week

int icarus::EpochConfig::gps_week = 0

GPS week number (for GPS system).

◆ jd

double icarus::EpochConfig::jd = 0.0

Julian Date (for TAI/TT systems when reference is empty).

◆ reference

std::string icarus::EpochConfig::reference

Reference time as ISO 8601 string (for UTC system) Example: "2024-12-22T10:30:00Z"

◆ system

std::string icarus::EpochConfig::system = "MET"

Time system: "MET" (default), "UTC", "TAI", "GPS".


The documentation for this struct was generated from the following file: