...
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user