Commit 27ae34f2 authored by Jasem Mutlaq's avatar Jasem Mutlaq
Browse files

Bit of code refactoring. Keep track of axis distance when reversing guide...

Bit of code refactoring. Keep track of axis distance when reversing guide calibration direction. If we are still not moving toward the starting points then we try a more aggressive pulse to get the mount back to track
parent e8cb5f3a
......@@ -99,7 +99,7 @@ class InternalGuider : public GuideInterface
bool isGuiding(void) const;
void setAO(bool enable);
void setInterface(void);
bool isRapidGuide() { return m_useRapidGuide; }
bool isRapidGuide() { return m_UseRapidGuide; }
double getAOLimit();
void setSubFramed(bool enable) { m_isSubFramed = enable; }
......@@ -147,35 +147,44 @@ class InternalGuider : public GuideInterface
QPointer<FITSView> guideFrame;
bool m_isStarted { false };
bool m_isSubFramed { false };
bool isFirstFrame { false };
bool first_subframe { false };
bool imageGuideEnabled { false };
bool m_isFirstFrame { false };
bool m_UseRapidGuide { false };
bool m_ImageGuideEnabled { false };
int m_starLostCounter { 0 };
bool m_useRapidGuide { false };
QFile logFile;
int auto_drift_time { 5 };
int turn_back_time { 0 };
double start_x1 { 0 };
double start_y1 { 0 };
double end_x1 { 0 };
double end_y1 { 0 };
double start_x2 { 0 };
double start_y2 { 0 };
double end_x2 { 0 };
double end_y2 { 0 };
double last_x { 0 };
double last_y { 0 };
int ra_iterations { 0 };
int dec_iterations { 0 };
int m_LastPulse { 0 };
int m_RATotalPulse { 0 };
int m_DETotalPulse { 0 };
int m_BacklastCounter { 0 };
double phi { 0 };
uint32_t guideBoxSize { 32 };
Vector ditherTargetPosition;
uint8_t ditherRetries {0};
QFile logFile;
uint32_t guideBoxSize { 32 };
struct
{
int auto_drift_time { 5 };
int turn_back_time { 0 };
int ra_iterations { 0 };
int dec_iterations { 0 };
int last_pulse { 0 };
int ra_total_pulse { 0 };
int de_total_pulse { 0 };
double phi { 0 };
} m_CalibrationParams;
struct
{
double start_x1 { 0 };
double start_y1 { 0 };
double end_x1 { 0 };
double end_y1 { 0 };
double start_x2 { 0 };
double start_y2 { 0 };
double end_x2 { 0 };
double end_y2 { 0 };
double last_x { 0 };
double last_y { 0 };
double ra_distance {0};
double de_distance {0};
} m_CalibrationCoords;
Vector m_DitherTargetPosition;
uint8_t m_DitherRetries {0};
QTime reacquireTimer;
int m_highRMSCounter {0};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment