as

Dependencies:   CommonTypes ESC Matrix PID Servo kalman mbed-rtos mbed

Fork of Nucleo_MPU_9250_ by Alan Huchin Herrera

Embed: (wiki syntax)

« Back to documentation index

MathFuncs Class Reference

MathFuncs Class Reference

Various useful maths related functions. More...

#include <MathFuncs.h>

Static Public Member Functions

static Int16 Constrain (Int16 x, Int16 min, Int16 max)
 Constrain a number to be between 2 values.

Detailed Description

Various useful maths related functions.

Definition at line 15 of file MathFuncs.h.


Member Function Documentation

static Int16 Constrain ( Int16  x,
Int16  min,
Int16  max 
) [static]

Constrain a number to be between 2 values.

Parameters:
xNumber to constrain.
minMinimum value.
maxMaximum value.
Returns:
A number between min and max.

Definition at line 26 of file MathFuncs.h.