添加错误代码
This commit is contained in:
@@ -74,6 +74,7 @@ typedef struct{
|
||||
int uartbsp;// 串口4的波特率
|
||||
int coder_ret_mode;// 注码指令返回格式
|
||||
int slave_addr_start;// 小板起始地址
|
||||
int moter_max_count;// 电机最大步数
|
||||
}sys_param_def;
|
||||
|
||||
|
||||
@@ -82,6 +83,22 @@ int flash_save_param(sys_param_def *par);
|
||||
const sys_param_def *sys_param(void);
|
||||
|
||||
|
||||
__packed
|
||||
typedef struct{
|
||||
uint32_t max;
|
||||
uint32_t min;
|
||||
uint32_t err;
|
||||
}scheme_range_def;
|
||||
|
||||
|
||||
|
||||
__packed
|
||||
typedef struct
|
||||
{
|
||||
uint32_t item_num;
|
||||
uint32_t err;
|
||||
scheme_range_def range[16];
|
||||
}scheme_task_def;
|
||||
|
||||
// 方案参数
|
||||
__packed
|
||||
@@ -89,12 +106,8 @@ typedef struct{
|
||||
uint8_t slave_data[2048];
|
||||
uint32_t plan_id;
|
||||
uint32_t timeout_m;
|
||||
uint32_t range_num;
|
||||
__packed
|
||||
struct{
|
||||
uint32_t max;
|
||||
uint32_t min;
|
||||
}range[0];
|
||||
uint32_t task_num;
|
||||
scheme_task_def task[0];
|
||||
}scheme_def;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user