请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
器件型号:TMS320F28075 工具/软件:Code Composer Studio
您好!
我想使用 fastRTS 库并按照说明进行安装。 代码很简单、如下所示:
#include "F28x_Project.h"//设备头文件和示例 include 文件
#include "C28x_FPU_FastRTS.h"
#include "math.h"
float theta、sin_theta、sin_theta_1、cos_theta、cos_theta_1;
void main (void)
{
Theta = 0.0143617708;
SinCos (theta、&Sin_theta、&Cos_theta);
Sin_theta_1 = sinf (theta);
cos_theta_1 = cosf (theta);
while (1){}
}
但是 sincos()函数不能正确派生 sine_theta 和 cos_theta。 (与 sinf()和 cosf()结果相比较)
以下是与 fastRTS 库相关的 CMD 文件和设置。
随附的文件是我的项目文件。 请帮我找出问题所在。 提前感谢您!




