MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / makeHistoryRing

Function makeHistoryRing

app/src/UI/Dashboard.cpp:80–84  ·  view source on GitHub ↗

* @brief Builds a scrolling-history ring for the visible window plus headroom, so a * saturated min/max source (two slots per decimation cell) still spans the full * axis instead of erasing at the left edge; the surplus samples sit off-screen. */

Source from the content-addressed store, hash-verified

78 * axis instead of erasing at the left edge; the surplus samples sit off-screen.
79 */
80static DSP::TimeRing makeHistoryRing(const double plotTimeRangeSec)
81{
82 const double window = plotTimeRangeSec * kTimeRingHeadroom;
83 return DSP::TimeRing(timeRingCapacity(window), window);
84}
85
86/**
87 * @brief Composite snapshot key: dataset uniqueIds repeat across sources, so the time-ring

Callers 2

configureLineSeriesMethod · 0.85

Calls 2

TimeRingClass · 0.85
timeRingCapacityFunction · 0.85

Tested by

no test coverage detected