Defines | Enumerations | Functions
defs.h File Reference
#include <math.h>
Include dependency graph for defs.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define deg2rad(x)   ((x)*M_PI/180)
#define LPF(dT, omega, x, y)   ((y) = (((dT)*(omega)/(1+(dT)*(omega)))*(x)+1/(1+(dT)*(omega))*(y)))
#define rad2deg(x)   ((x)*180/M_PI)
#define sgn(x)   (((x)>0)?1:-1)
#define sqr(x)   ((x)*(x))

Enumerations

enum  { INSIDE, OUTSIDE }
enum  { RL, FB }
enum  { RLEG, LLEG }
enum  {
  FX, FY, FZ, MX,
  MY, MZ
}
enum  { X, Y, Z }
enum  { WX, WY, WZ }
enum  { TOE, HEEL }

Functions

template<class T >
void DEADZONE (T &org, const T &min_, const T &max_)
void DEADZONE (double &org, const double min_, const double max_)
void HYSTERESIS (double &newv, const double old, const double min_, const double max_)
void LIMIT (double &org, const double max_)
template<class T >
void LIMITER (T &org, const T &min_, const T &max_)
void LIMITER (double &org, const double min_, const double max_)
void LIMITER (int &org, const int min_, const int max_)

Define Documentation

#define deg2rad (   x)    ((x)*M_PI/180)

Definition at line 15 of file defs.h.

#define LPF (   dT,
  omega,
  x,
  y 
)    ((y) = (((dT)*(omega)/(1+(dT)*(omega)))*(x)+1/(1+(dT)*(omega))*(y)))

Definition at line 18 of file defs.h.

#define rad2deg (   x)    ((x)*180/M_PI)

Definition at line 16 of file defs.h.

#define sgn (   x)    (((x)>0)?1:-1)

Definition at line 14 of file defs.h.

#define sqr (   x)    ((x)*(x))

Definition at line 17 of file defs.h.


Enumeration Type Documentation

anonymous enum
Enumerator:
INSIDE 
OUTSIDE 

Definition at line 11 of file defs.h.

anonymous enum
Enumerator:
RL 
FB 

Definition at line 12 of file defs.h.

anonymous enum
Enumerator:
RLEG 
LLEG 

Definition at line 6 of file defs.h.

anonymous enum
Enumerator:
FX 
FY 
FZ 
MX 
MY 
MZ 

Definition at line 7 of file defs.h.

anonymous enum
Enumerator:
X 
Y 
Z 

Definition at line 8 of file defs.h.

anonymous enum
Enumerator:
WX 
WY 
WZ 

Definition at line 9 of file defs.h.

anonymous enum
Enumerator:
TOE 
HEEL 

Definition at line 10 of file defs.h.


Function Documentation

template<class T >
void DEADZONE ( T org,
const T min_,
const T max_ 
)

Definition at line 33 of file defs.h.

void DEADZONE ( double &  org,
const double  min_,
const double  max_ 
) [inline]

Definition at line 73 of file defs.h.

void HYSTERESIS ( double &  newv,
const double  old,
const double  min_,
const double  max_ 
) [inline]

Definition at line 84 of file defs.h.

void LIMIT ( double &  org,
const double  max_ 
) [inline]

Definition at line 46 of file defs.h.

template<class T >
void LIMITER ( T org,
const T min_,
const T max_ 
)

Definition at line 21 of file defs.h.

void LIMITER ( double &  org,
const double  min_,
const double  max_ 
) [inline]

Definition at line 55 of file defs.h.

void LIMITER ( int org,
const int  min_,
const int  max_ 
) [inline]

Definition at line 64 of file defs.h.



hrpsys
Author(s): AIST, Fumio Kanehiro
autogenerated on Wed May 15 2019 05:02:19