|
Motion Master 6.0.0-alpha.50
Next-generation motion control software
|
"recorder" block — the lossless process-data recorder ring.
More...
#include <config.h>
Public Attributes | |
| uint32_t | capacity = 300000 |
| std::string | dumpDir |
"recorder" block — the lossless process-data recorder ring.
| uint32_t RecorderConfig::capacity = 300000 |
Depth of the recorder ring in cycles/rows (must be > 0). The ring is allocated at process-image configuration to hold exactly this many cycles, independent of the GameLoop period — records carry absolute timestamps, so the depth-in-seconds is simply capacity × period. RAM ≈ capacity × per-cycle record bytes. A record is 28 B fixed (20-byte header + 8-byte publication word) plus the whole-bus IOmap — ~82 B per SOMANET drive (budget ~100 B). So a single drive at 300000 cycles × ~128 B ≈ 38 MB (≈ 5 min at a 1 ms period). It scales with drive count.
| std::string RecorderConfig::dumpDir |
Directory for .mmpd recorder dumps written by POST /api/process-data/dump. Empty means a "motion-master" subdirectory of the OS temporary directory (resolved at dump time, cross-platform — never a hardcoded /tmp). The directory is created on first dump.