Skip to content

Commit

Permalink
fix minpitch saturation bug
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhar-abbas committed Dec 4, 2020
1 parent a7be52a commit 92d6410
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 @@ -193,7 +193,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] = min(self.min_pitch, f_cp_pitch(Cp_op[i]))
pitch_op[i] = max(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 92d6410

Please sign in to comment.