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.

[参考译文] CCS/DRV8301-69M-KIT:具有奇怪值的变量

Guru**** 2124380 points
Other Parts Discussed in Thread: MOTORWARE
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/637198/ccs-drv8301-69m-kit-variables-with-strange-values

部件号:DRV8301-69M-Kit
主题中讨论的其他部件:MOTORWARE

工具/软件:Code Composer Studio

您好,  

当我在调试模式下运行Motorware实验室时,一些变量(如 gMotorVars.SpeedRef_Krpm    和gMotorVars.MaxAccel_krpmps)会采用奇怪的值,例如分别为167.7721万和335.5443万。 项目运行良好,但我无法解释这些值。 我想这是与ADC采样有关的,但我更希望有变量的实际单位测量。 如何在CCS中配置它?

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    请尝试在CCS表达式监视窗口中将该值转换为IQ(24)值,这将以正确的格式显示该数字

    Sean