pub struct ClockConfig {
pub startup_jump_warning_threshold: JumpThreshold,
pub startup_jump_abort_threshold: JumpThreshold,
pub single_jump_warning_threshold: JumpThreshold,
pub single_jump_abort_threshold: JumpThreshold,
pub accumulated_jump_warning_threshold: Option<Duration>,
pub accumulated_jump_abort_threshold: Option<Duration>,
pub startup_end_threshold: Duration,
pub jump_threshold: Duration,
pub jump_certainty_threshold: f64,
pub slew_time_constant: Duration,
pub synchronized_threshold: Duration,
pub initial_wander: f64,
}Expand description
Configuration for an internal, steered clock
Fields§
§startup_jump_warning_threshold: JumpThresholdThreshold for a step at startup to trigger a warning.
startup_jump_abort_threshold: JumpThresholdThreshold for a step at startup to trigger an abort.
single_jump_warning_threshold: JumpThresholdThreshold for a single step during normal operation to trigger a warning.
single_jump_abort_threshold: JumpThresholdThreshold for a single step during normal operation to trigger an abort.
accumulated_jump_warning_threshold: Option<Duration>Threshold for accumulated steps to trigger a warning.
accumulated_jump_abort_threshold: Option<Duration>Threshold for accumulated steps to trigger an abort.
startup_end_threshold: DurationThreshold on offset uncertainty after which a clock is considered out of startup
jump_threshold: DurationHow large does the offset need to be before we do a jump?
jump_certainty_threshold: f64How large does a jump need to be to happen, relative to the uncertainty of currently observed offset.
slew_time_constant: DurationAmount of time to spread slewing over. This gives a typical time scale to reduce the offset error by about two thirds using slews.
synchronized_threshold: DurationOffset and offset uncertainty below which we consider the clock synchronized.
initial_wander: f64Initial estimate of the wander of the clock, as fractions of a second per second.