/* * math_pi.h * * Created on: 6 нояб. 2020 г. * Author: stud */ #ifndef SRC_LIBS_NIO12_MATH_PI_H_ #define SRC_LIBS_NIO12_MATH_PI_H_ #define CONST_SQRT3 29058990 //1.7320508075688772935274463415059 = sqrt(3) #define CONST_SQRT3_2 14529495 //1.7320508075688772935274463415059/2=0.8660254 = sqrt(3)/2 #define CONST_IQ_1 16777216 //1 #define CONST_IQ_2 33554432 //2 #define CONST_IQ_01 1677721 //0.1 #define CONST_IQ_02 3355442 //0.2 #define CONST_IQ_03 5033163 //0.3 #define CONST_IQ_04 6710884 //0.4 #define CONST_IQ_05 8388608 //0.5 #define CONST_IQ_06 10066329 //0.6 #define CONST_IQ_07 11744051 //0.7 #define CONST_IQ_08 13421772 //0.8 #define CONST_IQ_09 15099494 //0.9 #define CONST_IQ_PI6 8784530 //30 #define CONST_IQ_PI3 17569060 // 60 #define CONST_IQ_PI05 26353589 // 90 #define CONST_IQ_PI 52707178 // 180 //#define CONST_IQ_OUR1 35664138 // #define CONST_IQ_2PI 105414357 // 360 #define CONST_IQ_120G 35138119 // 120 grad #define CONST_IQ_3 50331648 // 3 //#define IQ_ALFA_SATURATION1 15099494//16441671//15099494 //#define IQ_ALFA_SATURATION2 1677721//16441671//15099494 #define PI 3.1415926535897932384626433832795 #endif /* SRC_LIBS_NIO12_MATH_PI_H_ */