Home
last modified time | relevance | path

Searched refs:M_PI (Results 1 – 25 of 31) sorted by relevance

12

/AliOS-Things-master/components/ai_agent/src/engine/tflite-micro/tensorflow/lite/experimental/microfrontend/lib/
A Dwindow_util.c23 #ifndef M_PI
24 #define M_PI 3.14159265358979323846 macro
44 const float arg = M_PI * 2.0 / ((float)state->size); in WindowPopulateState()
/AliOS-Things-master/hardware/board/haaseduk1/drivers/sensor/
A Ddrv_mag_qst_qmc5883l.h53 #ifndef M_PI
54 #define M_PI 3.14159265358979323846264338327950288 macro
A Ddrv_acc_gyro_qst_qmi8610.h13 #ifndef M_PI
14 #define M_PI (3.14159265358979323846f) macro
A Ddrv_acc_gyro_qst_qmi8610.c374 gyro_t[AXIS_X] = (float)(raw_gyro_xyz[AXIS_X] * M_PI / 180) / gyro_lsb_div; // *pi/180 in FisImu_read_xyz()
375 gyro_t[AXIS_Y] = (float)(raw_gyro_xyz[AXIS_Y] * M_PI / 180) / gyro_lsb_div; in FisImu_read_xyz()
376 gyro_t[AXIS_Z] = (float)(raw_gyro_xyz[AXIS_Z] * M_PI / 180) / gyro_lsb_div; in FisImu_read_xyz()
398 applyScaleFactor((float)(M_PI / (gyro_lsb_div * 180)), 3, rawData, calibratedData); in FisImu_processGyroscopeData()
471 const float conversionFactor = (unit == GyrUnit_rads) ? 180 / M_PI : 1; in FisImu_applyGyroscopeOffset()
A Ddrv_mag_qst_qmc5883l.c196 int heading = 180.0 * atan2(x_fit, y_fit) / M_PI; in qmc5883l_readHeading()
A Ddrv_mag_qst_qmc6310.c270 int heading = 180.0 * atan2(x_fit, y_fit) / M_PI; in qmc6310_readHeading()
/AliOS-Things-master/components/SDL2/src/gfx/
A DSDL_rotozoom.h40 #ifndef M_PI
41 #define M_PI 3.141592654 macro
A DSDL_gfxPrimitives.h34 #ifndef M_PI
35 #define M_PI 3.1415926535897932384626433832795 macro
A DSDL_gfxPrimitives.c3226 temp = sin(dstart * M_PI / 180.); in arcColor()
3230 temp = cos(dstart * M_PI / 180.); in arcColor()
3234 temp = -cos(dstart * M_PI / 180.); in arcColor()
3238 temp = -sin(dstart * M_PI / 180.); in arcColor()
3258 temp = sin(dend * M_PI / 180); in arcColor()
3262 temp = cos(dend * M_PI / 180); in arcColor()
3266 temp = -cos(dend * M_PI / 180); in arcColor()
3270 temp = -sin(dend * M_PI / 180); in arcColor()
4622 start_angle = (double) start *(2.0 * M_PI / 360.0); in _pieColor()
4623 end_angle = (double) end *(2.0 * M_PI / 360.0); in _pieColor()
[all …]
/AliOS-Things-master/solutions/tflite_micro_speech_demo/micro_speech/simple_features/fixed_point/
A Dsimple_features_generator.cc92 FloatToFixed_Q2_30(cos(j * i * M_PI * 2 / time_series_size)); in CalculateDiscreteFourierTransform()
98 FloatToFixed_Q2_30(sin(j * i * M_PI * 2 / time_series_size)); in CalculateDiscreteFourierTransform()
111 const float real_value = (0.5 - 0.5 * cos((2 * M_PI * i) / window_length)); in CalculatePeriodicHann()
/AliOS-Things-master/components/py_engine/engine/py/
A Dobjfloat.c46 #ifndef M_PI
47 #define M_PI (3.14159265358979323846) macro
56 const mp_obj_float_t mp_const_float_pi_obj = {{&mp_type_float}, (mp_float_t)M_PI};
/AliOS-Things-master/components/amp/modules/
A Dqlc5883.js56 var M_PI = 3.14159265358979323846264338327950288 variable
329 var heading = 180.0 * Math.atan2(x_fit, y_fit) / M_PI;
/AliOS-Things-master/components/py_engine/framework/
A Dqmc5883.py68 M_PI = 3.14159265358979323846264338327950288 variable
299 heading = 180.0 * math.atan2(x_fit, y_fit) / M_PI;
/AliOS-Things-master/solutions/eduk1_demo/k1_apps/compass/
A Dcompass.md196 atan2(x_fit, y_fit) * 180.0 / M_PI;
282 int heading = 180.0 * atan2(x_fit, y_fit) / M_PI;
/AliOS-Things-master/components/SDL2/src/events/
A DSDL_gesture.c307 double ta = -M_PI/4; in bestDollarDifference()
308 double tb = M_PI/4; in bestDollarDifference()
309 double dt = M_PI/90; in bestDollarDifference()
/AliOS-Things-master/components/SDL2/src/haptic/linux/
A DSDL_syshaptic.c42 #ifndef M_PI
43 # define M_PI 3.14159265358979323846 macro
727 tmp = (((Sint32) (f * 18000. / M_PI)) + 45000) % 36000; in SDL_SYS_ToDirection()
/AliOS-Things-master/components/SDL2/src/stdlib/
A DSDL_stdlib.c82 result = M_PI; in SDL_acos()
87 result += M_PI; in SDL_acos()
112 result = -(M_PI / 2.0); in SDL_asin()
114 result = (M_PI / 2.0) - SDL_acos(val); in SDL_asin()
/AliOS-Things-master/components/SDL2/include/
A DSDL_stdinc.h508 #ifndef M_PI
509 #define M_PI 3.14159265358979323846264338327950288 /**< pi */ macro
/AliOS-Things-master/components/SDL2/src/sensor/windows/
A DSDL_windowssensor.c183 const float DEGREES_TO_RADIANS = (float)(M_PI / 180.0f); in ISensorEventsVtbl_OnDataUpdated()
/AliOS-Things-master/components/SDL2/src/image/external/tiff-4.0.9/libtiff/
A Dtif_luv.c737 #ifndef M_PI
738 #define M_PI 3.14159265358979323846 macro
857 #define uv2ang(u, v) ( (NANGLES*.499999999/M_PI) \
/AliOS-Things-master/components/SDL2/test/
A Dtestvulkan.c1073 clearColor.float32[1] = (float)(0.5 + 0.5 * SDL_sin(currentTime + M_PI * 2 / 3)); in render()
1074 clearColor.float32[2] = (float)(0.5 + 0.5 * SDL_sin(currentTime + M_PI * 4 / 3)); in render()
A Dtestgles2.c112 radians = (float)(angle * M_PI) / 180.0f; in rotate_matrix()
/AliOS-Things-master/components/SDL2/src/render/software/
A DSDL_rotate.c135 … radangle = angle * (M_PI / -180.0); /* reverse the angle because our rotations are clockwise */ in SDLgfx_rotozoomSurfaceSizeTrig()
/AliOS-Things-master/components/SDL2/src/render/direct3d11/
A DSDL_render_d3d11.c1819 verts->pos.z = (float)(M_PI * (float) angle / 180.0f); /* rotation */ in D3D11_QueueCopyEx()
1938 projection = MatrixRotationZ(SDL_static_cast(float, M_PI * 0.5f)); in D3D11_UpdateViewport()
1941 projection = MatrixRotationZ(SDL_static_cast(float, M_PI)); in D3D11_UpdateViewport()
1944 projection = MatrixRotationZ(SDL_static_cast(float, -M_PI * 0.5f)); in D3D11_UpdateViewport()
/AliOS-Things-master/components/SDL2/src/audio/
A DSDL_audiocvt.c422 … const float x = (((float) i) / ((float) RESAMPLER_SAMPLES_PER_ZERO_CROSSING)) * ((float) M_PI); in kaiser_and_sinc()

Completed in 60 milliseconds

12