Other Parts Discussed in Thread: MOTORWARE
In CTRL_Obj definition, there is a note:
// NOTE: APPENDING ONLY WORKS BECAUSE WE HAVE ALLOCATED TWO CONTROLLERS IN PROTECTED RAM AND WE ARE ONLY USING THE FIRST ONE
MATH_vec2 Idq_offset_pu; //!< the Idq offset values, pu
MATH_vec2 Vdq_offset_pu; //!< the Vdq offset values, pu
_iq angle_pu; //!< the angle value, pu
_iq speed_ref_pu; //!< the speed reference, pu
_iq speed_fb_pu; //!< the feedback speed value, pu
_iq speed_outMax_pu; //!< the maximum output of the speed PI control, pu
bool flag_enableCurrentCtrl; //!< a flag to enable the current controllers
If I use FAST to control two motors, I need define two control handles, like this:
CTRL_Handle ctrlHandle[2];
But the note shows the parameters are used in only-one-controller case, so How should I deal with the parameters below the note in CTRL_Obj definition, delete them ?