1、调焦界面加入显示马达位置的功能;

2、添加配置文件的功能,写入自动调焦参数和轨道电机参数;
This commit is contained in:
tangchao0503
2023-03-25 23:41:30 +08:00
parent ea4c0d82d2
commit 83da2516fb
15 changed files with 693 additions and 98 deletions

48
HPPA/hppaConfigFile.h Normal file
View 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