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.
Functions | Variables
fast_math.c File Reference

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...
 

Detailed Description

this file contains the code implementation of sine function value lookup table and fast calculation of sine value.

Author
Lao·Zhu
Version
V1.0.1
Date
10. October 2021

Definition in file fast_math.c.

Function Documentation

◆ fast_sin()

float fast_sin ( float  theta)

fast calculation of sine

Parameters
[in]thetaangle to be calculated
Return values
sinevalue of angle theta

Definition at line 72 of file fast_math.c.

References sin_tab.

Referenced by foc_calculate_dutycycle().

Variable Documentation

◆ sin_tab

const float sin_tab[]

fast sine function lookup table

Definition at line 15 of file fast_math.c.

Referenced by fast_sin().