1、【相机----马达】双向意外断掉容错 + 提示:(1)ximea、pica l、pica nir(2)1轴/2轴马达,usb串口/wifi的马达通讯方式; 2、提示弹窗美化;
76 lines
1.8 KiB
C++
76 lines
1.8 KiB
C++
#pragma once
|
|
#include <QThread>
|
|
#include <QMessageBox>
|
|
|
|
#include "ui_oneMotorControl.h"
|
|
|
|
#include "IrisMultiMotorController.h"
|
|
#include "fileOperation.h"
|
|
#include "CaptureCoordinator.h"
|
|
#include "MotorWindowBase.h"
|
|
|
|
class OneMotorControl : public QDialog, public MotorWindowBase
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
OneMotorControl(QWidget* parent = nullptr);
|
|
~OneMotorControl();
|
|
|
|
void setImager(ImagerOperationBase* imager);
|
|
|
|
void run();
|
|
void stop();
|
|
|
|
void record_dark();
|
|
void record_white();
|
|
|
|
bool getMotorsConnectionStatus();
|
|
|
|
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);
|
|
|
|
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>);
|
|
|
|
private:
|
|
Ui::OneMotorControl_UI ui;
|
|
|
|
QThread m_motorThread;
|
|
IrisMultiMotorController* m_multiAxisController = nullptr;
|
|
|
|
OneMotionCaptureCoordinator* m_coordinator = nullptr;
|
|
ImagerOperationBase* m_Imager;
|
|
|
|
DarkAndWhiteCaptureCoordinator* m_darkCaptureCoordinator = nullptr;
|
|
DarkAndWhiteCaptureCoordinator* m_whiteCaptureCoordinator = nullptr;
|
|
|
|
bool m_xMotorConnectionStatus = false;
|
|
};
|