完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
|
在编译MCTasks.c时,我在第8182,8216和8250行的SystemNDrivePrARMs.h中收到此编译器错误。 (MC版本:3.4.1,IDE:ARM 7.10的IAR EW)
ID_DEMAG,/ *!&lt; s16A中的退磁电流: 电流(安培)= [电流(s16A)* Vdd微] / [65536 * Rshunt * Aop] * / 我输入到MCWB的去磁值是5.1Ampere。我做错什么了吗? 要解决此问题,算法是否会容忍未截断的最大可表示值? #hj#integer-truncation 以上来自于谷歌翻译 以下为原文 I am receiving this compiler error in SystemNDrivePrarms.h on lines 8182, 8216, and 8250 when compiling MCTasks.c. (MC version: 3.4.1, IDE: IAR EW for ARM 7.10) ID_DEMAG, /*!< Demagnetization current in s16A: Current(Amp) = [Current(s16A) * Vdd micro]/ [65536 * Rshunt * Aop] */ The demagnetisation value I input to MCWB is 5.1Ampere. Did I do something wrong? To work-around, will the algorithm tolerate a maximum representable value that has not truncated? #hj #integer-truncation |
|
相关推荐
4个回答
|
|
|
这是来自51-54行的#define
PMSM电机参数 : #define NOMINAL_CURRENT 15745 #define MOTOR_MAX_SPEED_RPM 23000 / *!&lt;最大额定速度* / #define MOTOR_VOLTAGE_CONSTANT 0.6 / *!&lt;伏特RMS ph-ph / kRPM * / #define ID_DEMAG -47236 / *!&lt;退磁电流* / 以上来自于谷歌翻译 以下为原文 Here is the #define from lines 51-54 of PMSM motor parameters.h : #define NOMINAL_CURRENT 15745 #define MOTOR_MAX_SPEED_RPM 23000 /*!< Maximum rated speed */ #define MOTOR_VOLTAGE_CONSTANT 0.6 /*!< Volts RMS ph-ph /kRPM */ #define ID_DEMAG -47236 /*!< Demagnetization current */ |
|
|
|
|
|
Ciao Luke
此警告不是要低估这一点,因为这意味着使用这些设置预处理器会发生一些溢出。 在这种情况下,我怀疑电机 - 电气参数中的退磁电流比电流反馈网络中的可测量电流更大。 如果你附上WB文件我可以看看。 再见 梁咏琪 以上来自于谷歌翻译 以下为原文 Ciao Luke This warning isn't to understimate this because it means that with these setting some overflow has occurred by the preprocessor. In this case I suspect that the Demagnetizing Current in motor - electrical parameter is greather than the measurable one due the current feedback network. If you attach the WB file I can take a look. Ciao Gigi |
|
|
|
|
|
附。
我为我的电机提供的德马格电流为> 5A。 如果我将demag电流从5A降低到3.5,那么这个数字不会在预处理器中剪切(截断) - 很容易从用于表示demag电流的公式中看出这一点。 德马格电流必须在电流检测处理电路的动态范围内,还是用于设置电机运行参数? 谢谢 以上来自于谷歌翻译 以下为原文 Attached. The demag current for my motor is provided for me as >5A. If I reduce the demag current from 5A to 3.5, then this figure does not clip (truncate) in the pre-processor - it's easy to see this from the formula which is used to represent the demag current. Must the demag current be within the dynamic range of the current detection processing circuits, or is this figure used for setting motor operating parameters? Thanks |
|
|
|
|
|
Ciao Luke,你抓住了这一点。它必须保持在当前检测处理电路的动态范围内,否则会导致计算溢出。 Ciao Gigi
以上来自于谷歌翻译 以下为原文 Ciao Luke, you catch the point. It has to stay in the dynamic range of the current detection processin circuits oterwise you get an overflow in the computation. Ciao Gigi |
|
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
1453 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
1502 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3649 浏览 1 评论
3842 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2461 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
727浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
661浏览 5评论
710浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
941浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
745浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-1 23:45 , Processed in 0.641665 second(s), Total 79, Slave 62 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
612