Graph Window - fix graph stride, actually works now, added follow mode
Follow mode allows you to set a window size and then have the window follow as data comes in. This is handy in order to see a realtime graph of the last "N" seconds of data coming from the CAN bus.
This commit is contained in:
@@ -22,6 +22,7 @@ public:
|
||||
float bias;
|
||||
float scale;
|
||||
int stride;
|
||||
int strideSoFar;
|
||||
QColor color;
|
||||
QCPGraph *ref;
|
||||
QString graphName;
|
||||
@@ -56,6 +57,7 @@ private slots:
|
||||
void saveSpreadsheet();
|
||||
void saveDefinitions();
|
||||
void loadDefinitions();
|
||||
void toggleFollowMode();
|
||||
void addNewGraph();
|
||||
void createGraph(GraphParams ¶ms, bool createGraphParam = true);
|
||||
void appendToGraph(GraphParams ¶ms, CANFrame &frame);
|
||||
@@ -79,6 +81,7 @@ private:
|
||||
QCPSelectionDecorator *selDecorator;
|
||||
bool needScaleSetup; //do we need to set x,y graphing extents?
|
||||
bool secondsMode;
|
||||
bool followGraphEnd;
|
||||
|
||||
void showParamsDialog(int idx);
|
||||
void closeEvent(QCloseEvent *event);
|
||||
|
||||
Reference in New Issue
Block a user