Add more customization support to CANDataGrid. Used that new functionality in Flow View

to allow for bitfield triggers. Click a cell to trigger on it.
Now playback will stop if that cell changes state while playing back.
This commit is contained in:
Collin Kidder
2019-08-01 21:57:03 -04:00
parent fb1016c933
commit 1fdd67777c
4 changed files with 101 additions and 0 deletions
+2
View File
@@ -37,6 +37,7 @@ private slots:
void plottableDoubleClick(QCPAbstractPlottable* plottable, QMouseEvent* event);
void gotCenterTimeID(int32_t ID, double timestamp);
void updateTriggerValues();
void gotCellClick(int x, int y);
signals:
void sendCenterTimeID(int32_t ID, double timestamp);
@@ -49,6 +50,7 @@ private:
unsigned char refBytes[8];
unsigned char currBytes[8];
int triggerValues[8];
uint64_t triggerBits;
int currentPosition;
QTimer *playbackTimer;
bool playbackActive;