Sensor Fusion Library 0.6.1
Orientation sensing for Espressif (ESP32, ESP8266) processors
Loading...
Searching...
No Matches
Functions
approximations.h File Reference

Math approximations file. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

float fasin_deg (float x)
 
float facos_deg (float x)
 
float fatan_deg (float x)
 
float fatan2_deg (float y, float x)
 
float fatan_15deg (float x)
 

Detailed Description

Math approximations file.

Significant efficiencies were found by creating a set of trig functions which trade off precision for improved power/CPU performance. Full details are included in Application Note AN5015: Trigonometry Approximations

Definition in file approximations.h.

Function Documentation

◆ facos_deg()

float facos_deg ( float  x)

Definition at line 43 of file approximations.c.

◆ fasin_deg()

float fasin_deg ( float  x)

Definition at line 28 of file approximations.c.

◆ fatan2_deg()

float fatan2_deg ( float  y,
float  x 
)

Definition at line 109 of file approximations.c.

◆ fatan_15deg()

float fatan_15deg ( float  x)

Definition at line 139 of file approximations.c.

◆ fatan_deg()

float fatan_deg ( float  x)

Definition at line 59 of file approximations.c.