mirror of
https://gitee.com/dlmu-cone/bf_original_balance_chassis
synced 2026-07-24 11:37:45 +08:00
增加了遥控器按键功能并修改所有函数和类型定义为标准格式
This commit is contained in:
@@ -22,8 +22,8 @@ typedef struct // HT04
|
||||
float speed_rpm;
|
||||
float given_current;
|
||||
|
||||
PID_t pid;
|
||||
can_instance *motor_can_instace;
|
||||
PIDInstance pid;
|
||||
CANInstance *motor_can_instace;
|
||||
} joint_instance;
|
||||
|
||||
typedef enum
|
||||
@@ -33,7 +33,7 @@ typedef enum
|
||||
CMD_ZERO_POSITION = 0xfe
|
||||
} joint_mode;
|
||||
|
||||
joint_instance *HTMotorInit(can_instance_config_s config);
|
||||
joint_instance *HTMotorInit(CAN_Init_Config_s config);
|
||||
|
||||
void JointControl(joint_instance *_instance, float current);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user