Added a trigger ability to flowview. The playback will stop automatically if a trigger value is found. This allows for moving quickly through the data looking for a given value. Also change the hotkeys to R,T,Y because they aren't really needed for anything else on the form.

This commit is contained in:
Collin Kidder
2015-09-13 19:37:28 -04:00
parent 4177b8524b
commit e0db7e83fd
4 changed files with 582 additions and 64 deletions
+2
View File
@@ -36,6 +36,7 @@ private slots:
void saveFileGraph();
void plottableDoubleClick(QCPAbstractPlottable* plottable, QMouseEvent* event);
void gotCenterTimeID(int32_t ID, double timestamp);
void updateTriggerValues();
signals:
void sendCenterTimeID(int32_t ID, double timestamp);
@@ -47,6 +48,7 @@ private:
const QVector<CANFrame> *modelFrames;
unsigned char refBytes[8];
unsigned char currBytes[8];
int triggerValues[8];
int currentPosition;
QTimer *playbackTimer;
bool playbackActive;