|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
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. | |
| void anonymous_namespace{test_capture_window.cpp}::clear_on_reconnect | ( | ) |
Definition at line 178 of file test_capture_window.cpp.
References fsw::calibration::CaptureWindow::capture(), CHECK, fsw::calibration::CaptureWindow::clear(), feed(), LC_PERIOD_MS, now_ns(), ok, r, UID, and fsw::calibration::CaptureWindow::uids().
Referenced by main().
| void anonymous_namespace{test_capture_window.cpp}::empty_and_too_few | ( | ) |
Definition at line 165 of file test_capture_window.cpp.
References fsw::calibration::CaptureWindow::capture(), CHECK, feed(), LC_PERIOD_MS, now_ns(), fsw::calibration::CaptureResult::ok, fsw::calibration::CaptureResult::reason, and UID.
Referenced by main().
| void anonymous_namespace{test_capture_window.cpp}::fast_sensor_bounds_unchanged | ( | ) |
Definition at line 279 of file test_capture_window.cpp.
References fsw::calibration::CaptureWindow::capture(), CHECK, feed(), fsw::calibration::kCaptureWindowMs, fsw::calibration::kMaxSampleAgeMs, now_ns(), fsw::calibration::CaptureResult::ok, r, fsw::calibration::CaptureResult::reason, and UID.
Referenced by main().
| 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 ) |
Feed count samples at period_ms, returning the time just after the last one.
Definition at line 61 of file test_capture_window.cpp.
References count(), EPOCH, NS_MS, fsw::calibration::CaptureWindow::push(), and UID.
Referenced by clear_on_reconnect(), empty_and_too_few(), fast_sensor_bounds_unchanged(), low_rate_step_after_settle(), ring_bounds(), settle_detection(), slow_load_cell_captures(), stale_sensor_rejected(), and window_bound_high_rate().
| void anonymous_namespace{test_capture_window.cpp}::low_rate_step_after_settle | ( | ) |
Definition at line 80 of file test_capture_window.cpp.
References fsw::calibration::CaptureResult::adc_avg, fsw::calibration::CaptureWindow::capture(), CHECK, EPOCH, feed(), fsw::calibration::kCaptureWindowMs, LC_PERIOD_MS, anonymous_namespace{test_capture_window.cpp}::Lcg::next(), now_ns(), NS_MS, fsw::calibration::CaptureResult::ok, fsw::calibration::CaptureWindow::push(), r, and UID.
Referenced by main().
| uint64_t anonymous_namespace{test_capture_window.cpp}::now_ns | ( | uint64_t | t_ms | ) |
Definition at line 72 of file test_capture_window.cpp.
Referenced by clear_on_reconnect(), empty_and_too_few(), fast_sensor_bounds_unchanged(), low_rate_step_after_settle(), settle_detection(), slow_load_cell_captures(), stale_sensor_rejected(), and window_bound_high_rate().
| void anonymous_namespace{test_capture_window.cpp}::ring_bounds | ( | ) |
Definition at line 231 of file test_capture_window.cpp.
References CHECK, EPOCH, feed(), fsw::calibration::kMaxCaptureWindowMs, fsw::calibration::kRingMax, fsw::calibration::kRingSpanMs, NS_MS, PT_PERIOD_MS, fsw::calibration::CaptureWindow::size(), and UID.
Referenced by main().
| void anonymous_namespace{test_capture_window.cpp}::settle_detection | ( | ) |
Definition at line 191 of file test_capture_window.cpp.
References fsw::calibration::CaptureWindow::capture(), CHECK, feed(), fsw::calibration::kSettleZ, LC_PERIOD_MS, now_ns(), r, and UID.
Referenced by main().
| void anonymous_namespace{test_capture_window.cpp}::slow_load_cell_captures | ( | ) |
Definition at line 259 of file test_capture_window.cpp.
References fsw::calibration::CaptureWindow::capture(), CHECK, feed(), fsw::calibration::kMinCaptureSamples, now_ns(), fsw::calibration::CaptureResult::ok, r, fsw::calibration::CaptureResult::reason, and UID.
Referenced by main().
| 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().
| void anonymous_namespace{test_capture_window.cpp}::uids_reports_live_sensors | ( | ) |
Definition at line 293 of file test_capture_window.cpp.
References CHECK, fsw::calibration::CaptureWindow::clear(), EPOCH, fsw::calibration::CaptureWindow::push(), and fsw::calibration::CaptureWindow::uids().
Referenced by main().
| void anonymous_namespace{test_capture_window.cpp}::window_bound_high_rate | ( | ) |
Definition at line 136 of file test_capture_window.cpp.
References fsw::calibration::CaptureWindow::capture(), CHECK, feed(), fsw::calibration::kCaptureWindowMs, now_ns(), PT_PERIOD_MS, r, and UID.
Referenced by main().
|
constexpr |
Definition at line 43 of file test_capture_window.cpp.
Referenced by feed(), low_rate_step_after_settle(), now_ns(), ring_bounds(), and uids_reports_live_sensors().
|
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().
|
constexpr |
Definition at line 42 of file test_capture_window.cpp.
Referenced by feed(), low_rate_step_after_settle(), now_ns(), and ring_bounds().
|
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().
|
constexpr |
Definition at line 44 of file test_capture_window.cpp.
Referenced by clear_on_reconnect(), empty_and_too_few(), fast_sensor_bounds_unchanged(), feed(), low_rate_step_after_settle(), ring_bounds(), settle_detection(), slow_load_cell_captures(), stale_sensor_rejected(), and window_bound_high_rate().