This commit is contained in:
2025-07-23 19:44:05 +03:00
parent 14f3bb7a83
commit fd67d04ca2
8 changed files with 423 additions and 163 deletions

View File

@@ -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;
};