完善资料让更多小伙伴认识你,还能领取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 |
|
|
|
只有小组成员才能发言,加入小组>>
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
1408 浏览 1 评论
2058 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
1507 浏览 1 评论
2803 浏览 6 评论
5186 浏览 21 评论
351浏览 4评论
503浏览 4评论
在Linux上安装Atollic TRUEStudio的步骤有哪些呢?
276浏览 3评论
使用DMA激活某些外设会以导致外设无法工作的方式生成代码是怎么回事
552浏览 3评论
479浏览 3评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-4-19 18:43 , Processed in 0.764113 second(s), Total 69, Slave 59 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号