STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
anonymous_namespace{test_capture_window.cpp} Namespace Reference

Classes

struct  Lcg
 Deterministic noise, same shape as test_board_clock_sync.cpp's Lcg. More...

Functions

uint64_t feed (CaptureWindow &w, uint64_t t_ms, size_t count, uint64_t period_ms, int32_t value, Lcg *noise=nullptr, int32_t amplitude=0)
 Feed count samples at period_ms, returning the time just after the last one.
uint64_t now_ns (uint64_t t_ms)
void low_rate_step_after_settle ()
void window_bound_high_rate ()
void stale_sensor_rejected ()
void empty_and_too_few ()
void clear_on_reconnect ()
void settle_detection ()
void ring_bounds ()
void slow_load_cell_captures ()
void fast_sensor_bounds_unchanged ()
void uids_reports_live_sensors ()

Variables

constexpr uint64_t NS_MS = 1000000ULL
constexpr uint64_t EPOCH = 1800000000000000000ULL
constexpr uint16_t UID = 4101
constexpr uint64_t LC_PERIOD_MS = 73
 The measured load-cell cadence: 13.7 Hz is one sample every ~73 ms.
constexpr uint64_t PT_PERIOD_MS = 4
 A fast transducer, for contrast.

Function Documentation

◆ clear_on_reconnect()

void anonymous_namespace{test_capture_window.cpp}::clear_on_reconnect ( )

◆ empty_and_too_few()

void anonymous_namespace{test_capture_window.cpp}::empty_and_too_few ( )

◆ fast_sensor_bounds_unchanged()

void anonymous_namespace{test_capture_window.cpp}::fast_sensor_bounds_unchanged ( )

◆ feed()

uint64_t anonymous_namespace{test_capture_window.cpp}::feed ( CaptureWindow & w,
uint64_t t_ms,
size_t count,
uint64_t period_ms,
int32_t value,
Lcg * noise = nullptr,
int32_t amplitude = 0 )

◆ low_rate_step_after_settle()

◆ now_ns()

uint64_t anonymous_namespace{test_capture_window.cpp}::now_ns ( uint64_t t_ms)

◆ ring_bounds()

void anonymous_namespace{test_capture_window.cpp}::ring_bounds ( )

◆ settle_detection()

void anonymous_namespace{test_capture_window.cpp}::settle_detection ( )

◆ slow_load_cell_captures()

void anonymous_namespace{test_capture_window.cpp}::slow_load_cell_captures ( )

◆ stale_sensor_rejected()

void anonymous_namespace{test_capture_window.cpp}::stale_sensor_rejected ( )

Definition at line 153 of file test_capture_window.cpp.

References fsw::calibration::CaptureWindow::capture(), CHECK, feed(), LC_PERIOD_MS, now_ns(), r, and UID.

Referenced by main().

◆ uids_reports_live_sensors()

void anonymous_namespace{test_capture_window.cpp}::uids_reports_live_sensors ( )

◆ window_bound_high_rate()

void anonymous_namespace{test_capture_window.cpp}::window_bound_high_rate ( )

Variable Documentation

◆ EPOCH

uint64_t anonymous_namespace{test_capture_window.cpp}::EPOCH = 1800000000000000000ULL
constexpr

◆ LC_PERIOD_MS

uint64_t anonymous_namespace{test_capture_window.cpp}::LC_PERIOD_MS = 73
constexpr

The measured load-cell cadence: 13.7 Hz is one sample every ~73 ms.

Definition at line 47 of file test_capture_window.cpp.

Referenced by clear_on_reconnect(), empty_and_too_few(), low_rate_step_after_settle(), settle_detection(), and stale_sensor_rejected().

◆ NS_MS

uint64_t anonymous_namespace{test_capture_window.cpp}::NS_MS = 1000000ULL
constexpr

Definition at line 42 of file test_capture_window.cpp.

Referenced by feed(), low_rate_step_after_settle(), now_ns(), and ring_bounds().

◆ PT_PERIOD_MS

uint64_t anonymous_namespace{test_capture_window.cpp}::PT_PERIOD_MS = 4
constexpr

A fast transducer, for contrast.

Definition at line 49 of file test_capture_window.cpp.

Referenced by ring_bounds(), and window_bound_high_rate().

◆ UID