1、调焦界面加入显示马达位置的功能;
2、添加配置文件的功能,写入自动调焦参数和轨道电机参数;
This commit is contained in:
48
HPPA/hppaConfigFile.h
Normal file
48
HPPA/hppaConfigFile.h
Normal file
@ -0,0 +1,48 @@
|
||||
//
|
||||
// Created by tangchao on 2023/3/25.
|
||||
//
|
||||
|
||||
#ifndef XIMEAIMAGERECORDER_CONFIGFILE_H
|
||||
#define XIMEAIMAGERECORDER_CONFIGFILE_H
|
||||
|
||||
#include <iostream>
|
||||
#include <iomanip>
|
||||
#include <cstdlib>
|
||||
#include <libconfig.h++>
|
||||
#include <string>
|
||||
|
||||
#include <QFileInfo>
|
||||
#include <QString>
|
||||
#include <QCoreApplication>
|
||||
#include <QDir>
|
||||
|
||||
using namespace std;
|
||||
using namespace libconfig;
|
||||
|
||||
class Configfile
|
||||
{
|
||||
|
||||
public:
|
||||
Configfile();
|
||||
void setConfigfilePath(string configfilePath);
|
||||
bool isConfigfileExist();
|
||||
bool parseConfigfile();
|
||||
|
||||
bool getSN(string& SN);
|
||||
|
||||
bool getPositionRestriction(int& max, int& min);
|
||||
bool getTuningStepSize(int& coarse, int& fine);
|
||||
bool getFitParams(float& fa, float& fb);
|
||||
bool getAutoFocusRange(int& max, int& min);
|
||||
|
||||
bool getXMotorParm(float& StepAnglemar, float& Lead, int& SubdivisionMultiples, float& ScaleFactor);
|
||||
bool getYMotorParm(float& StepAnglemar, float& Lead, int& SubdivisionMultiples, float& ScaleFactor);
|
||||
|
||||
bool createConfigFile();
|
||||
bool updateConfigFile();
|
||||
|
||||
private:
|
||||
string m_configfilePath;
|
||||
Config cfg;
|
||||
};
|
||||
#endif //XIMEAIMAGERECORDER_CONFIGFILE_H
|
||||
Reference in New Issue
Block a user