This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi, I have some questions concerning the data structures and and access functions used in some of the Motorware files
Using the MATH_vec2 data structure (in math.h) to obtain various motor measurement parameters using the access functions in files such as ctrl.c and park.h:
(in ctrl.c ctrl.h)
CTRL_getIab_in_pu(CTRL_Handle handle,MATH_vec2 *pIab_in_pu)
CTRL_getIdq_in_pu(CTRL_Handle handle,MATH_vec2 *pIdq_in_pu)
(in park.h)
void PARK_getPhasor(PARK_Handle handle,MATH_vec2 *pPhasor)
In the above code snip bit, what are the units of the values being put int he MATH_vec2 data structure? How do I convert them into engineering units such as amperes for current? Is there a document that explain what the access functions mean and their units?
Thanks in advance.
Hi Tom,
Good question.
Note that the next major update to InstaSPIN-FOC will be in floating-point and all variables will be in engineering units. For now we are working in fixed-point so values are shown as per-unit and you need to refer to the fixed-point scaling for the variable.
Converting from PU to engineering units are shown in the InstaSPIN-FOC user's guide, below is a good example from this document:
Jeff