Skip to content

Commit

Permalink
Read gains as single length lists
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhar-abbas committed Mar 21, 2020
1 parent d648d0a commit 276e813
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ROSCO_toolbox/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -814,8 +814,8 @@ def DISCON_dict(self, turbine, controller, txt_filename=None):
DISCON_dict['VS_RtTq'] = turbine.rated_torque
DISCON_dict['VS_RefSpd'] = controller.vs_refspd
DISCON_dict['VS_n'] = 1
DISCON_dict['VS_KP'] = controller.vs_gain_schedule.Kp[-1]
DISCON_dict['VS_KI'] = controller.vs_gain_schedule.Ki[-1]
DISCON_dict['VS_KP'] = [controller.vs_gain_schedule.Kp[-1]]
DISCON_dict['VS_KI'] = [controller.vs_gain_schedule.Ki[-1]]
DISCON_dict['VS_TSRopt'] = turbine.TSR_operational
# ------- SETPOINT SMOOTHER -------
DISCON_dict['SS_VSGain'] = controller.ss_vsgain
Expand Down Expand Up @@ -860,8 +860,8 @@ def DISCON_dict(self, turbine, controller, txt_filename=None):
DISCON_dict['Fl_Kp'] = controller.Kp_float
# ------- FLAP ACTUATION -------
DISCON_dict['Flp_Angle'] = controller.flp_angle
DISCON_dict['Flp_Kp'] = controller.Kp_flap[-1]
DISCON_dict['Flp_Ki'] = controller.Ki_flap[-1]
DISCON_dict['Flp_Kp'] = [controller.Kp_flap[-1]]
DISCON_dict['Flp_Ki'] = [controller.Ki_flap[-1]]
DISCON_dict['Flp_MaxPit'] = controller.flp_maxpit

return DISCON_dict

0 comments on commit 276e813

Please sign in to comment.