This commit is contained in:
2025-07-31 22:47:26 +03:00
parent 9fbd858086
commit 750d29ceb9
8 changed files with 240 additions and 415 deletions

View File

@@ -71,15 +71,16 @@ public:
typedef mcc::MccAngle coord_t;
typedef std::chrono::system_clock::time_point time_point_t; // UTC time
enum class hw_state_t : int { HW_STATE_STOP, HW_STATE_SLEW, HW_STATE_TRACK };
enum class hw_moving_type_t : int { HW_MOVE_SLEWING, HW_MOVE_ADJUSTING, HW_MOVE_TRACKING, HW_MOVE_GUIDING };
struct axes_pos_t {
time_point_t time_point;
coord_t x, y;
coord_t xrate, yrate;
hw_state_t state;
hw_moving_type_t moving_type{hw_moving_type_t::HW_MOVE_TRACKING};
slewflags_t flags;
bool moveAndStop{false};
};
@@ -108,7 +109,6 @@ public:
std::string_view id() const;
error_t getState(hw_state_t&) const;
error_t setPos(axes_pos_t);
error_t getPos(axes_pos_t&);
@@ -119,7 +119,6 @@ private:
hardware_config_t _hardwareConfig;
std::jthread _statePollingThread;
hw_state_t _state;
double _sideralRate2; // square of sideral rate
double _sideralRateEps2;