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.
Tool/software: Code Composer Studio
Hello,
At the moment i'm trying to create a Fall Detection program with the "People Counting" demo code.
But i'm kinda stuck with calculating the Z coordinate of a object.
First i thought that i made a mistake in my code, but after several tests i think i found the mistake in the "sinf(float)" math function:
Normally when you put 90 into a sin function you get the number 1.
But i get a 0.8939 instead of a 1.
When i calculated the actual angle i got a different number then the original 90 degree.
Did i make a mistake somewhere? or did use the wrong sin function?
I use this libraries to use in my program:
Regards,
Max
Hi again,
Apparently the Sinf function gets a Radians input instead of Degrees.
So when i put 90 into the function i got the right answer if my input was in Radians:
Sorry for the message.
Regards,
Max
Hi Max,
Glad you got it sorted. The output from the DSP is in radians, so hopefully this makes it easier for you.
Regards,
Justin