cancel
Showing results for 
Search instead for 
Did you mean: 

How to use the function in MCTask.c?

itri532600
Associate II
Posted on September 10, 2015 at 02:57

If I would like to use the function ''FOC_CurrController'' in MCTask.c . 

How can I use this function? Because this function is not define in MCTask.h . Could I use this function to do motion control?

Thanks!
2 REPLIES 2
Gigi
ST Employee
Posted on September 10, 2015 at 09:08

Ciao Sapphira

The FOC_CurrController is only part of HighFrequencyTask and shouldn't be called alone by the user.

HighFrequencyTask is present in the intertface of MC Task.

Just one note.

The user shouldn't call neither the HighFrequencyTask by its user program. It is already called by the end of ADC conversion interrupt managed inside stm32fxxx_MC_it.c (calling twice one from interrupt and one from the user code can generate wrong behaviour).

The user shall call function only of MCInterface and MCTuning.

Ciao

Gigi

itri532600
Associate II
Posted on October 08, 2015 at 08:40

thanks!