Skip to main content
Associate III
May 1, 2025
Solved

Electrical angle interpolation option in MC WB

  • May 1, 2025
  • 1 reply
  • 373 views

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 */

 

 

Best answer by GMA

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).

1 reply

GMA
GMABest answer
Technical Moderator
May 12, 2025

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