
Quadrirotor
Dependencies: CommonTypes ESC Matrix PID Servo kalman mbed-rtos mbed
Fork of Nucleo_MPU_9250 by
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:
-
x Number to constrain. min Minimum value. max Maximum value.
- Returns:
- A number between min and max.
Definition at line 26 of file MathFuncs.h.
Generated on Thu Jul 14 2022 23:17:31 by
