mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-10-19 19:49:42 +08:00
添加了位置定标程序 及位置移动相关程序源码
This commit is contained in:
50
othersoft/shuttercali/source_rlx/sensor/OptoSkyManager.h
Normal file
50
othersoft/shuttercali/source_rlx/sensor/OptoSkyManager.h
Normal file
@ -0,0 +1,50 @@
|
||||
#pragma once
|
||||
|
||||
#include <QObject>
|
||||
#include "QtEndian"
|
||||
#include "QTimer"
|
||||
#include "QTcpSocket"
|
||||
class OptoSkyManager : public QObject
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
OptoSkyManager(QObject *parent);
|
||||
~OptoSkyManager();
|
||||
void optall();
|
||||
void getdata();
|
||||
void readconnect();
|
||||
QString actionmod;
|
||||
QTimer *timer;
|
||||
int waittime;
|
||||
int temp1, temp2;
|
||||
void loadtcp();
|
||||
bool isreadtogotdata;
|
||||
bool readbutdonothing(int size);
|
||||
bool reloadtcp();
|
||||
float darkarry[2151];
|
||||
int flatwite;
|
||||
int flatdark;
|
||||
QString processstr;
|
||||
QString IP_Address;
|
||||
int SampleAverage;
|
||||
int WhiteReferenceAverage;
|
||||
int DarkCurrentAverage;
|
||||
|
||||
private:
|
||||
void ChangeArrEnding(float *data, int lenth);
|
||||
public slots:
|
||||
void conecet();
|
||||
void sendMessage();
|
||||
void onReciveData();
|
||||
void sendgotdata();
|
||||
void ComFromUI(QString commom);
|
||||
/* void gotdata();*/
|
||||
void ondisconnect();
|
||||
void ReadError(QAbstractSocket::SocketError);
|
||||
|
||||
|
||||
signals:
|
||||
void Senddatatoui(QString datatype, QByteArray data);
|
||||
void UpdataProcessBar(QString str, int val);
|
||||
};
|
Reference in New Issue
Block a user