I am building a quadcopter with an ESP8266 as a flight controller. In theory is could work. For the 'transmitter' Blynk over wifi is used (via a Raspberry Pi Blynk server). An MPU6050 sensor is used for balancing.
But it seems the ESP8266 math.h library (from Arduino IDE) is missing the sqrt() function necessary to calculate angles.
Anyone knows where to find a math.h library with the sqrt function, or knows a way to calculate angles (from an accellerometer G value) without need of a square root, or has a suggestion of any other way to get there.
I am looking into this problem for a few weeks now and I'm getting a bit frustrated . And it would be a pitty not being able to use our favorite controller.
thanks