init
This commit is contained in:
70
device/ui/serialdevicetest.h
Normal file
70
device/ui/serialdevicetest.h
Normal file
@@ -0,0 +1,70 @@
|
||||
#ifndef SERIALDEVICETEST_H
|
||||
#define SERIALDEVICETEST_H
|
||||
|
||||
|
||||
#include <QFrame>
|
||||
#include <QTextCursor>
|
||||
#include "ui_SerialDeveceTest.h"
|
||||
#include "base.h"
|
||||
#include "Barometer.h"
|
||||
#include "PanasonicHeightFind.h"
|
||||
#include "PowerAttenuator.h"
|
||||
#include "PowerMeter.h"
|
||||
#include "modbustcp.h"
|
||||
#include "lightsource.h"
|
||||
#include "IPG_laser.h"
|
||||
#include <QMessageBox>
|
||||
|
||||
class SerialDeviceTest:public QFrame
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
explicit SerialDeviceTest(QWidget* parent=nullptr);
|
||||
~SerialDeviceTest();
|
||||
void HeartBeat();
|
||||
void ReadApValue();
|
||||
void HeartBeat_fl();
|
||||
void PID_proc();
|
||||
void readPowerValue();
|
||||
|
||||
private:
|
||||
|
||||
|
||||
private slots:
|
||||
|
||||
void on_pbPowerRead_clicked();
|
||||
|
||||
void on_pbBarometer_clicked();
|
||||
|
||||
void on_pbCuHeightFind_clicked();
|
||||
|
||||
void on_pbXiaLiao_clicked();
|
||||
|
||||
void on_pbShangLiao_clicked();
|
||||
|
||||
void on_spBrightness_valueChanged(int arg1);
|
||||
|
||||
void on_cmbCameraID_currentIndexChanged(int index);
|
||||
|
||||
void on_pbBrightness_clicked();
|
||||
|
||||
void on_pbLightOff_clicked();
|
||||
|
||||
void on_spBrightness_editingFinished();
|
||||
|
||||
void on_pbStopRead_clicked();
|
||||
|
||||
void on_cmbPowerMeterID_currentTextChanged(const QString &arg1);
|
||||
|
||||
void updatePowerMeterValue(float value,float average_value);
|
||||
|
||||
private:
|
||||
Ui::SerialDeviceTest * ui;
|
||||
LIMIT_STATE limit_state[3];
|
||||
int enable_state;
|
||||
void showExceptionInfoDialog(const QString& text,QMessageBox::Icon value = QMessageBox::Critical);
|
||||
};
|
||||
|
||||
|
||||
#endif // SERIALDEVICETEST_H
|
||||
Reference in New Issue
Block a user