v0.1
This commit is contained in:
32
yaokon/Core/User_Drivers/RockingBar.h
Normal file
32
yaokon/Core/User_Drivers/RockingBar.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#ifndef _ROCKING_BAR_H
|
||||
#define _ROCKING_BAR_H
|
||||
|
||||
/*----stm32相关头文件(BEGIN)-------*/
|
||||
#include "main.h"
|
||||
#include "adc.h"
|
||||
/*----stm32相关头文件(END)---------*/
|
||||
#include "stdint.h"
|
||||
#include "queue.h"
|
||||
|
||||
|
||||
|
||||
#define ROCKING_BAR_CH 2 //采集的通道数
|
||||
#define FILLTERING_NUM 100 //均值滤波
|
||||
|
||||
#define THRUST_MAX (float)100
|
||||
#define THRUST_MIN (float)-100
|
||||
#define YAW_MAX (float)200
|
||||
#define YAW_MIN (float)-200
|
||||
|
||||
|
||||
extern float RockingBar_Value[ROCKING_BAR_CH];
|
||||
|
||||
void RockingBarInit(void);
|
||||
void RockingBar_ADC_GetValue(void);
|
||||
void RockingBar_GetValue(void);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user