Trig functions

Any general or miscellaneous queries that do not fit into the other forum catagories

Moderators: Benj, Mods

Post Reply
g-slocombe
Posts: 38
Joined: Fri Nov 07, 2008 12:57 pm
Has thanked: 7 times
Been thanked: 4 times
Contact:

Trig functions

Post by g-slocombe »

Is it possible to use trig functions eg: Sin, Cos in flowcode, for use with an electronic compass ?
cheers Gary

Sean
Valued Contributor
Valued Contributor
Posts: 548
Joined: Tue Jun 26, 2007 11:23 am
Has thanked: 6 times
Been thanked: 44 times
Contact:

Re: Trig functions

Post by Sean »

Which version of Flowcode are you using (PIC, AVR, or ARM)?

The postings under the 'Look-up tables' heading also discuss the use of data tables to store trig values to make the calculation process easier and quicker - if less accurate.

Flowcode for ARMs has direct support for floating-point variables and trig function.
Flowcode for AVR has similar support, but currently via C-code blocks. See http://www.matrixmultimedia.com/mmforum ... =23&t=6367
Flowcode for PIC V4 includes support for floating-point variables (due for release soon).

Post Reply