Functions
imu_filter::utils Namespace Reference

Functions

template<typename T >
static T clamp (T value, T min, T max)
 clamp values to given range
static double deg2Rad (double v)
 conversion from degrees to radians
static double mix (double alpha, double a, double b)
 linear blending between two values
static double rad2Deg (double v)
 conversion from radians to degrees
template<typename T >
static int sign (T value)
 sign of a value
template<typename T >
static T square (T value)
 square of a value

Function Documentation

template<typename T >
static T imu_filter::utils::clamp ( value,
min,
max 
) [inline, static]

clamp values to given range

Parameters:
valuethe actual value which shall be clamped
minthe lower clamping border
maxthe upper clamping border
Returns:
the value within [min, max]

Definition at line 53 of file utils.h.

static double imu_filter::utils::deg2Rad ( double  v) [inline, static]

conversion from degrees to radians

Parameters:
vthe angle in degrees
Returns:
the angle in radians

Definition at line 74 of file utils.h.

static double imu_filter::utils::mix ( double  alpha,
double  a,
double  b 
) [inline, static]

linear blending between two values

Parameters:
alphablending factor (normally between 0 and 1)
athe first value
bthe second value
Returns:
alpha * a + ( 1 - alpha ) * b

Definition at line 90 of file utils.h.

static double imu_filter::utils::rad2Deg ( double  v) [inline, static]

conversion from radians to degrees

Parameters:
vthe angle in radians
Returns:
the angle in degrees

Definition at line 81 of file utils.h.

template<typename T >
static int imu_filter::utils::sign ( value) [inline, static]

sign of a value

Parameters:
valuethe value
Returns:
1 -> positive, 0 -> Zero, -1 -> negative

Definition at line 67 of file utils.h.

template<typename T >
static T imu_filter::utils::square ( value) [inline, static]

square of a value

Parameters:
valuethe value to square
Returns:
value^2

Definition at line 60 of file utils.h.



imu_filter
Author(s): Sebastian Klose
autogenerated on Thu Dec 12 2013 11:24:43