同步步兵代码,暂时关闭底盘跟随

This commit is contained in:
2025-11-02 21:21:11 +08:00
parent 456cc96c81
commit 3821589bed
693 changed files with 238044 additions and 2735 deletions

View File

@@ -0,0 +1,21 @@
#ifndef __CAN_H
#define __CAN_H
typedef enum
{
CAN_M3508=0,//M3508
CAN_M2006,//M2006
CAN_GM6020,//GM6020
CAN_RoboMasterC,//C板
}CAN_MotorModel;//CAN总线设备分类枚举
extern uint8_t CAN_CAN1DeviceNumber;//CAN1总线上设备数量
extern uint8_t CAN_CAN2DeviceNumber;//CAN2总线上设备数量
extern uint8_t CAN_DeviceNumber;//CAN总线上设备数量
extern int8_t CAN_IDSelect;//CAN总线上ID列表选择位
void CAN_CANInit(void);//CAN总线初始化
void CAN_CANIDReset(void);//CAN接收ID列表复位
void CAN_CAN_GetRefereeSystemData(void);//CAN接收获取裁判系统状态
#endif