Hi all,
I tried using the sine function with F28335, and the result is not what I'm expecting. I have included the rts2800_fpu32.lib, and math.h in the project, but still not working. Any suggestions?
Thanks,
Tim
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.
Tim said:I created a simple test project with this line of code:
test = sin(45.0);
and then looked at the value of test. It is not what it should be.
The sin() function takes an argument in radians, not degrees.
On a side note, check out the 28x FPU fastRTS library for a sin function that leverages a lookup table in the ROM for performance.
Regards
Lori
If a reply answers your question, please mark it with the "verify answer" button.