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:
@@ -1,11 +1,18 @@
|
||||
#include "gimbal.h"
|
||||
#include "robot_def.h"
|
||||
#include "dji_motor.h"
|
||||
#include "ins_task.h"
|
||||
|
||||
static IMU_Data_t Gimbal_IMU_data; // 云台IMU数据
|
||||
static dji_motor_instance yaw; // yaw电机
|
||||
static dji_motor_instance pitch; // pitch电机
|
||||
static Gimbal_Ctrl_Cmd_s gimbal_cmd_recv; // 来自gimbal_cmd的控制信息
|
||||
static Gimbal_Upload_Data_s gimbal_feedback_data; // 回传给gimbal_cmd的云台状态信息
|
||||
|
||||
void GimbalInit()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
void GimbalTask()
|
||||
{
|
||||
|
||||
}
|
||||
@@ -1,17 +1,6 @@
|
||||
#ifndef GIMBAL_H
|
||||
#define GIMBAL_H
|
||||
|
||||
#include "robot_def.h"
|
||||
#include "dji_motor.h"
|
||||
#include "ins_task.h"
|
||||
|
||||
typedef struct
|
||||
{
|
||||
IMU_Data_t Gimbal_IMU_data;
|
||||
dji_motor_instance yaw;
|
||||
dji_motor_instance pitch;
|
||||
} gimbal;
|
||||
|
||||
void GimbalInit();
|
||||
|
||||
void GimbalTask();
|
||||
|
||||
Reference in New Issue
Block a user