Skip to content

Commit

Permalink
Forgot setting Q-ref value
Browse files Browse the repository at this point in the history
  • Loading branch information
jsphuebner committed Dec 12, 2024
1 parent 6164ed0 commit 1e47015
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/pwmgeneration-foc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ void PwmGeneration::Run()
Param::SetFixed(Param::ifw, iexc);
dController.SetRef(idMtpa + Param::Get(Param::manualid));
excController.SetRef(exciterSpnt);
qController.SetRef(iqMtpa + Param::Get(Param::manualiq));
uint16_t pwm = excController.Run(iexc);
Param::SetInt(Param::uexc, pwm);
timer_set_oc_value(OVER_CUR_TIMER, TIM_OC4, pwm);
Expand Down

0 comments on commit 1e47015

Please sign in to comment.