Implemented and fixed many issues
This commit is contained in:
+11
-2
@@ -61,6 +61,11 @@ struct TriggerState {
|
||||
bool stopped = false;
|
||||
bool hasTrigTime = false;
|
||||
double trigTime = 0.0;
|
||||
/* Window the hub latched at fire time. Not the same as windowSec/prePercent
|
||||
* above, which are editable and may have moved on since the trigger fired. */
|
||||
bool hasFiredWin = false;
|
||||
double firedPreS = 0.0;
|
||||
double firedPostS = 0.0;
|
||||
};
|
||||
|
||||
/** Per-signal vertical scale state (oscilloscope style). */
|
||||
@@ -183,9 +188,12 @@ public:
|
||||
plotXMax_[i] = tMax;
|
||||
}
|
||||
|
||||
/** @brief Per-plot vertical normalisation: 0=normal 1=digital 2=mixed. */
|
||||
/** @brief Per-plot vertical normalisation: 0=normal 1=digital 2=mixed 3=unified. */
|
||||
int& plotVMode(int i) { return plotVMode_[i]; }
|
||||
|
||||
/** @brief The one scale every trace shares in unified mode (vMode 3). */
|
||||
VScale& plotUnifiedVS(int i) { return plotUniVS_[i]; }
|
||||
|
||||
/* ---- Cursors A/B (global: shared & synchronised across all plots) ---- */
|
||||
bool& cursorsOn() { return cursorsOn_; }
|
||||
double& cursorA() { return cursorA_; }
|
||||
@@ -302,7 +310,8 @@ private:
|
||||
double windowSec_ = 10.0; /* live scroll window width */
|
||||
double plotXMin_[kMaxPlotSlots] = {}; /* stored X min for non-live mode */
|
||||
double plotXMax_[kMaxPlotSlots] = {}; /* stored X max for non-live mode */
|
||||
int plotVMode_[kMaxPlotSlots] = {}; /* 0=normal 1=digital 2=mixed */
|
||||
int plotVMode_[kMaxPlotSlots] = {}; /* 0=normal 1=digital 2=mixed 3=unified */
|
||||
VScale plotUniVS_[kMaxPlotSlots]; /* shared scale used by vMode 3 */
|
||||
|
||||
/* Cursors (global) */
|
||||
bool cursorsOn_ = false;
|
||||
|
||||
Reference in New Issue
Block a user