2025-05-01 5:14 AM
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 */
Solved! Go to Solution.
2025-05-12 9:11 AM
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).
2025-05-12 9:11 AM
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).