Skip to content

Commit e8eaf6c

Browse files
author
Unknown
committed
Some restructuring
1 parent da353b1 commit e8eaf6c

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

subfunctions/Linearization.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,6 @@ function LinRotations_CreateFcn(hObject, eventdata, handles)
340340

341341
% --- Executes on button press in LinearizeAboveRatedOnly_checkbox.
342342
function LinearizeAboveRatedOnly_checkbox_Callback(hObject, eventdata, handles)
343-
% Hint: get(hObject,'Value') returns toggle state of LinearizeAboveRatedOnly_checkbox
344343
if get(hObject,'Value')
345344
% Set above-rated wind speed region
346345
SetFullLoad_Callback(hObject, eventdata, handles)

subfunctions/ServoDyn.m

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,15 @@ function ServoDyn(Drivetrain,Control,mode,varargin)
1313
VS_RtTq = Control.Torque.Demanded;
1414

1515
if strcmpi(mode,'Linearize')
16-
VSContrl = 1;
1716
PCMode = 0;
17+
VSContrl = 1;
1818
HSSBrMode = 0;
1919

2020
VS_RtGnSp = Control.Torque.SpeedC;
21-
2221
VS_Rgn2K = (pi/30)^2 * Control.Torque.OptGain;
2322
elseif strcmpi(mode,'LinearizeAboveRated')
24-
VSContrl = 1;
2523
PCMode = 0;
24+
VSContrl = 1;
2625
HSSBrMode = 0;
2726

2827
VS_RtGnSp = 1e-6;

0 commit comments

Comments
 (0)