是否在传感器双轴驱动器项目中实施了现场周末活动?
我们想在"speedloop"中实施疯狂的周末是可能的。
在 spraco3中 ,我看到你有它存在,但我看不到项目源中的逻辑:

谢谢!
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
是否在传感器双轴驱动器项目中实施了现场周末活动?
我们想在"speedloop"中实施疯狂的周末是可能的。
在 spraco3中 ,我看到你有它存在,但我看不到项目源中的逻辑:

谢谢!
Unknown 说:是否在传感器双轴驱动器项目中实施了现场周末?
可以。 您可以在 传感器双轴驱动器工程中实现固件。 您可以参考 以下文档中的说明。
通用项目和实验室用户指南: https://www.ti.com/lit/spruj26
您好、Yanming、我看了通用实验项目、制作了一个非常基本的弱磁控制器、我计划将其添加到速度环路中。
你可以看看它,让我知道我是否在正确的轨道。
float32_t runFWC(float32_t mechTheta, float32_t speedRef)
{
//speedRef is the normalized speed reference.
//mechTheta is the normalized mechanical angle got from the encoder.
float32_t idRef = 0.0f;
float32_t angle_rad = 2 * PI * mechTheta;
float32_t cos_theta = __cospuf32(angle_rad);
float32_t sin_theta = __sinpuf32(angle_rad);
if (fabs(speedRef) > 1.0f) // Apply field weakening only if the speed reference is greater than base speed
{
// Field Weakening Control Logic
// Adjust idRef based on mechTheta and speedRef
if (speedRef > 0.0f)
{
// Clockwise rotation
idRef = -speedRef * cos_theta; // Adjust idRef based on speedRef and cosine of angle
}
else if (speedRef < 0.0f)
{
// Anti-clockwise rotation
idRef = -speedRef * sin_theta; // Adjust idRef based on speedRef and sine of angle
}
}
return idRef;
}谢谢澄清,如何计算电流矢量?,纠正我,如果我错,但这是我们如何计算电流矢量角度:
1.运行 Clarke (a、b、c 至 i alpha. I-β)
使用 I-alpha 运行 Park 变换。 I -β 和转子角度以获取 Id 和 Iq。
3.计算 atan()如果 id 和 iq 给出矢量角度?
我之前看的是双轴 FOC 方框图:什么是 Omega R (WR)? 这是速度反馈吗? 我注意到弱磁模块也是如此。 因此、启用弱磁块的输入是速度基准和速度反馈、输出是 Id 电流。 我正试图建立一个基本的骨骼的磁场减弱功能。
