diff --git a/src/ControllerBlocks.f90 b/src/ControllerBlocks.f90 index 0b2386b36..6528b26db 100644 --- a/src/ControllerBlocks.f90 +++ b/src/ControllerBlocks.f90 @@ -179,9 +179,10 @@ SUBROUTINE WindSpeedEstimator(LocalVar, CntrPar, objInst, PerfData, DebugVar) ! Find estimated operating Cp and system pole A_op = interp1d(CntrPar%WE_FOPoles_v,CntrPar%WE_FOPoles,v_h) - ! Find Cp - lambda = LocalVar%RotSpeedF * CntrPar%WE_BladeRadius/v_h - Cp_op = interp2d(PerfData%Beta_vec,PerfData%TSR_vec,PerfData%Cp_mat, LocalVar%PC_PitComTF*R2D, lambda) + ! TEST INTERP2D + lambda = LocalVar%RotSpeed * CntrPar%WE_BladeRadius/v_h + DebugVar%WE_Pitch = LocalVar%BlPitch(1) + Cp_op = interp2d(PerfData%Beta_vec,PerfData%TSR_vec,PerfData%Cp_mat, LocalVar%BlPitch(1)*R2D, lambda ) Cp_op = max(0.0,Cp_op) ! Update Jacobian