Page 1 of 1
Trig functions
Posted: Thu Apr 30, 2009 12:40 pm
by g-slocombe
Is it possible to use trig functions eg: Sin, Cos in flowcode, for use with an electronic compass ?
cheers Gary
Re: Trig functions
Posted: Thu Apr 30, 2009 1:31 pm
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).