This commit is contained in:
2025-07-19 19:52:30 +03:00
parent 464c262e08
commit 9cd52267d6
11 changed files with 628 additions and 58 deletions

View File

@@ -71,20 +71,6 @@ public:
coord_t x, y;
};
// c++ish wrapper to 'conf_t' struct
struct device_config_t {
std::string MountDevPath; // path to mount device
int MountDevSpeed; // serial speed
std::string EncoderDevPath; // path to encoder device
int EncoderDevSpeed; // serial speed
int SepEncoder; // ==1 if encoder works as separate serial device, ==2 if there's new version with two devices
std::string EncoderXDevPath; // paths to new controller devices
std::string EncoderYDevPath;
double MountReqInterval; // interval between subsequent mount requests (seconds)
double EncoderReqInterval; // interval between subsequent encoder requests (seconds)
};
struct hardware_config_t {
// the 'char*' fields from conf_t:
@@ -113,6 +99,7 @@ public:
error_t setPos(axes_pos_t);
error_t getPos(axes_pos_t&);
error_t stop();
error_t init();