CCS12更奇怪的事情。
我在头文件中定义一个常数。
#define cstSpeedMultiplier 6.556
我尝试在加载值时使用它。
pntMotor->intSlewSpeed = 305064 * cstSpeedMultiplier;
回到 CCS9、一直回到 CCS3.3、一切都正常。 现在、代码已编译并运行。 然而、当我检查变量时、它是零。 它就像编译器/链接器等未使用常量一样
现在发生什么事了?
David
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.
CCS12更奇怪的事情。
我在头文件中定义一个常数。
#define cstSpeedMultiplier 6.556
我尝试在加载值时使用它。
pntMotor->intSlewSpeed = 305064 * cstSpeedMultiplier;
回到 CCS9、一直回到 CCS3.3、一切都正常。 现在、代码已编译并运行。 然而、当我检查变量时、它是零。 它就像编译器/链接器等未使用常量一样
现在发生什么事了?
David
尊敬的 David:
我认为这个问题已被重新解决到您的另一个帖子中。 让我们巩固这里的讨论:
谢谢
Ki