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?
Trigonometry functions for ESP32
-
- Posts: 353
- http://meble-kuchenne.info.pl
- Joined: Tue Dec 08, 2020 5:11 pm
- Has thanked: 101 times
- Been thanked: 70 times
-
- Matrix Staff
- Posts: 1952
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 510 times
- Been thanked: 698 times
Re: Trigonometry functions for ESP32
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
-
- Matrix Staff
- Posts: 1952
- Joined: Mon Dec 07, 2020 10:06 am
- Has thanked: 510 times
- Been thanked: 698 times
Re: Trigonometry functions for ESP32
Yes I've done that for you now, let me know if this is ok.
https://www.flowcode.co.uk/wiki/index.p ... _Functions
https://www.flowcode.co.uk/wiki/index.p ... _Functions
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel