Kstars

rotatorsettings.h
1/*
2 SPDX-FileCopyrightText: 2017 Jasem Mutlaq <mutlaqja@ikarustech.com>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7
8#pragma once
9
10#include "ui_rotatorsettings.h"
11#include "indi/indimount.h"
12#include "qloggingcategory.h"
13#include <QDialog>
14
15namespace Ekos
16{
17class CaptureDeviceAdaptor;
18}
19
20class RotatorSettings : public QDialog, public Ui::RotatorDialog
21{
23
24public:
25
26 explicit RotatorSettings(QWidget *parent);
27
28 void initRotator(const QString &train, Ekos::CaptureDeviceAdaptor *CaptureDA, ISD::Rotator *device);
29 void updateRotator(double RAngle);
30 void updateGauge(double Angle);
31 void updateGaugeZeroPos(ISD::Mount::PierSide Pierside);
32 void updateFlipPolicy(const bool FlipRotationAllowed);
33 /* remove enforceJobPA
34 // bool isRotationEnforced() { return enforceJobPA->isChecked(); }
35 // void setRotationEnforced(bool enabled) { enforceJobPA->setChecked(enabled); }
36 */
37 double getCameraPA() { return CameraPA->value(); }
38 void setCameraPA(double Angle) { CameraPA->setValue(Angle); }
39 void setPAOffset(double value) { CameraOffset->setValue(value);}
40 void refresh(double PAngle);
41
42private:
43 // Capture adaptor instance to access functions
44 Ekos::CaptureDeviceAdaptor *m_CaptureDA {nullptr};
45 // Rotator Device
46 ISD::Rotator *m_Rotator = {nullptr};
47 void setFlipPolicy(const int index);
48 void showAlignOptions();
49 void activateRotator(double Angle);
50 void commitRotatorDirection(bool Reverse);
51 void syncFOV(double PA);
52
54 void newLog(const QString &text);
55};
Rotator class handles control of INDI Rotator devices.
Definition indirotator.h:20
Ekos is an advanced Astrophotography tool for Linux.
Definition align.cpp:78
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:19:02 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.