first commnit
This commit is contained in:
81
othersoft/shuttercali/source_rlx/sensor/SensorOptoSky.h
Normal file
81
othersoft/shuttercali/source_rlx/sensor/SensorOptoSky.h
Normal file
@ -0,0 +1,81 @@
|
||||
#pragma once
|
||||
#pragma execution_character_set("utf-8")
|
||||
/******************************************************
|
||||
* <20>ļ<EFBFBD><C4BC><EFBFBD> : SensorOptoSky.h
|
||||
* <20><><EFBFBD><EFBFBD> :
|
||||
* <20><><EFBFBD><EFBFBD> :
|
||||
* <20><><EFBFBD><EFBFBD> : xin
|
||||
* <20><><EFBFBD><EFBFBD> : renlixin@iris-rs.cn
|
||||
* <20><><EFBFBD><EFBFBD> : 2021-2-22
|
||||
********************************************************
|
||||
* *
|
||||
* _ooOoo_ *
|
||||
* o8888888o *
|
||||
* 88" . "88 *
|
||||
* (| -_- |) *
|
||||
* O\ = /O *
|
||||
* ____/`---'\____ *
|
||||
* .' \\| |// `. *
|
||||
* / \\||| : |||// \ *
|
||||
* / _||||| -:- |||||- \ *
|
||||
* | | \\\ - /// | | *
|
||||
* | \_| ''\---/'' | | *
|
||||
* \ .-\__ `-` ___/-. / *
|
||||
* ___`. .' /--.--\ `. . __ *
|
||||
* ."" '< `.___\_<|>_/___.' >'"". *
|
||||
* | | : `- \`.;`\ _ /`;.`/ - ` : | | *
|
||||
* \ \ `-. \_ __\ /__ _/ .-` / / *
|
||||
* ======`-.____`-.___\_____/___.-`____.-'====== *
|
||||
* `=---=' *
|
||||
* ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ *
|
||||
* <20><><EFBFBD>汣<EFBFBD><E6B1A3> <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> *
|
||||
* *
|
||||
********************************************************/
|
||||
|
||||
|
||||
|
||||
#include <SensorBase.h>
|
||||
enum OPTOSENSORTYPE
|
||||
{
|
||||
ATP6500 = 1
|
||||
};
|
||||
class SensorOptoSky : public SensorBase
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
SensorOptoSky(OPTOSENSORTYPE type, QString comname);
|
||||
SensorOptoSky(OPTOSENSORTYPE type, QString comname, qint32 bandrate);
|
||||
bool initSensor(int id = 0);
|
||||
void Settingshuttertime(float msc) ;
|
||||
//************************************
|
||||
// Method: SettingTemprature <20><><EFBFBD><EFBFBD><EFBFBD>¶<EFBFBD>
|
||||
// FullName: SensorBase::SettingTemprature
|
||||
// Access: virtual public
|
||||
// Returns: void
|
||||
// Qualifier:
|
||||
// Parameter: float temp
|
||||
//************************************
|
||||
void SettingTemprature(float temp);
|
||||
float GettingTempratrue() ;
|
||||
STRSensorInfo GetSensorInfo();
|
||||
void SettingShutterOpen(bool isopen);
|
||||
void SettingSwitchShutter(bool isright);
|
||||
void GetOnePlot(STROnePlot &OnePlot, bool Dark=false) ;
|
||||
void CloseSensor() ;
|
||||
|
||||
void GetOneDark(STROnePlot &darkplot);
|
||||
|
||||
|
||||
|
||||
OPTOSENSORTYPE sensortype;
|
||||
QString COMname;
|
||||
qint32 BandRate;
|
||||
~SensorOptoSky();
|
||||
private:
|
||||
void RemoveHeaderandEnd(QByteArray &buf);
|
||||
void getwavelenthlist( STRSensorInfo &se);
|
||||
QByteArray shutter;
|
||||
int shuttertime;
|
||||
|
||||
};
|
Reference in New Issue
Block a user