181 extern ANGLE_Handle
ANGLE_init(
void *pMemory,
const size_t numBytes);
182 extern ANGLE_Handle
cla_ANGLE_init(
void *pMemory,
const size_t numBytes);
345 #endif // end of _ANGLE_H_ definition
void ANGLE_setup(ANGLE_Handle handle, const int_least32_t timeStamp, const float_t angle_rad, const float_t speed_rps, const float_t accel_rps2)
Updates the angle generator with new data.
static void ANGLE_setTimeStampPeriod_sec(ANGLE_Handle handle, const float_t timeStampPeriod_sec)
Sets the time stamp period value.
static void ANGLE_setAngleWithDelay_rad(ANGLE_Handle handle, const float_t angle_rad)
Sets the angle value considering system delay.
Contains the public interface to the types definitions.
static void ANGLE_setAccelEst_rps2(ANGLE_Handle handle, const float_t accel_rps2)
Sets the estimated acceleration value.
struct _ANGLE_Obj_ * ANGLE_Handle
Defines the ANGLE handle.
static float_t ANGLE_getAccelEst_rps2(ANGLE_Handle handle)
Gets the estimated acceleration value.
int_least32_t timeStamp
the time stamp for the estimated angle and speed values
void ANGLE_run(ANGLE_Handle handle, const int_least32_t timeStamp)
Updates the angle value in the angle generator.
static float_t ANGLE_getSpeedEst_rps(ANGLE_Handle handle)
Gets the estimated speed value.
Contains the public interface to the math (MATH) module routines.
float_t angleDelayed_sf_sec
the scale factor for computing angle value considering system delay, sec
static void ANGLE_setTimeStamp(ANGLE_Handle handle, const int_least32_t timeStamp)
Sets the time stamp value for the estimated data.
float_t accelEst_rps2
the estimated angular acceleration value, rad/sec^2
static void ANGLE_setAngleEst_rad(ANGLE_Handle handle, const float_t angle_rad)
Sets the estimated angle value.
Contains the public interface to the estimator (EST) module routines.
static float_t ANGLE_getAngleDelayed_sf_sec(ANGLE_Handle handle)
Gets the scale factor for computing the delayed angle.
float_t speed_rps
the predicted angular speed value, rad/sec
Defines the angle generator (ANGLE) object.
struct _ANGLE_Obj_ ANGLE_Obj
Defines the angle generator (ANGLE) object.
static void ANGLE_setSpeedEst_rps(ANGLE_Handle handle, const float_t speed_rps)
Sets the estimated speed value.
static float_t ANGLE_getAngleEst_rad(ANGLE_Handle handle)
Gets the estimated angle value.
float_t angleEst_rad
the estimated angle value, rad
static float_t ANGLE_getSpeed_rps(ANGLE_Handle handle)
Gets the predicted speed value.
void cla_ANGLE_setup(ANGLE_Handle handle, const int_least32_t timeStamp, const float_t angle_rad, const float_t speed_rps, const float_t accel_rps2)
static float_t ANGLE_getTimeStampPeriod_sec(ANGLE_Handle handle)
Gets the time stamp period value.
float_t speedEst_rps
the estimated angular speed value, rad/sec
static void ANGLE_setSpeed_rps(ANGLE_Handle handle, const float_t speed_rps)
Sets the predicted speed value.
ANGLE_Handle ANGLE_init(void *pMemory, const size_t numBytes)
Initializes the angle generator (ANGLE) module.
float_t angle_rad
the predicted angle value, rad
float_t angleWithDelay_rad
the predicted angle value considering system delay, rad
static int_least32_t ANGLE_getTimeStamp(ANGLE_Handle handle)
Gets the time stamp value for the estimated data.
void ANGLE_setParams(ANGLE_Handle handle, const float_t timeStampPeriod_sec, const float_t angleDelayed_sf_sec)
Sets the parameters.
ANGLE_Handle cla_ANGLE_init(void *pMemory, const size_t numBytes)
static void ANGLE_setAngleDelayed_sf_sec(ANGLE_Handle handle, const float_t angleDelayed_sf_sec)
Sets the scale factor for computing the delayed angle.
float_t timeStampPeriod_sec
the time stamp period, sec
void cla_ANGLE_run(ANGLE_Handle handle, const int_least32_t timeStamp)
void cla_ANGLE_setParams(ANGLE_Handle handle, const float_t timeStampPeriod_sec, const float_t angleDelayed_sf_sec)
static float_t ANGLE_getAngleWithDelay_rad(ANGLE_Handle handle)
Gets the updated angle value considering system delay.
static float_t ANGLE_getAngle_rad(ANGLE_Handle handle)
Gets the predicted angle value.
static void ANGLE_setAngle_rad(ANGLE_Handle handle, const float_t angle_rad)
Sets the predicted angle value.
float float_t
Defines the portable data type for 32 bit, signed floating-point data.