Skip to content

Commit

Permalink
Write KD TF gains
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhar-abbas committed Sep 27, 2019
1 parent 9548279 commit 381f5e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions WTC_toolbox/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ class containing
file.write('{} ! PC_GS_angles - Gain-schedule table: pitch angles\n'.format(str(controller.pitch_op_pc).strip('[]').replace('\n','')))
file.write('{} ! PC_GS_KP - Gain-schedule table: pitch controller kp gains\n'.format(str(controller.pc_gain_schedule.Kp).strip('[]').replace('\n','')))
file.write('{} ! PC_GS_KI - Gain-schedule table: pitch controller ki gains\n'.format(str(controller.pc_gain_schedule.Ki).strip('[]').replace('\n','')))
file.write('0 ! PC_GS_KD - Gain-schedule table: pitch controller kd gains\n')
file.write('0 ! PC_GS_TF - Gain-schedule table: pitch controller tf gains (derivative filter)\n')
file.write('{} ! PC_GS_KD - Gain-schedule table: pitch controller kd gains\n'.format(str(np.zeros(len(controller.pitch_op_pc))).strip('[]').replace('\n','')))
file.write('{} ! PC_GS_TF - Gain-schedule table: pitch controller tf gains (derivative filter)\n'.format(str(np.zeros(len(controller.pitch_op_pc))).strip('[]').replace('\n','')))
file.write('1.5707 ! PC_MaxPit - Maximum physical pitch limit, [rad].\n')
file.write('-0.087266 ! PC_MinPit - Minimum physical pitch limit, [rad].\n')
file.write('0.13962 ! PC_MaxRat - Maximum pitch rate (in absolute value) in pitch controller, [rad/s].\n')
Expand Down Expand Up @@ -290,7 +290,7 @@ class containing
file.write('97 ! WE_GearboxRatio - Gearbox ratio [>=1], [-]\n')
file.write('4.0469564E+07 ! WE_Jtot - Total drivetrain inertia, including blades, hub and casted generator inertia to LSS, [kg m^2]\n')
file.write('1.225 ! WE_RhoAir - Air density, [kg m^-3]\n')
file.write('"../5MW_Baseline/ServoData/Cp_Ct_Cq.txt" ! PerfFileName - File containing rotor performance tables (Cp,Ct,Cq)\n')
file.write('"../5MW_Baseline/Cp_Ct_Cq.txt" ! PerfFileName - File containing rotor performance tables (Cp,Ct,Cq)\n')
file.write('320 40 ! PerfTableSize - Size of rotor performance tables, first number refers to number of blade pitch angles, second number referse to number of tip-speed ratios\n')
file.write('23 ! WE_FOPoles_N - Number of first-order system poles used in EKF\n')
file.write('3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 ! WE_FOPoles_v - Wind speeds corresponding to first-order system poles [m/s]\n')
Expand Down

0 comments on commit 381f5e8

Please sign in to comment.