[Contributing][FOC] injected ADC and code clarity
Forums:
in the FOC code (mcpwm_foc.c), there is a variable called last_inj_adc_isr_duration.
My understanding, looking at the mcpwm_foc_init method is that injected ADC are not used (they are used in BLDC mode). Only regular conversion is used.
Also, that variable is updated in mcpwm_foc_adc_int_handler whereas the corresponding bldc variable is updated in mcpwm_adc_inj_int_handler, so it's all a bit misleading.
To make things more complicated, there is an interface method that blends the two concepts (mc_interface_get_last_inj_adc_isr_duration).
- Read more about [Contributing][FOC] injected ADC and code clarity
- 1 comment
- Log in or register to post comments

Hello everyone!