Skip to content

Commit

Permalink
added droop setcontroller
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasmees committed Jul 19, 2023
1 parent a49e278 commit 25d7c0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dpsim-models/src/EMT/EMT_Ph3_VSIVoltageControlDroop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ void EMT::Ph3::VSIVoltageControlDroop::setControllerParameters(Real Kp_voltageCt
mSLog->info("Voltage Loop: K_p = {}, K_i = {}", Kp_voltageCtrl, Ki_voltageCtrl);
mSLog->info("Current Loop: K_p = {}, K_i = {}", Kp_currCtrl, Ki_currCtrl);

// TODO: add and use Omega_nominal instead of Omega_cutoff
mDroop->setParameters(PowerSet, Omega_nominal);
//mDroop->setControllerParameters(mTaup, mTaui, mp);
mVoltageControllerVSI->setControllerParameters(Kp_voltageCtrl, Ki_voltageCtrl, Kp_currCtrl, Ki_currCtrl, Omega_nominal);
}

Expand Down
2 changes: 1 addition & 1 deletion dpsim-models/src/Signal/Droop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ void Droop::setParameters(Real powerSet, Real omegaNom) {
mOmegaNom = omegaNom;
mPowerSet = powerSet;

mSLog->info("Omega Nominal = {}, Power Set Point = {}", mPowerSet, mOmegaNom);
mSLog->info("Omega Nominal = {}, Power Set Point = {}", mOmegaNom, mPowerSet);
}

//setter for controller parameters and setting up of system matrices
Expand Down

0 comments on commit 25d7c0e

Please sign in to comment.