2025-03-13 19:23:24 +08:00
|
|
|
|
#ifndef _SHOOT_H_
|
|
|
|
|
#define _SHOOT_H_
|
|
|
|
|
|
|
|
|
|
#include "GO_M8010_6_Driver.h"
|
|
|
|
|
#include "odrive_can.h"
|
|
|
|
|
#include "djiMotor.h"
|
|
|
|
|
#include "calc_lib.h"
|
|
|
|
|
#include "pid.h"
|
|
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
|
{
|
|
|
|
|
/* data */
|
|
|
|
|
GO_Motorfield* goData[GO_NUM];
|
|
|
|
|
//暂存目标位置
|
|
|
|
|
//0 left,1 right
|
|
|
|
|
float angleSetgo[GO_NUM];
|
|
|
|
|
float offestAngle[GO_NUM];//go数据
|
|
|
|
|
float Kp;
|
|
|
|
|
float Kd;
|
|
|
|
|
float allowRange;
|
|
|
|
|
}GO_SHOOT;
|
|
|
|
|
|
|
|
|
|
void shooterInit(void);
|
|
|
|
|
void shoot_ball(int key);
|
2025-03-14 20:44:39 +08:00
|
|
|
|
void shoot_odrive(int angle);
|
2025-03-13 19:23:24 +08:00
|
|
|
|
|
|
|
|
|
#endif
|