2010-04-05 22:06:50 +03:00
|
|
|
#ifndef MAINWINDOW_H
|
|
|
|
#define MAINWINDOW_H
|
|
|
|
|
|
|
|
#include <QtGui/QMainWindow>
|
|
|
|
#include "ADCw.h"
|
|
|
|
|
2010-05-04 02:17:44 +03:00
|
|
|
#define PI 3.14159265
|
|
|
|
|
2010-04-05 22:06:50 +03:00
|
|
|
namespace Ui
|
|
|
|
{
|
|
|
|
class MainWindow;
|
|
|
|
}
|
|
|
|
|
|
|
|
class MainWindow : public QMainWindow
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
MainWindow(QWidget *parent = 0);
|
|
|
|
~MainWindow();
|
|
|
|
|
2010-05-04 02:17:44 +03:00
|
|
|
bool getSign(int val){if(val<0) return 0; else return 1;}
|
|
|
|
|
2010-04-05 22:06:50 +03:00
|
|
|
public slots:
|
|
|
|
void updateGraph();
|
|
|
|
|
|
|
|
signals:
|
|
|
|
void refresh();
|
|
|
|
|
|
|
|
private:
|
|
|
|
Ui::MainWindow *ui;
|
|
|
|
QTimer *timer1;
|
|
|
|
ADCw *ADC1;
|
2010-04-09 18:39:15 +03:00
|
|
|
bool CHANNEL;
|
2010-05-04 02:17:44 +03:00
|
|
|
|
|
|
|
bool sign1_CH1, sign2_CH1; ;
|
|
|
|
bool sign1_CH2, sign2_CH2;
|
|
|
|
int deltaCountCH1, deltaCountCH2;
|
|
|
|
int idxCH1, idxCH2;
|
|
|
|
double valCH1[200], valCH2[200];
|
2010-04-05 22:06:50 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // MAINWINDOW_H
|