Skip to content

Commit

Permalink
Communicate torque to dll
Browse files Browse the repository at this point in the history
  • Loading branch information
nikhar-abbas committed Oct 8, 2019
1 parent 6accfe5 commit d47c8be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion WTC_toolbox/control_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def call_discon(self):
self.avrSWAP = data


def call_controller(self,t,dt,pitch,genspeed,rotspeed,ws):
def call_controller(self,t,dt,pitch,torque,genspeed,rotspeed,ws):
'''
Runs the controller. Passes current turbine state to the controller, and returns control inputs back
Expand All @@ -115,6 +115,7 @@ def call_controller(self,t,dt,pitch,genspeed,rotspeed,ws):
self.avrSWAP[1] = t
self.avrSWAP[2] = dt
self.avrSWAP[3] = self.pitch
self.avrSWAP[22] = torque
self.avrSWAP[19] = genspeed
self.avrSWAP[20] = rotspeed
self.avrSWAP[26] = ws
Expand Down

0 comments on commit d47c8be

Please sign in to comment.