...
This commit is contained in:
@@ -61,15 +61,22 @@ namespace asibfm700
|
||||
class AsibFM700Hardware final
|
||||
{
|
||||
public:
|
||||
static constexpr uint8_t XMOTOR_STOP_BIT = 0b00000001; // if 0th bit set then motor is stopped
|
||||
static constexpr uint8_t YMOTOR_STOP_BIT = 0b00010000; // if 4th bit set then motor is stopped
|
||||
|
||||
// definitions from concept
|
||||
typedef std::error_code error_t;
|
||||
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 };
|
||||
|
||||
struct axes_pos_t {
|
||||
time_point_t time_point;
|
||||
coord_t x, y;
|
||||
coord_t xrate, yrate;
|
||||
|
||||
hw_state_t state;
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user