• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kstars

  • sources
  • kde-4.12
  • kdeedu
  • kstars
  • kstars
  • ekos
guide.h
Go to the documentation of this file.
1 /* Ekos guide tool
2  Copyright (C) 2012 Jasem Mutlaq <mutlaqja@ikarustech.com>
3 
4  This application is free software; you can redistribute it and/or
5  modify it under the terms of the GNU General Public
6  License as published by the Free Software Foundation; either
7  version 2 of the License, or (at your option) any later version.
8  */
9 
10 #ifndef guide_H
11 #define guide_H
12 
13 #include <QTimer>
14 
15 #include <KFileItemList>
16 #include <KDirLister>
17 
18 #include "guide/common.h"
19 #include "guide.h"
20 #include "fitsviewer/fitscommon.h"
21 #include "indi/indistd.h"
22 #include "indi/inditelescope.h"
23 #include "indi/indiccd.h"
24 #include "ui_guide.h"
25 
26 class QTabWidget;
27 class cgmath;
28 class rcalibration;
29 class rguider;
30 
31 namespace Ekos
32 {
33 
34 
35 class Guide : public QWidget, public Ui::Guide
36 {
37 
38  Q_OBJECT
39 
40 public:
41  Guide();
42  ~Guide();
43 
44  enum GuiderStage { CALIBRATION_STAGE, GUIDE_STAGE };
45 
46  void setCCD(ISD::GDInterface *newCCD);
47  void setTelescope(ISD::GDInterface *newTelescope);
48  void addST4(ISD::ST4 *newST4);
49 
50  void addGuideHead();
51  void syncTelescopeInfo();
52  void syncCCDInfo();
53 
54  void appendLogText(const QString &);
55  void clearLog();
56 
57 
58  bool do_pulse( GuideDirection ra_dir, int ra_msecs, GuideDirection dec_dir, int dec_msecs ); // do dual-axis pulse (thread-safe)
59  bool do_pulse( GuideDirection dir, int msecs ); // do single-axis pulse (thread-safe)
60 
61  QString getLogText() { return logText.join("\n"); }
62 
63  double getReticleAngle();
64 
65 public slots:
66 
67  void newFITS(IBLOB*);
68  void newST4(int index);
69  bool capture();
70  void viewerClosed();
71 
72 signals:
73  void newLog();
74 
75 private:
76 
77 
78  ISD::CCD *currentCCD;
79  ISD::Telescope *currentTelescope;
80  ISD::ST4* ST4Driver;
81 
82  QList<ISD::ST4*> ST4List;
83 
84  QTabWidget *tabWidget;
85 
86  GuiderStage guiderStage;
87 
88  cgmath *pmath;
89  rcalibration *calibration;
90  rguider *guider;
91 
92  bool useGuideHead;
93 
94  QStringList logText;
95 
96  double ccd_hor_pixel, ccd_ver_pixel, focal_length, aperture;
97 
98 };
99 
100 }
101 
102 #endif // guide_H
Ekos::Guide::capture
bool capture()
Definition: guide.cpp:211
Ekos::Guide::appendLogText
void appendLogText(const QString &)
Definition: guide.cpp:293
guide.h
Ekos::Guide::newFITS
void newFITS(IBLOB *)
Definition: guide.cpp:240
Ekos::Guide::newLog
void newLog()
QWidget
GuideDirection
GuideDirection
Definition: indicommon.h:23
Ekos::Guide::GUIDE_STAGE
Definition: guide.h:44
Ekos::Guide::syncTelescopeInfo
void syncTelescopeInfo()
Definition: guide.cpp:155
Ekos::Guide::CALIBRATION_STAGE
Definition: guide.h:44
Ekos::Guide::GuiderStage
GuiderStage
Definition: guide.h:44
fitscommon.h
Ekos::Guide::clearLog
void clearLog()
Definition: guide.cpp:301
Ekos::Guide::viewerClosed
void viewerClosed()
Definition: guide.cpp:344
rguider
Definition: guider.h:24
ISD::Telescope
Definition: inditelescope.h:19
Ekos::Guide
Definition: guide.h:35
Ekos::Guide::setCCD
void setCCD(ISD::GDInterface *newCCD)
Definition: guide.cpp:75
Ekos::Guide::syncCCDInfo
void syncCCDInfo()
Definition: guide.cpp:112
inditelescope.h
Ekos::Guide::do_pulse
bool do_pulse(GuideDirection ra_dir, int ra_msecs, GuideDirection dec_dir, int dec_msecs)
Definition: guide.cpp:307
indiccd.h
cgmath
Definition: gmath.h:116
Ekos::Guide::setTelescope
void setTelescope(ISD::GDInterface *newTelescope)
Definition: guide.cpp:90
Ekos::Guide::newST4
void newST4(int index)
Definition: guide.cpp:330
Ekos::Guide::getLogText
QString getLogText()
Definition: guide.h:61
Ekos::Guide::~Guide
~Guide()
Definition: guide.cpp:68
ISD::ST4
Definition: indistd.h:195
rcalibration
Definition: rcalibration.h:29
indistd.h
common.h
Ekos::Guide::addST4
void addST4(ISD::ST4 *newST4)
Definition: guide.cpp:201
Ekos::Guide::addGuideHead
void addGuideHead()
Definition: guide.cpp:99
Ekos::Guide::Guide
Guide()
Definition: guide.cpp:33
ISD::CCD
Definition: indiccd.h:73
Ekos::Guide::getReticleAngle
double getReticleAngle()
Definition: guide.cpp:339
ISD::GDInterface
Definition: indistd.h:48
QList
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:19 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kstars

Skip menu "kstars"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal