完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
我想在我的项目中使用其他一些mag编码器(SPI接口),现在我已经在FOC项目中完成了它的驱动程序,但我不知道如何输入我得到的速度数据,我找到了函数:bool SPD_CalcAvrgMecSpeed01Hz (CSPD this,int16_t * pMecSpeed01Hz);
但是我不知道什么是CSPD课程,我怎样才能将速度数据输入到它。任何人都可以帮到我? #foc-4.1 #cspd_t 以上来自于谷歌翻译 以下为原文 I want to use some other mag encoder(SPI interface) in my project ,now i have finished the driver of it in FOC project,but I don't know how to input the speed data I get ,I find the function :bool SPD_CalcAvrgMecSpeed01Hz(CSPD this, int16_t *pMecSpeed01Hz); but I don't know what is the class CSPD ,and how can I input my speed data to it.can anyone get me some help? #foc-4.1 #cspd_t |
|
相关推荐
1个回答
|
|
|
再见
要了解如何构建与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 |
|
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
1455 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
1504 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3651 浏览 1 评论
3843 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2462 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
730浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
665浏览 5评论
712浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
943浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
748浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-3 01:24 , Processed in 0.718959 second(s), Total 74, Slave 57 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
18332