Page 1 of 1
Trigonometry functions for ESP32
Posted: Thu Aug 03, 2023 5:40 pm
by MJU20
Is the ESP32 able to perform accurate trigonometry functions with FC10? I'm trying to use some ordinary cosine and sine functions, but I'm getting strange results.
Could there be something in the FC10 documentation (Wiki) that states if it uses radians instead of degrees?
Re: Trigonometry functions for ESP32
Posted: Thu Aug 03, 2023 9:09 pm
by BenR
Hello,
Cos and Sin programming functions will generally always use radians rather then degrees. Hope this helps. If you like you can convert your degrees to radians by multiplying by 0.0174533.
If it's still being strange then let us know and I'll investigate.
Re: Trigonometry functions for ESP32
Posted: Sun Aug 06, 2023 10:37 pm
by MJU20
Thanks BenR, can some please put the fact that these values are in radians on the Wiki?
For future generations?
Re: Trigonometry functions for ESP32
Posted: Mon Aug 07, 2023 11:50 am
by BenR
Yes I've done that for you now, let me know if this is ok.
https://www.flowcode.co.uk/wiki/index.p ... _Functions