![]() |
miniFOC 1.0.3
This open-source project aims to accomplish a FOC(Field Oriented Control) scheme that is operatable with minimum costs in China.
|
this file contains the code implementation of sine function value lookup table and fast calculation of sine value. More...
#include "fast_math.h"
Go to the source code of this file.
Functions | |
float | fast_sin (float theta) |
fast calculation of sine More... | |
Variables | |
const float | sin_tab [] |
fast sine function lookup table More... | |
this file contains the code implementation of sine function value lookup table and fast calculation of sine value.
Definition in file fast_math.c.
float fast_sin | ( | float | theta | ) |
fast calculation of sine
[in] | theta | angle to be calculated |
sine | value of angle theta |
Definition at line 72 of file fast_math.c.
References sin_tab.
Referenced by foc_calculate_dutycycle().
const float sin_tab[] |
fast sine function lookup table
Definition at line 15 of file fast_math.c.
Referenced by fast_sin().