zhyinch
2021-09-22 127bcc70c9d3e0871a0fd80ff8e21190c80a8229
源码/核心板/Src/algorithm/TrackingDiff.h
对比新文件
@@ -0,0 +1,27 @@
#ifndef TRACKINGDIFF_H_
#define TRACKINGDIFF_H_
#include "stm32f10x.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct TrackingDiffClass_
{
   float error;
   float vel_predict;
   float pos_predict;
   float vel_factor;
   float pos_factor;
   float time_correction;
} TrackingDiffClass;
//TrackingDiffClass* NewTrackingDiffClass(float vel_factor, float pos_factor, float time_factor);
//void TrackingDiffUpdate(TrackingDiffClass* self, float target);
void NewTrackingDiffUpdate(u8 channel, float target);
extern float pos_predict[255],vel_predict[255];
#ifdef __cplusplus
}
#endif
#endif