Skip to content

Commit

Permalink
Saturate torque controller at rated torque
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhar-abbas committed Sep 20, 2019
1 parent f32cf39 commit b2e9d02
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/Controllers.f90
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ SUBROUTINE VariableSpeedControl(avrSWAP, CntrPar, LocalVar, objInst)
IF (LocalVar%VS_State >= 4) THEN
VS_MaxTq = CntrPar%VS_RtTq
ELSE
VS_MaxTq = CntrPar%VS_MaxTq
! VS_MaxTq = CntrPar%VS_MaxTq
VS_MaxTq = CntrPar%VS_RtTq
ENDIF
LocalVar%GenTq = PIController(LocalVar%VS_SpdErr, CntrPar%VS_KP(1), CntrPar%VS_KI(1), CntrPar%VS_MinTq, VS_MaxTq, LocalVar%DT, CntrPar%VS_MaxOMTq, .FALSE., objInst%instPI)

Expand Down

0 comments on commit b2e9d02

Please sign in to comment.