You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
199 lines
5.6 KiB
199 lines
5.6 KiB
#ifndef __SETTINGS_CAMERA_DIALOG_HEADER__
|
|
#define __SETTINGS_CAMERA_DIALOG_HEADER__
|
|
#ifndef __linux__
|
|
#include <WinSock2.h>
|
|
#endif
|
|
|
|
#include "../guiClass.h"
|
|
#include "../../components/base/basicCamera.h"
|
|
#include "../controls/mapControl/QMapControl"
|
|
#include "../controls/mapControl/openaerialmapadapter.h"
|
|
#include "../controls/OGLCameraWidget.h"
|
|
|
|
//class mainWinow;
|
|
|
|
class DialogSettingsCamera : public QDialog {
|
|
private:
|
|
bool m_bRBlocker;
|
|
double m_dLatPosition;
|
|
double m_dLonPosition;
|
|
QWidget *m_pParent;
|
|
basicCamera *m_pDevice;
|
|
basicPosition m_tPosition;
|
|
bool m_bLocationByWGS84;
|
|
/* GUI */
|
|
|
|
bool m_bSettingsAreChanged;
|
|
OglCameraWidget *m_pCameraWidget;
|
|
QPushButton *m_pButtonCmdOk;
|
|
QPushButton *m_pButtonCmdCancel;
|
|
|
|
QGroupBox *m_pInfoGroupBox;
|
|
QGroupBox *m_pDetectionGroupBox;
|
|
QGroupBox *m_pHardwareGroupBox;
|
|
QGroupBox *m_pConPosGroupBox;
|
|
QGroupBox *m_pPositionGroupBox;
|
|
QGroupBox *m_pConmunicationGroupBox;
|
|
|
|
QFrame *m_pFlagsFrame;
|
|
QFrame *m_pVersionFrame;
|
|
|
|
QFrame *m_pDetectFrame;
|
|
|
|
QLabel *m_pInfoMaster; // SW_INFO_FLAG_MASTER
|
|
QLabel *m_pInfoNoBlackTargets; // SW_INFO_NO_BLACK_TARGETS
|
|
QLabel *m_pInfoEUmode; // SW_INFO_EU_PROJECT
|
|
QLabel *m_pInfoTGDmotors; // SW_INFO_TGD_MOTORS
|
|
QLabel *m_pInfoDebug; // SW_INFO_DEBUG_MODE
|
|
QLabel *m_pInfoNoTargetLog; // SW_INFO_NO_TARGET_LOG
|
|
QLabel *m_pInfoEnaHibernate; // SW_INFO_HIBERNATE_ENA
|
|
QLabel *m_pInfoEnaMotorCtrl; // SW_INFO_MOTOR_CTRL_ENA
|
|
QLabel *m_pInfoTGDVer2; // SW_INFO_TGD_VER_2
|
|
QLabel *m_pInfoThreadFlips; // SW_INFO_THREAD_FLIP
|
|
|
|
QVBoxLayout *m_pFlagsLA;
|
|
|
|
QLabel *m_pBuildDate;
|
|
QLabel *m_pBuildCode;
|
|
QLabel *m_pPRU0Code;
|
|
QLabel *m_pPRU1Code;
|
|
QLabel *m_pPRU2Code;
|
|
QLabel *m_pPRU3Code;
|
|
|
|
QVBoxLayout *m_pVersionLA;
|
|
QHBoxLayout *m_pPRU1LA;
|
|
QHBoxLayout *m_pPRU2LA;
|
|
|
|
QLabel *m_pFlipLabel;
|
|
QSpinBox *m_pFlipSpinBox;
|
|
QLabel *m_pSSTLabel;
|
|
QSpinBox *m_pSSTSpinBox;
|
|
QLabel *m_pOffsetLabel;
|
|
QSpinBox *m_pOffsetSpinBox;
|
|
QLabel *m_pOrderLabel;
|
|
QSpinBox *m_pOrderSpinBox;
|
|
QLabel *m_pWidthLabel;
|
|
QSpinBox *m_pWidthSpinBox;
|
|
QLabel *m_pGoodPointsLabel;
|
|
QSpinBox *m_pGoodPointsSpinBox;
|
|
QCheckBox *m_pSunBitFiltering;
|
|
|
|
QSpinBox *m_pQMotorFreqSpinBox;
|
|
QSpinBox *m_pBMotorFreqSpinBox;
|
|
|
|
QLabel *m_pMirrorShiftLabel;
|
|
QSpinBox *m_pMirrorShiftSpinBox;
|
|
|
|
QLabel *m_pBaseShiftLabel;
|
|
QSpinBox *m_pBaseShiftSpinBox;
|
|
|
|
QFrame *m_pHWGeneralFrame;
|
|
QToolButton *m_pLrfEnableToggle;
|
|
QToolButton *m_pMotorsEnableToggle;
|
|
|
|
QFrame *m_pHWMotorFrame;
|
|
QRadioButton *m_pNoMotorCtrl;
|
|
QRadioButton *m_pPwmMotorCtrl;
|
|
QRadioButton *m_pTgzMotorCtrl;
|
|
|
|
QFrame *m_pHWPwmFrame;
|
|
QFrame *m_pHWTgzFrame;
|
|
QFrame *m_pHWSeashoreFrame;
|
|
QFrame *m_pHWShiftFrame;
|
|
|
|
QLabel *m_pQMotorFreqLabel;
|
|
QLabel *m_pBMotorFreqLabel;
|
|
QPushButton *m_pButtonCmdApplyDetectionSettings;
|
|
QPushButton *m_pButtonCmdFullReset;
|
|
QPushButton *m_pButtonCmdOnOffMotors;
|
|
QPushButton *m_pButtonCmdApplyMotorSettings;
|
|
|
|
QLabel *m_pTGZ_CanBusID;
|
|
QSpinBox *m_pTGZ_CanBusIDSpinBox;
|
|
QLabel *m_pTGZ_CanHHID; // Host Id
|
|
QSpinBox *m_pTGZ_CanHHIDSpinBox;
|
|
QLabel *m_pTGZ_CanDDID; // Device Id
|
|
QSpinBox *m_pTGZ_CanDDIDSpinBox;
|
|
QLabel *m_pTGZ_ParamA;
|
|
QSpinBox *m_pTGZ_ParamASpinBox;
|
|
QLabel *m_pTGZ_ParamB;
|
|
QSpinBox *m_pTGZ_ParamBSpinBox;
|
|
QLabel *m_pTGZ_ParamC;
|
|
QSpinBox *m_pTGZ_ParamCSpinBox;
|
|
|
|
QCheckBox *m_pSeashoreCheckBox;
|
|
QLineEdit *m_pSeashoreIP4Address;
|
|
QLineEdit *m_pSeashoreIP4Port;
|
|
|
|
QRadioButton *m_pPosByWGS84;
|
|
QRadioButton *m_pPosByMeters;
|
|
QDoubleSpinBox *m_pLongitude;
|
|
QDoubleSpinBox *m_pLatitude;
|
|
QDoubleSpinBox *m_pAltitude;
|
|
QDoubleSpinBox *m_pYaw;
|
|
QDoubleSpinBox *m_pRoll;
|
|
QDoubleSpinBox *m_pPitch;
|
|
|
|
QLabel *m_pQ_ShiftLabel;
|
|
QSpinBox *m_pQ_ShiftSpinBox;
|
|
QLabel *m_pB_ShiftLabel;
|
|
QSpinBox *m_pB_ShiftSpinBox;
|
|
|
|
QDoubleSpinBox *m_pHeading;
|
|
QLabel *m_pLonLabel;
|
|
QLabel *m_pLatLabel;
|
|
QLabel *m_pAltLabel;
|
|
QLabel *m_pYawLabel;
|
|
QLabel *m_pRollLabel;
|
|
QLabel *m_pPitchLabel;
|
|
QPushButton *m_pButtonCmdSetToMainAnchore;
|
|
QPushButton *m_pButtonCmdSetPosition;
|
|
|
|
//QCheckBox *m_pConnectionCheckBox;
|
|
QPushButton *m_pButtonCmdSetConnection;
|
|
QLineEdit *m_pIP4Address;
|
|
QLineEdit *m_pIP4Port;
|
|
|
|
QPushButton *m_pButtonCmdRemoveDevice;
|
|
|
|
MapControl *m_pMapControl;
|
|
OSMMapAdapter *m_pMapAdapter;
|
|
MapLayer *m_pMapLayer;
|
|
public:
|
|
explicit DialogSettingsCamera( QWidget *parent = NULL);
|
|
~DialogSettingsCamera();
|
|
void updateValues();
|
|
void attachDevice(basicCamera *ptr);
|
|
private slots:
|
|
void onUpdateDevice(void);
|
|
void onFullReset(void);
|
|
void onRadioNoMotors(void);
|
|
void onRadioPwmMotors(void);
|
|
void onRadioTgzMotors(void);
|
|
void onEnableBeam(void);
|
|
void onEnableMotors(void);
|
|
void onBMotorControlClicked(void);
|
|
void onQMotorControlClicked(void);
|
|
void onUpdateQMotorDial(int value);
|
|
void onUpdateQMotorSpinBox(int value);
|
|
void onUpdateBMotorDial(int value);
|
|
void onUpdateBMotorSpinBox(int value);
|
|
void onMapChanged(const QPointF &coordinate, int zoom);
|
|
void onPositionWGS84(void);
|
|
void onPositionMeters(void);
|
|
void setPositionSystemAnchor(void);
|
|
void onPositionLonChange(double value);
|
|
void onPositionLatChange(double value);
|
|
void onPositionAltChange(double value);
|
|
void onOrientationPitchChange(double value);
|
|
void onOrientationRollChange(double value);
|
|
void onOrientationYawChange(double value);
|
|
void onSetPosition(void);
|
|
void onSetCommunication(void);
|
|
public slots:
|
|
|
|
|
|
};
|
|
|
|
|
|
#endif
|