Implemented RPCs for CoreXY
This commit is contained in:
@@ -3,8 +3,14 @@
|
||||
#include <strings.h>
|
||||
|
||||
enum GobotRPCNumber {
|
||||
HOME_XY = 0x1,
|
||||
SET_PADDING = 0x2,
|
||||
GOTO = 0x3,
|
||||
RELEASE_MOTORS = 0x4,
|
||||
|
||||
DROP_STONE = 0x5,
|
||||
MOVE_Z_AXIS = 0x7,
|
||||
|
||||
VACUM = 0x8,
|
||||
RESET = 0xc,
|
||||
GET_INFO = 0xd
|
||||
|
||||
@@ -12,6 +12,7 @@ typedef void (*onPackageRxCallback)(void * args, char *data, uint16_t len, Gobot
|
||||
enum NODE_TYPE: uint8_t {
|
||||
NODE_TYPE_VACUM = 0xa1,
|
||||
NODE_TYPE_HEAD = 0xa2,
|
||||
NODE_TYPE_COREXY = 0xa3,
|
||||
};
|
||||
|
||||
struct InfoData {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
#include "hardware/irq.h"
|
||||
|
||||
struct GobotRPC_NI_Package_Transport {
|
||||
char data[32];
|
||||
char data[256];
|
||||
uint length;
|
||||
uint index;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user