1、解析gps数据; 2、帧率与旋转速度计算器:给定帧率、高度、FOV、传感器像元数,计算旋转速度; 3、修改采集逻辑:(1)采集gps(2)高光谱曝光:以10hz为下限,在保证曝光质量的前提下提高帧率;(3)fodis曝光;(4)以步骤2中的帧率为基础,结合高度FOV等信息计算旋转速度;(5)采集数据;
148 lines
3.6 KiB
C++
148 lines
3.6 KiB
C++
#pragma once
|
|
#include <QThread>
|
|
#include <QMessageBox>
|
|
#include <QPointer>
|
|
|
|
#include "ui_oneMotorControl.h"
|
|
|
|
#include "IrisMultiMotorController.h"
|
|
#include "fileOperation.h"
|
|
#include "CaptureCoordinator.h"
|
|
#include "MotorWindowBase.h"
|
|
#include "AppSettings.h"
|
|
|
|
#include "DepthValueLogger.h"
|
|
|
|
class OneMotorControl : public QDialog, public MotorWindowBase
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
OneMotorControl(QWidget* parent = nullptr);
|
|
~OneMotorControl();
|
|
|
|
void setImager(ImagerOperationBase* imager);
|
|
|
|
void run();
|
|
void stop();
|
|
|
|
void multiPosHyperAutoExposure();
|
|
|
|
void record_dark();
|
|
void record_white();
|
|
|
|
bool getMotorsConnectionStatus();
|
|
|
|
void connectMotor(bool isNotification);
|
|
|
|
public Q_SLOTS:
|
|
void onConnectMotor();
|
|
|
|
void display_x_loc(std::vector<double> loc);
|
|
void display_motors_connectivity(std::vector<int> connectivity);
|
|
void onxMove2Loc();
|
|
void zeroStart();
|
|
void onx_rangeMeasurement();
|
|
|
|
void onxMotorRight();
|
|
void onxMotorLeft();
|
|
void onxMotorStop();
|
|
|
|
void onSequenceComplete(int state);
|
|
void onSequenceComplete_gonggashan_autoexpose(int state);
|
|
|
|
signals:
|
|
void moveSignal(int, bool, double, int);
|
|
void move2LocSignal(int, double, double, int);
|
|
void move2LocSignal(const std::vector<double>, const std::vector<double>, int);
|
|
void stopSignal(int);
|
|
|
|
void rangeMeasurement(int, double, int);
|
|
void zeroStartSignal(int);
|
|
void testConnectivitySignal(int, int);
|
|
|
|
void start(OneMotionCapturePathLine);
|
|
void stopStepMotionSignal();
|
|
|
|
void sequenceComplete();
|
|
|
|
void broadcastLocationSignal(std::vector<double>);
|
|
|
|
void hyperAutoExposureDoneSignal_gonggashan(double exposureTime, double frameRate);
|
|
|
|
private:
|
|
Ui::OneMotorControl_UI ui;
|
|
|
|
QThread m_motorThread;
|
|
IrisMultiMotorController* m_multiAxisController = nullptr;
|
|
|
|
QPointer<OneMotionCaptureCoordinator> m_coordinator;
|
|
ImagerOperationBase* m_Imager;
|
|
|
|
DarkAndWhiteCaptureCoordinator* m_darkCaptureCoordinator = nullptr;
|
|
DarkAndWhiteCaptureCoordinator* m_whiteCaptureCoordinator = nullptr;
|
|
|
|
bool m_xMotorConnectionStatus = false;
|
|
|
|
QPointer<OneMotorMultiPosCoordinator> m_coordinator_gonggashan_autoexpose;
|
|
};
|
|
|
|
class OneMotorControl_LiftingPlatform : public QDialog, public MotorWindowBase
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
OneMotorControl_LiftingPlatform(QWidget* parent = nullptr);
|
|
~OneMotorControl_LiftingPlatform();
|
|
|
|
void run();
|
|
void stop();
|
|
|
|
bool getMotorsConnectionStatus();
|
|
|
|
void connectMotor(bool isNotification);
|
|
|
|
public Q_SLOTS:
|
|
void onConnectMotor();
|
|
|
|
void display_x_loc(std::vector<double> loc);
|
|
void display_motors_connectivity(std::vector<int> connectivity);
|
|
void onxMove2Loc();
|
|
void zeroStart();
|
|
void onx_rangeMeasurement();
|
|
|
|
void onxMotorRight();
|
|
void onxMotorLeft();
|
|
void onxMotorStop();
|
|
|
|
void onBack2Origin(double pos);
|
|
|
|
signals:
|
|
void moveSignal(int, bool, double, int);
|
|
void move2LocSignal(int, double, double, int);
|
|
void move2LocSignal(const std::vector<double>, const std::vector<double>, int);
|
|
void stopSignal(int);
|
|
|
|
void rangeMeasurement(int, double, int);
|
|
void zeroStartSignal(int);
|
|
void testConnectivitySignal(int, int);
|
|
|
|
void start(OneMotionCapturePathLine);
|
|
void stopStepMotionSignal();
|
|
|
|
void sequenceComplete(int status);
|
|
void back2OriginSignal_TimedDataCollection();
|
|
|
|
void broadcastLocationSignal(std::vector<double>);
|
|
|
|
private:
|
|
Ui::OneMotorControl_UI ui;
|
|
|
|
QThread m_motorThread;
|
|
IrisMultiMotorController* m_multiAxisController = nullptr;
|
|
|
|
QPointer<OneMotionCoordinator> m_coordinator;
|
|
|
|
bool m_xMotorConnectionStatus = false;
|
|
};
|