Changeset View
Changeset View
Standalone View
Standalone View
kstars/ekos/guide/internalguide/internalguider.h
1 | /* Ekos Internal Guider Class | 1 | /* Ekos Internal Guider Class | ||
---|---|---|---|---|---|
2 | Copyright (C) 2016 Jasem Mutlaq <mutlaqja@ikarustech.com>. | 2 | Copyright (C) 2016 Jasem Mutlaq <mutlaqja@ikarustech.com>. | ||
3 | 3 | | |||
4 | Based on lin_guider | 4 | Based on lin_guider | ||
5 | 5 | | |||
6 | This application is free software; you can redistribute it and/or | 6 | This application is free software; you can redistribute it and/or | ||
7 | modify it under the terms of the GNU General Public | 7 | modify it under the terms of the GNU General Public | ||
8 | License as published by the Free Software Foundation; either | 8 | License as published by the Free Software Foundation; either | ||
9 | version 2 of the License, or (at your option) any later version. | 9 | version 2 of the License, or (at your option) any later version. | ||
10 | */ | 10 | */ | ||
11 | 11 | | |||
12 | #pragma once | 12 | #pragma once | ||
13 | 13 | | |||
14 | #include "matr.h" | 14 | #include "matr.h" | ||
15 | #include "indi/indicommon.h" | 15 | #include "indi/indicommon.h" | ||
16 | #include "../guideinterface.h" | 16 | #include "../guideinterface.h" | ||
17 | #include "guidelog.h" | ||||
17 | 18 | | |||
18 | #include <QFile> | 19 | #include <QFile> | ||
19 | #include <QPointer> | 20 | #include <QPointer> | ||
20 | #include <QQueue> | 21 | #include <QQueue> | ||
21 | #include <QTime> | 22 | #include <QTime> | ||
22 | 23 | | |||
23 | #include <memory> | 24 | #include <memory> | ||
24 | 25 | | |||
▲ Show 20 Lines • Show All 138 Lines • ▼ Show 20 Line(s) | 159 | private: | |||
163 | // Guiding | 164 | // Guiding | ||
164 | bool processGuiding(); | 165 | bool processGuiding(); | ||
165 | 166 | | |||
166 | // Image Guiding | 167 | // Image Guiding | ||
167 | bool processImageGuiding(); | 168 | bool processImageGuiding(); | ||
168 | 169 | | |||
169 | void reset(); | 170 | void reset(); | ||
170 | 171 | | |||
172 | // Logging | ||||
173 | void fillGuideInfo(GuideLog::GuideInfo *info); | ||||
174 | | ||||
171 | std::unique_ptr<cgmath> pmath; | 175 | std::unique_ptr<cgmath> pmath; | ||
172 | QPointer<FITSView> guideFrame; | 176 | QPointer<FITSView> guideFrame; | ||
173 | bool m_isStarted { false }; | 177 | bool m_isStarted { false }; | ||
174 | bool m_isSubFramed { false }; | 178 | bool m_isSubFramed { false }; | ||
175 | bool m_isFirstFrame { false }; | 179 | bool m_isFirstFrame { false }; | ||
176 | bool m_UseRapidGuide { false }; | 180 | bool m_UseRapidGuide { false }; | ||
177 | bool m_ImageGuideEnabled { false }; | 181 | bool m_ImageGuideEnabled { false }; | ||
178 | int m_starLostCounter { 0 }; | 182 | int m_starLostCounter { 0 }; | ||
▲ Show 20 Lines • Show All 54 Lines • ▼ Show 20 Line(s) | |||||
233 | static const uint16_t MAX_IMMEDIATE_CAPTURE = 250; | 237 | static const uint16_t MAX_IMMEDIATE_CAPTURE = 250; | ||
234 | // When to start capture before pulse delay is over | 238 | // When to start capture before pulse delay is over | ||
235 | static const uint16_t PROPAGATION_DELAY = 100; | 239 | static const uint16_t PROPAGATION_DELAY = 100; | ||
236 | 240 | | |||
237 | // How many 'random' pixels can we move before we have to force direction reversal? | 241 | // How many 'random' pixels can we move before we have to force direction reversal? | ||
238 | static const uint8_t MAX_DITHER_TRAVEL = 15; | 242 | static const uint8_t MAX_DITHER_TRAVEL = 15; | ||
239 | 243 | | |||
240 | QPair<double, double> accumulator; | 244 | QPair<double, double> accumulator; | ||
245 | GuideLog guideLog; | ||||
241 | }; | 246 | }; | ||
242 | } | 247 | } |