Lowered pwm_margin by 10

- to avoid virbation at maximum PWM = 1000, due to reduced Phase current accuracy, the pwm margin is lowered by 10.
Fixed #69
This commit is contained in:
EmanuelFeru 2020-06-23 20:13:05 +02:00
parent 5f2eb196af
commit 526cee4c0f
1 changed files with 1 additions and 1 deletions

View File

@ -45,7 +45,7 @@ extern ExtU rtU_Right; /* External inputs */
extern ExtY rtY_Right; /* External outputs */
// ###############################################################################
static int16_t pwm_margin = 100; /* This margin allows to always have a window in the PWM signal for proper Phase currents measurement */
static int16_t pwm_margin = 110; /* This margin allows to always have a window in the PWM signal for proper Phase currents measurement */
extern uint8_t ctrlModReq;
static int16_t curDC_max = (I_DC_MAX * A2BIT_CONV);