Author |
Message |
Topic: using float64 and cos; sin; acos and asin |
longtu
Replies: 21
Views: 30613
|
Forum: General CCS C Discussion Posted: Fri May 04, 2012 5:45 am Subject: using float64 and cos; sin; acos and asin |
I am using PIC18F26K22. Do you think my problem cause by PIC18F26K22? |
Topic: using float64 and cos; sin; acos and asin |
longtu
Replies: 21
Views: 30613
|
Forum: General CCS C Discussion Posted: Fri May 04, 2012 3:21 am Subject: using float64 and cos; sin; acos and asin |
Dear Ttemah,
I have just test your code(using CCS V4.114). The result is WRONG.
http://i657.photobucket.com/albums/uu294/longtupic/Testcode.jpg |
Topic: using float64 and cos; sin; acos and asin |
longtu
Replies: 21
Views: 30613
|
Forum: General CCS C Discussion Posted: Fri May 04, 2012 3:10 am Subject: using float64 and cos; sin; acos and asin |
Dear Ttemah,
Could you please test your code with distance less than 50m. Example:
- Point 1: (0.0002,0)
- Point 2: (0.0000,0)
I want to detect with between 10 - 50m only.
Thanks you adva ... |
Topic: using float64 and cos; sin; acos and asin |
longtu
Replies: 21
Views: 30613
|
Forum: General CCS C Discussion Posted: Thu May 03, 2012 11:07 am Subject: using float64 and cos; sin; acos and asin |
Thanks for your all answer.
I think this problem cause by all trigonometrical functions will be answer approximations value. And limits of digit by float type in CCS.
Here is my solution for my ... |
Topic: using float64 and cos; sin; acos and asin |
longtu
Replies: 21
Views: 30613
|
Forum: General CCS C Discussion Posted: Thu May 03, 2012 6:22 am Subject: using float64 and cos; sin; acos and asin |
Dear RF_Developer,
That is a big help. Thank you very much with your explaination. Now, I know that all trigonemtrical functions will be received the approximations result. BUT I need the the near ... |
Topic: using float64 and cos; sin; acos and asin |
longtu
Replies: 21
Views: 30613
|
Forum: General CCS C Discussion Posted: Thu May 03, 2012 2:26 am Subject: using float64 and cos; sin; acos and asin |
Hi Jochen Kochner,
I have the same problem when to use sin(), cos(), acos()...in CCS. Did you have a solution for this?
Thanks for your answer quickly. |
|