Part Number: LAUNCHXL-F280049C
Other Parts Discussed in Thread: C2000WARE-MOTORCONTROL-SDK, C2000WARE, MOTORWARE
Hello,
Need to print motor ID 3 tear controller status messages seen in debug Expressions view via java script. Oddly they are not part of the java script and seem debug simulator can port these (struct enum) status messages directly to expressions view pain. Is there some other file the estimator status messages are being staged?
Trying to print the speed controller motor ID messages to external device via est.h/ctrl.h inline calls gives "handle not defined" as it was never exported from isLAB's. And the controller (struct enum) status messages are not linked to motorVars shown code snip below. The status message sent at start of motor ID is only (k), versus expected Est_State_Online.
Has handle error been fixed in motor control SDK v4.02 and how could get ID status have not been made part of the est.h Inlines? Did SDK intend laptop computers CCS debug to determine each motor ID? Assume that was the case then assembly line workers use JTAG or CAN dongle rather than a lightweight handheld or application integrated motor ID when temperatures fall below freezing. We can't expect Lq/Ld inductance will be anywhere close to the values determined at room temperature or even desert heat conditions. Ideally motor ID process needs to be refined as highspeed runtime algorithms in the very near future. Though for now baby steps later jump into the fire with some real ammunition.
char EstCtrlState[30];
char EstState[30];
char TrajectState[30];
/* Synchronize current states */
EstCtrlState[0] = motorVars.ctrlState;
EstState[0] = motorVars.estState;
TrajectState[0] = motorVars.trajState;
EstCtrlState[0] = CTRL_getState(ctrlHandle); // Handle not defined error
//! \brief Gets the controller state
//! \param[in] handle The controller (CTRL) handle
//! \return The controller state
static inline CTRL_State_e CTRL_getState(CTRL_Handle handle)
{
CTRL_Obj *obj = (CTRL_Obj *)handle;
return(obj->state);
} // end of CTRL_getState() function