148 extern TRAJ_Handle
TRAJ_init(
void *pMemory,
const size_t numBytes);
228 intValue +=
MATH_sat(error,maxDelta,-maxDelta);
231 intValue =
MATH_sat(intValue,maxValue,minValue);
245 #endif // end of _TRAJ_H_ definition
Contains the public interface to the types definitions.
_iq maxDelta
the maximum delta value for the trajectory generator
static void TRAJ_setIntValue(TRAJ_Handle handle, const float_t intValue)
Sets the intermediate value for the trajectory.
Contains the public interface to the math (MATH) module routines.
_iq targetValue
the target value for the trajectory
struct _TRAJ_Obj_ TRAJ_Obj
Defines the trajectory (TRAJ) object.
static float_t MATH_sat(const float_t in, const float_t max, const float_t min)
Saturates the input value between the minimum and maximum values.
float_t maxDelta
the maximum delta value for the trajectory generator
TRAJ_Handle TRAJ_init(void *pMemory, const size_t numBytes)
Initializes the trajectory (TRAJ) object.
static void TRAJ_setTargetValue(TRAJ_Handle handle, const float_t targetValue)
Sets the target value for the trajectory.
static void TRAJ_run(TRAJ_Handle handle)
Runs the trajectory (TRAJ) object.
static void TRAJ_setMaxDelta(TRAJ_Handle handle, const float_t maxDelta)
Sets the maximum delta value for the trajectory.
static float_t TRAJ_getMinValue(TRAJ_Handle handle)
Gets the minimum value for the trajectory.
static float_t TRAJ_getMaxValue(TRAJ_Handle handle)
Gets the maximum value for the trajectory.
Defines the trajectory (TRAJ) object.
float_t targetValue
the target value for the trajectory
static float_t TRAJ_getTargetValue(TRAJ_Handle handle)
Gets the target value for the trajectory.
float_t minValue
the minimum value for the trajectory generator
float_t intValue
the intermediate value along the trajectory
static float_t TRAJ_getMaxDelta(TRAJ_Handle handle)
Gets the maximum delta value for the trajectory.
float_t maxValue
the maximum value for the trajectory generator
struct _TRAJ_Obj_ * TRAJ_Handle
Defines the TRAJ handle.
_iq maxValue
the maximum value for the trajectory generator
static void TRAJ_setMinValue(TRAJ_Handle handle, const float_t minValue)
Sets the minimum value for the trajectory.
_iq minValue
the minimum value for the trajectory generator
static float_t TRAJ_getIntValue(TRAJ_Handle handle)
Gets the intermediate value for the trajectory.
static void TRAJ_setMaxValue(TRAJ_Handle handle, const float_t maxValue)
Sets the maximum value for the trajectory.
float float_t
Defines the portable data type for 32 bit, signed floating-point data.
_iq intValue
the intermediate value along the trajectory