added short cmd, not tested
This commit is contained in:
@@ -73,6 +73,27 @@ typedef struct{
|
||||
double voltage;
|
||||
} mountdata_t;
|
||||
|
||||
typedef struct{
|
||||
int32_t Xmot; // 0 X motor position (rad)
|
||||
int32_t Xspeed; // 4 X speed (rad/s)
|
||||
int32_t Ymot; // 8
|
||||
int32_t Yspeed; // 12
|
||||
uint8_t xychange; // 16 change Xbits/Ybits value
|
||||
uint8_t XBits; // 17
|
||||
uint8_t YBits; // 18
|
||||
} short_command_t; // short command
|
||||
|
||||
typedef struct{
|
||||
int32_t Xmot; // 0 X motor position (rad)
|
||||
int32_t Xspeed; // 4 X speed (rad/s)
|
||||
int32_t Ymot; // 8
|
||||
int32_t Yspeed; // 12
|
||||
int32_t Xadder; // 16 - X adder (rad/s)
|
||||
int32_t Yadder; // 20
|
||||
int32_t Xatime; // 24 X adder time, sec
|
||||
int32_t Yatime; // 28
|
||||
} long_command_t; // long command
|
||||
|
||||
// mount class
|
||||
typedef struct{
|
||||
mcc_errcodes_t (*init)(conf_t *c); // init device
|
||||
@@ -80,6 +101,8 @@ typedef struct{
|
||||
mcc_errcodes_t (*getMountData)(mountdata_t *d); // get last data
|
||||
mcc_errcodes_t (*moveTo)(double X, double Y); // move to given position ans stop
|
||||
mcc_errcodes_t (*emergStop)(); // emergency stop
|
||||
mcc_errcodes_t (*shortCmd)(short_command_t *cmd); // send/get short command
|
||||
mcc_errcodes_t (*longCmd)(long_command_t *cmd); // send/get long command
|
||||
} mount_t;
|
||||
|
||||
extern mount_t Mount;
|
||||
|
||||
Reference in New Issue
Block a user