Kstars

remoteastrometryparser.h
1 /*
2  SPDX-FileCopyrightText: 2016 Jasem Mutlaq <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "astrometryparser.h"
10 #include "fitsviewer/fitsdata.h"
11 #include "indi/indicamera.h"
12 
13 namespace Ekos
14 {
15 class Align;
16 
17 /**
18  * @class RemoteAstrometryParser
19  * RemoteAstrometryParser invokes the remote astrometry.net solver in the remote CCD driver to solve the captured image.
20  * The offline astrometry.net plus index files must be installed and configured on the remote host running the INDI CCD driver.
21  *
22  * @author Jasem Mutlaq
23  */
25 {
26  Q_OBJECT
27 
28  public:
30  virtual ~RemoteAstrometryParser() override = default;
31 
32  virtual void setAlign(Align *_align) override
33  {
34  align = _align;
35  }
36  virtual bool init() override;
37  virtual void verifyIndexFiles(double fov_x, double fov_y) override;
38  virtual bool startSolver(const QString &filename, const QStringList &args, bool generated = true) override;
39  virtual bool stopSolver() override;
40 
41  void setAstrometryDevice(const QSharedPointer<ISD::GenericDevice> &device);
42  void setEnabled(bool enable);
43  bool sendArgs(const QStringList &args);
44  bool setCCD(const QString &ccd);
45 
46  public slots:
47  void checkStatus(INDI::Property prop);
48  void checkResults(INDI::Property prop);
49 
50  private:
51  QSharedPointer<ISD::GenericDevice> m_RemoteAstrometry;
52  bool solverRunning { false };
53  bool captureRunning { false };
54  Align *align { nullptr };
55  QElapsedTimer solverTimer;
56  FITSImage::Parity parity = FITSImage::BOTH;
57  QString targetCCD;
58 };
59 }
Q_OBJECTQ_OBJECT
Ekos is an advanced Astrophotography tool for Linux. It is based on a modular extensible framework to...
Definition: align.cpp:69
Align class handles plate-solving and polar alignment measurement and correction using astrometry....
Definition: align.h:73
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 03:57:34 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.