Tool/software: Code Composer Studio
Hi
I am doing float point calculation but I am getting an error when I compile the code.
float PI = 3.14159265358979323846f;
float GyroMeasError = PI * (60.0f / 180.0f);
float beta = sqrt(3.0f / 4.0f) * GyroMeasError;
The error occurs for the lines where the GyroMeasError and the beta are calculated.
error #28: expression must have a constant value
error #60: function call is not allowed in a constant expression
Thanks,
Fil