再见
要了解如何构建与FW FOC结构兼容的自有类,我建议阅读UM1053 - STM32F MCU PMSM单/双高级开发人员指南
FOC图书馆
并且还要看一下代码本身。在这种情况下进入文件
SpeednPosFdbkClass.c
和派生类:
xxx_SpeednPosFdbkClass.c
FW使用函数SPD_CalcAvrgMecSpeed01Hz来获取电机速度的信息,并且派生类必须实现它。
但是派生类也必须实现电角SPD_CalcAngle的计算和角度SPD_GetElAngle的计算。
查看SpeednPosFdbkClass.c中每个函数的描述以及函数实现的派生类。
再见
梁咏琪
以上来自于谷歌翻译
以下为原文
Ciao
To understand how to build own classes compatible with the FW FOC structure I suggest to read the UM1053 - Advanced developers guide for STM32F MCUs PMSM single/dual
FOC library
And also to take a look to the code itself. In this case into the files
SpeednPosFdbkClass.c
and derived classes:
xxx_SpeednPosFdbkClass.c
The function SPD_CalcAvrgMecSpeed01Hz is used by the FW to get information of the speed of the motor, and it is mandatory that the derived classes implements it.
But it is also mandatory for the derived class to implement the computation of the electrrical angle SPD_CalcAngle and the get of the angle SPD_GetElAngle.
Take a look to the description of each functions inside SpeednPosFdbkClass.c and to the derived Classes for the functions implementation.
Ciao
Gigi