06-08-2018, 05:41 AM

I am using STM32F407VGT6 with Embitz.

The board contains an accelerometer, which I have successfully used previously with a STM32F103.

Calculation of the roll and pitch requires the function atan2.

On the STM32F4 I get "undefined reference to `atan2'"

I have included <math.h>

Any help greatly appreciated

Thank you

Johan Smit

The board contains an accelerometer, which I have successfully used previously with a STM32F103.

Calculation of the roll and pitch requires the function atan2.

On the STM32F4 I get "undefined reference to `atan2'"

I have included <math.h>

Any help greatly appreciated

Thank you

Johan Smit