Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
pprz_trig_int.h File Reference
#include "std.h"
#include "math/pprz_algebra_int.h"
+ Include dependency graph for pprz_trig_int.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define PPRZ_TRIG_CONST
 Allow makefile to define PPRZ_TRIG_CONST in case we want to make the trig tables const and store them in flash. More...
 
#define PPRZ_ITRIG_SIN(_s, _a)
 
#define PPRZ_ITRIG_COS(_c, _a)
 

Variables

PPRZ_TRIG_CONST int16_t pprz_trig_int []
 

Macro Definition Documentation

#define PPRZ_ITRIG_SIN (   _s,
  _a 
)
Value:
{ \
int32_t an = _a; \
if (an > INT32_ANGLE_PI_2) an = INT32_ANGLE_PI - an; \
else if (an < -INT32_ANGLE_PI_2) an = -INT32_ANGLE_PI - an; \
if (an >= 0) _s = pprz_trig_int[an]; \
else _s = -pprz_trig_int[-an]; \
}
if(PrimarySpektrumState.SpektrumTimer)--PrimarySpektrumState.SpektrumTimer
#define INT32_ANGLE_PI_2
#define INT32_ANGLE_PI
PPRZ_TRIG_CONST int16_t pprz_trig_int[]
Definition: pprz_trig_int.c:24
#define INT32_ANGLE_NORMALIZE(_a)
signed long int32_t
Definition: types.h:19

Definition at line 40 of file pprz_trig_int.h.

Referenced by ahrs_int_get_euler_from_accel_mag(), ahrs_realign_heading(), ahrs_update_heading(), get_psi_measurement_from_mag(), gh_update_ref_from_pos_sp(), gh_update_ref_from_speed_sp(), guidance_h_traj_run(), nav_circle(), navigation_update_wp_from_speed(), stabilization_attitude_get_heading_i(), stabilization_attitude_read_rc_setpoint_eulers(), and stabilization_attitude_set_failsafe_setpoint().

#define PPRZ_TRIG_CONST

Allow makefile to define PPRZ_TRIG_CONST in case we want to make the trig tables const and store them in flash.

Otherwise use the empty string and keep the table in RAM.

Definition at line 32 of file pprz_trig_int.h.

Variable Documentation

PPRZ_TRIG_CONST int16_t pprz_trig_int[]

Definition at line 24 of file pprz_trig_int.c.