Part Number:TMS320F28069M
Tool/software: Code Composer Studio
Hello
I am having problem building/linking my modified 13f lab. The description is:
![]()
The following is a simplification of the code:
----------------------------------------------------------------------------------------------------------------------
proj_lab13f.c:
#include"sw/modules/ctrl/src/32b/ctrlHALL_2mtr.h"
_iqCTRL_getSpd_int_ref_pu();
_iqCTRL_getIq_in_pu();
.
.
.
OBSERVER_run(observerHandle[HAL_MTR1], gTheta1, CTRL_getIq_in_pu(ctrlHandle));
if( CTRL_getSpd_int_ref_pu(ctrlHandle) == _IQ(0.))
{
OBSERVER_resetValues(observerHandle[HAL_MTR1]);
}
--------------------------------------------------------------------------------------------------------------------------
ctrlHALL_2mtr.h:
inline_iqCTRL_getIq_in_pu(CTRL_Handle handle)
{
CTRL_Obj *obj = (CTRL_Obj *)handle;
return(obj->Idq_in.value[1]);
} // end of CTRL_getIq_in_pu() function
inline_iqCTRL_getSpd_int_ref_pu(CTRL_Handle handle)
{
CTRL_Obj *obj = (CTRL_Obj *)handle;
return(TRAJ_getIntValue(obj->trajHandle_spd));
} // end of CTRL_getSpd_int_ref_pu() function
----------------------------------------------------------------------------------------------------------------------------
Please any help appreciated.
Thanks