"hidden" variable `dead_time` added to leg1 and 2 duty cycle.
a dead time variable is added in `owntech_leg_driver.cpp' file
void leg_set(hrtim_tu_t timing_unit, uint16_t pulse_width, uint16_t phase_shift)
{
//addition of the dead time for the rectification of the centered dead time configuration cf:hrtim_pwm_dt()
pulse_width = pulse_width + dead_time;
For the end user, it is no so evident this variable exist and is added to duty cycle.
Proposed solutions:
- remove this addition et let the end user to fix the duty cycle he wants.
or
- find a way to give more visibility.
note: during motor control with ownverter this addition generate unbalanced because it was not added on the third leg.