增加 MT11云台控制
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#define FAULT 0
|
||||
#define NORMAL 1
|
||||
|
||||
#define MAX_RECEIVED_DATA_SIZE 1024
|
||||
|
||||
//-----CAN----------------------------------------------------------------
|
||||
// 接收电机控制器输入
|
||||
@@ -190,7 +191,7 @@ typedef struct _StrManualComputerInput
|
||||
typedef union _UnManualComputerInput
|
||||
{
|
||||
StrManualComputerInput bit_data; // 使用定义的结构体变量名
|
||||
unsigned int arr[sizeof(StrManualComputerInput) / sizeof(unsigned int)]; // 通过结构体类型确定大小
|
||||
unsigned int arr[sizeof(StrManualComputerInput)]; // 通过结构体类型确定大小
|
||||
} UnManualComputerInput;
|
||||
|
||||
|
||||
@@ -245,6 +246,21 @@ typedef union _UnRemoteControlInput
|
||||
} UnRemoteControlInput;
|
||||
|
||||
|
||||
// 定义接收数据结构体
|
||||
typedef struct {
|
||||
uint8_t data[MAX_RECEIVED_DATA_SIZE];
|
||||
uint16_t length;
|
||||
} ReceivedDataStruct;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
//-----IO口---------------------------------------------------------------
|
||||
// 从IO口输入
|
||||
|
||||
@@ -973,6 +989,8 @@ extern UnSdoOutput un_sdo_output ;//转向电机输出
|
||||
//变量
|
||||
extern uint8_t test_app[26];
|
||||
|
||||
extern ReceivedDataStruct mt11_received_data;
|
||||
|
||||
extern UnCanDebugOutput un_can_debug_output;//调试输出
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user