添加了位置定标程序 及位置移动相关程序源码

This commit is contained in:
2022-01-12 14:30:11 +08:00
parent 5b44f94a64
commit f0ecbb8710
446 changed files with 34544 additions and 0 deletions

View 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;
};