Tested and improved CC mode
This commit is contained in:
parent
958d82b414
commit
9b4857df1d
|
@ -530,8 +530,8 @@ int main(void)
|
||||||
fxp_t IGAIN_CV = fxp_from_float( 1.000f);
|
fxp_t IGAIN_CV = fxp_from_float( 1.000f);
|
||||||
fxp_t IERR_LIMIT = fxp_from_int(1000);
|
fxp_t IERR_LIMIT = fxp_from_int(1000);
|
||||||
|
|
||||||
fxp_t PGAIN_CC = fxp_from_float( 50.000f);
|
fxp_t PGAIN_CC = fxp_from_float(500.000f);
|
||||||
fxp_t IGAIN_CC = fxp_from_float( 0.300f);
|
fxp_t IGAIN_CC = fxp_from_float( 1.000f);
|
||||||
|
|
||||||
fxp_t CURRENT_THRESHOLD = fxp_from_float(0.001f);
|
fxp_t CURRENT_THRESHOLD = fxp_from_float(0.001f);
|
||||||
|
|
||||||
|
@ -765,6 +765,10 @@ int main(void)
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ConvConstCurrent:
|
case ConvConstCurrent:
|
||||||
|
if(time_in_state == 0) {
|
||||||
|
iErr = 0;
|
||||||
|
}
|
||||||
|
|
||||||
// bootstrap off
|
// bootstrap off
|
||||||
timer_set_oc_value(TIM1, TIM_CH_BOOTSTRAP, 0);
|
timer_set_oc_value(TIM1, TIM_CH_BOOTSTRAP, 0);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue