Class ClockState2

Inheritance Relationships

Base Type

Class Documentation

class ClockState2 : public lupnt::State

Public Functions

inline ClockState2()

Construct a zero-initialized 2-state clock state (bias, drift), in frame MOON_CI. Used e.g. as Transmission::clk_tx, the transmitter clock-bias/drift state carried by a measurement.

inline ClockState2(int rows, int cols)

Construct a zero-initialized 2-state clock state of the given shape; cols must be 1 (see State(int, int)).

inline ClockState2(const State &x)

Reinterpret a generic State as a ClockState2, checking its size.

Parameters:

x – 2-element state [b, d].

inline ClockState2 &operator=(const State &x)

Assign from a generic State, checking its size and copying the first 2 elements.

inline Real &b()

Mutable reference to the clock bias.

Returns:

Clock bias [s].

inline Real &d()

Mutable reference to the clock drift.

Returns:

Clock drift [s/s].

inline Real b() const

Clock bias.

Returns:

Clock bias [s].

inline Real d() const

Clock drift.

Returns:

Clock drift [s/s].