![Logo](ti_logo.svg) |
AM263x Motor Control SDK
09.02.00
|
|
Go to the documentation of this file.
54 #include "math_types.h"
57 typedef struct _SPDCALC_obj_
128 static __attribute__((always_inline))
139 if(obj->
err >= MATH_PI)
141 obj->
err = obj->
err - MATH_TWO_PI;
143 else if(obj->
err <= -MATH_PI)
145 obj->
err = obj->
err + MATH_TWO_PI;
163 if(obj->
fbk >= MATH_PI)
165 obj->
fbk = obj->
fbk - MATH_TWO_PI;
167 else if(obj->
fbk <= -MATH_PI)
169 obj->
fbk = obj->
fbk + MATH_TWO_PI;
191 #endif //end of SPEED_CALC_H definition
float32_t Ui
Definition: speedcalc.h:68
float32_t Kp
Definition: speedcalc.h:63
Definition: speedcalc.h:58
void SPDCALC_setParams(SPDCALC_Handle handle, const USER_Params *pUserParams)
Set the SPDCALC controller.
static float32_t SPDCALC_getSpeedHz(SPDCALC_Handle handle)
Set the SPDCALC controller.
Definition: speedcalc.h:114
float32_t Umin
Definition: speedcalc.h:66
float32_t speed_Hz
Definition: speedcalc.h:69
float32_t Up
Definition: speedcalc.h:67
Defines a structure for the user parameters.
Definition: userParams.h:75
float32_t Umax
Definition: speedcalc.h:65
float32_t out
Definition: speedcalc.h:62
void SPDCALC_reset(SPDCALC_Handle handle)
Set the SPDCALC controller.
float32_t err
Definition: speedcalc.h:61
static void SPDCALC_run(SPDCALC_Handle handle, float32_t theta)
Set the SPDCALC controller.
Definition: speedcalc.h:129
float32_t Ki
Definition: speedcalc.h:64
float32_t ref
Definition: speedcalc.h:59
struct _SPDCALC_obj_ * SPDCALC_Handle
Defines the ESMO handle.
Definition: speedcalc.h:75
SPDCALC_Handle SPDCALC_init(void *pMemory, const size_t numBytes)
Set the SPDCALC controller.
float32_t thetaDelta
Definition: speedcalc.h:70
Contains the public interface for the HAL and EST modules.
float32_t fbk
Definition: speedcalc.h:60
float float32_t
Definition: dcl_common.h:58