修复类型支持问题和重复定义

This commit is contained in:
NeoZeng
2022-11-19 15:40:38 +08:00
parent acf93052b2
commit 076973f41e
12 changed files with 71 additions and 113 deletions

View File

@@ -1,9 +1,10 @@
#ifndef HT04_H
#define HT04_H
#include "struct_typedef.h"
#include <stdint-gcc.h>
#include "bsp_can.h"
#include "controller.h"
#include "motor_def.h"
#define HT_MOTOR_CNT 4

View File

@@ -1,16 +1,14 @@
#ifndef LK9025_H
#define LK9025_H
#include "struct_typedef.h"
#include "bsp_can.h"
#include "controller.h"
#include "motor_def.h"
#define LK_MOTOR_CNT 2
#define I_MIN -2000
#define I_MAX 2000
#define LIMIT_MIN_MAX(x, min, max) (x) = (((x) <= (min)) ? (min) : (((x) >= (max)) ? (max) : (x)))
typedef struct // 9025
{
uint16_t last_ecd;

View File

@@ -13,6 +13,9 @@
#define MOTOR_DEF_H
#include "controller.h"
#include <stdint-gcc.h>
#define LIMIT_MIN_MAX(x, min, max) (x) = (((x) <= (min)) ? (min) : (((x) >= (max)) ? (max) : (x)))
/**
* @brief 闭环类型,如果需要多个闭环,则使用或运算