generated from Template/H563ZI-HAL-CMake-Template
add Encoder and PID control and Abstacle control
This commit is contained in:
12
fun/encoder.h
Normal file
12
fun/encoder.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#ifndef __ENCODER_H__
|
||||
#define __ENCODER_H__
|
||||
|
||||
#include "headfile.h"
|
||||
|
||||
extern volatile int16_t target_rpm_L;
|
||||
extern volatile int16_t target_rpm_R;
|
||||
int16_t map_speed_to_rpm(int speed);
|
||||
UINT ControlThreadCreate(void);
|
||||
UINT Encoder_ThreadCreate(void);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user