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:
Collin Kidder
2017-08-23 21:05:39 -04:00
parent 162d79fbe9
commit 7550d04705
2 changed files with 49 additions and 12 deletions
+3
View File
@@ -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 &params, bool createGraphParam = true);
void appendToGraph(GraphParams &params, 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);