I calculate angles from a 3-axis accelerometer, but my compiler does not have atan or atan2 functions. It has a reserved memory slot, but it calls a function that I cannot find in any files.
My Keil μVision 4 compiler works with the ARMCC compiler. Compilations have the math.h file, but the extern function does not exist:
extern _ARMABI double atan2(double , double );
Is there a lib or function that I can enable that executes the arctan function? Or is there an alternative function for calculating angles from an accelerometer? I need a full 3-axis angle calibration.
Edit: I was hoping to avoid a table full of pre-calculated values.
source share