cancel
Showing results for 
Search instead for 
Did you mean: 

Electrical angle interpolation option in MC WB

AnthonyK
Associate III

Hello,

I am trying to enable electrical angle interpolation option in MC WB for the hall sensor, however, I am not seeing any changes in the generated code. I think this option is related to the REV_PARK_ANGLE_COMPENSATION_FACTOR since it is used to calculate the electrical angle based on the speed. is it correct? if no, which part of the code is changed?

 

Thank you

/****** Hall sensors ************/
#define HALL_AVERAGING_FIFO_DEPTH           16 /*!< depth of the FIFO used to average  mechanical speed in 0.1Hz resolution */
#define HALL_MTPA                            false

/* USER CODE BEGIN angle reconstruction M1 */
#define PARK_ANGLE_COMPENSATION_FACTOR      0
#define REV_PARK_ANGLE_COMPENSATION_FACTOR  0
/* USER CODE END angle reconstruction M1 */

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
GMA
ST Employee

Hello @AnthonyK,

"Disable electrical angle interpolation" Workbench option will change the "HALL_MTPA" parameter definition.
It will enable or not "electrical angle interpolation" (refer to User Manual documentation available through "Workbench tool">About>Documentations>Documentation>"User manual" tab, "Hall sensor feedback processing" link, chapter 2).

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA

View solution in original post

1 REPLY 1
GMA
ST Employee

Hello @AnthonyK,

"Disable electrical angle interpolation" Workbench option will change the "HALL_MTPA" parameter definition.
It will enable or not "electrical angle interpolation" (refer to User Manual documentation available through "Workbench tool">About>Documentations>Documentation>"User manual" tab, "Hall sensor feedback processing" link, chapter 2).

If you agree with the answer, please accept it by clicking on 'Accept as solution'.
Best regards.
GMA