Skip to content

Commit

Permalink
Revert "fix minpitch saturation bug"
Browse files Browse the repository at this point in the history
This reverts commit 92d6410.
  • Loading branch information
nikhar-abbas committed Jan 26, 2021
1 parent 34b427c commit 71565e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ROSCO_toolbox/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ def tune_controller(self, turbine):
f_cp_pitch = interpolate.interp1d(Cp_TSR,pitch_initial_rad) # interpolate function for Cp(tsr) values
# expected operation blade pitch values
if v[i] <= turbine.v_rated and isinstance(self.min_pitch, float): # Below rated & defined min_pitch
pitch_op[i] = max(self.min_pitch, f_cp_pitch(Cp_op[i]))
pitch_op[i] = min(self.min_pitch, f_cp_pitch(Cp_op[i]))
elif isinstance(self.min_pitch, float):
pitch_op[i] = max(self.min_pitch, f_cp_pitch(Cp_op[i]))
else:
Expand Down

0 comments on commit 71565e1

Please sign in to comment.