I would like to use some of math related function calls like pow, sin, sqrt...
But it seems math function doesn't work with SDK.
Either #include<math.h> on user_main or -lm on the Linker doesn't work too.
Do you have any idea to work them out?
http://moishelettvin.blogspot.com/2005/ ... posed.html
Indirectly it may relate to your question.
tinhaode wrote:sorry I can't open the url. could you copy some word?
What math functions would you like, How fast do they need to be?
Functions like Sin I think is 1 = x^2 + y^2 so I think if you take an argument you just do 1 - (arg)^2 = Value then SquareRoot that I think. Sorry I took trig like a year ago and it's already gone XD
@AgentSmithers: Indeed a kind of last resort solution would be to re-write the math functions (e.g. with Taylors series approximations, it's in the idea of what you proposed )
@tinhaode: did you managed to fin a solution ? I'm also trying to experiment with math functions, but I got linker errors. Maybe try using the limirom.a from the RTOS_SDK, it seemed to work for some folks...
https://bbs.espressif.com/viewtopic.php ... math#p3215
(failed with same error for me. I use a custom toolchain inspired from esp-open-sdk)
Who is online
Users browsing this forum: Bing [Bot] and 8 guests
Newbies Start Here
Are you new to ESP8266?
Unsure what to do?
Dunno where to start?
Start right here!
We also have a RTOS version and a MESH version too!
Complete listing of the official ESP8266 related documentation release by ESPRESSIF!
Must read here!