If I want to include other libraries, do I have to use another letter?
I would like to know, is there trigonometric function viz Sin,Cos, Tan etc in Math.h or any other library of PSOC5?
Have we to create new header file for the trigonometric function?
Referring the below link referring the same but last update was in 2008.
This may help me to proceed for my purchase of PSOC5 kit from other delevelopment kit.
I am taking lazy appoach to answer, but make a quick sample testbench project,
do a library call, and see if it works. The beauty of our tools today is ability to
self test ideas quickly in a GUI environment.
I already used atan, sin etc, they (of course) work as expected. Just #include math.h
Use "-lm" as linker command line option.
I am using PSOC 4.0, trying to print values out of the code below
double x, y, result;
x = -10.0;
y = 10.0;
result = atan2 (y,x) * 180 / M_PI;
sprintf(dataPrint, "result %lf \r\n", result) ;
I am not able to print the float/double values. I have followed instructions on the link http://www.cypress.com/?id=4&rID=87354 and also increased the heap size. please let me know if I am missing on anything.
Do not use PutChar(), use PutString()
Thanks Bob. Silly mistake.. It works now..
You are always welcome with silly mistakes ;-))