Skip to content

Commit

Permalink
no longer limit d-controller output to half amplitude. Can cause unwa…
Browse files Browse the repository at this point in the history
…nted regen
  • Loading branch information
jsphuebner committed Nov 16, 2021
1 parent 943a98c commit 58ef3e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pwmgeneration-foc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ void PwmGeneration::PwmInit()
qController.SetMinMaxY(-maxVd, maxVd);
dController.ResetIntegrator();
dController.SetCallingFrequency(pwmfrq);
dController.SetMinMaxY(-maxVd, maxVd / 2);
dController.SetMinMaxY(-maxVd, maxVd);
fwController.ResetIntegrator();
fwController.SetCallingFrequency(pwmfrq);
fwController.SetMinMaxY(-50 * Param::Get(Param::throtcur), 0); //allow 50% of max current for extra field weakening
Expand Down

0 comments on commit 58ef3e9

Please sign in to comment.