Implemented RPCs for CoreXY

This commit is contained in:
AlexanderHD27
2025-01-08 21:19:03 +01:00
parent 0b620a76ca
commit b040662551
23 changed files with 335 additions and 303 deletions

View File

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

View File

@@ -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 {

View File

@@ -9,7 +9,7 @@
#include "hardware/irq.h"
struct GobotRPC_NI_Package_Transport {
char data[32];
char data[256];
uint length;
uint index;
};