FOC开环调试成功

This commit is contained in:
cbb
2025-10-16 21:43:19 +08:00
parent 2d807260c5
commit 35801d6f48
13 changed files with 704 additions and 509 deletions
+4 -1
View File
@@ -77,7 +77,10 @@ CurrentKalman::CurrentKalman(float initial_current, float L, float R, float T,
: x(initial_current), P(1.0f), // 初始误差协方差
Q(Q), // 过程噪声
R(R_noise), // 测量噪声
L(L), R_m(R), T(T) {}
L(L), R_m(R), T(T) {
CircularBuffer buffer;
}
/*!
\brief 更新卡尔曼滤波器状态
\param[in] measured_current 测量电流值
-3
View File
@@ -66,9 +66,6 @@ class CurrentKalman {
void setMeasurementNoise(float r);
};
extern CurrentKalman kalman;
extern CircularBuffer buffer;
#endif // __cplusplus
#endif // _FILTER_H