Hello,
Iam new to Tiva microcontrollers and 32-bit processing. I want to implement atan2 on my magnetometer readings. Iam using tivaware and the included libraries. I looked up at the "math.h" header file but couldnt find any trigonometric functions.
//relevant Code
MPU9150DataMagnetoGetFloat(&g_sMPU9150Inst, pfMag, pfMag + 1,
pfMag + 2);
double magX, magY;
magX = double (*pfMag);
magY = double *(pfMag+1);
double North;
North = atan2(magY, magX);
//
When i try to compile this code with arm-gcc i get the follwing error: "
warning: implicit declaration of function 'atan2' [-Wimplicit-function-declaration]
North = atan2(magY, magX);
"
I know i might be using wrong data types or my function call does not match the inbuilt function. Could anyone please help me find the header which has the function prototype