STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
BoardClockSync.cpp File Reference
#include "time/BoardClockSync.hpp"
#include <algorithm>
#include <cmath>
Include dependency graph for BoardClockSync.cpp:

Go to the source code of this file.

Namespaces

namespace  fsw
 Motorized ball valve position: raw ADC counts -> % open.
namespace  fsw::time
namespace  fsw::time::anonymous_namespace{BoardClockSync.cpp}

Functions

uint32_t fsw::time::anonymous_namespace{BoardClockSync.cpp}::forward_step_ms (uint32_t a, uint32_t b)
 Modular uint32 forward step (wrap-safe): how far b advanced past a.
int64_t fsw::time::anonymous_namespace{BoardClockSync.cpp}::board_ns (uint64_t unwrapped_ms)
 Board timeline position in ns.

Variables

constexpr int64_t fsw::time::anonymous_namespace{BoardClockSync.cpp}::NS_PER_MS = 1000000LL
constexpr double fsw::time::anonymous_namespace{BoardClockSync.cpp}::JITTER_EMA_ALPHA = 0.1