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.

Modify CTRL_Obj

If I use my own FOC functions like clarke and park transform. So the CLARKE_Handle, CLARKE_Obj, PARK_Handle and PARK_Obj from CTRL_Obj are not needed. Then can I delete them from CTRL_Obj with functions related to them?

  • No, you have to keep these objects in CTRL_Obj because IS-rom code uses these objects that can't be touched. If you want to use your own ctrl functions, you should make your own functions with another name and add at the end of CTRL_Obj. Hal object are also same with this rule.
  • Thanks for your reply!
    I have two questions about your reply.
    What is IS-rom you mentioned?
    After delete them from CTRL_Obj, code build in CCS has no problem, but run with faults. Why?
  • IS-rom stand for InstaSPIN ROM.
    As I mentioned, you have to keep these modules in CTRL_Obj even though CCS build has no problem because FAST ROM code use these functions. If you want to free from CTRL_Obj, pls use lab11x styles. However, you may still need CTRL_Obj for just estHandle initialization if you use F2806xF/M (FAST_ROM_V1p6).