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

Go to the source code of this file.

Namespaces

namespace  fsw
 Motorized ball valve position: raw ADC counts -> % open.
namespace  fsw::calibration
 Output smoothing for calibrated PT pressure, per sensor uid (ESP32 and LabJack T7 alike).
namespace  fsw::calibration::anonymous_namespace{CaptureWindow.cpp}

Functions

uint64_t fsw::calibration::anonymous_namespace{CaptureWindow.cpp}::ms_between (uint64_t later_ns, uint64_t earlier_ns)
 Saturating difference — clocks are unsigned and callers may pass a now that predates a sample (a reordered packet, or a test driving times by hand).
double fsw::calibration::anonymous_namespace{CaptureWindow.cpp}::mean_of (const std::vector< double > &v, size_t from, size_t to)

Variables

constexpr uint64_t fsw::calibration::anonymous_namespace{CaptureWindow.cpp}::NS_PER_MS = 1000000ULL