Skip to content

Commit

Permalink
return control values
Browse files Browse the repository at this point in the history
  • Loading branch information
paulf81 committed Sep 11, 2019
1 parent b01231d commit c5b3ad4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions WTC_toolbox/control_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ def call_discon(self):
self.discon.DISCON(data_p, byref(self.aviFAIL), self.accINFILE, self.avcOUTNAME, self.avcMSG)

# Push back to avr swap
print(data_p[47])
print(self.avrSWAP[47])
# print(data_p[47])
# print(self.avrSWAP[47])
#for i in range(len(self.avrSWAP)):
# self.avrSWAP
#print('len',len(data_p),len(self.avrSWAP))
Expand All @@ -108,6 +108,8 @@ def call_controller(self,t,dt,pitch,genspeed,rotspeed,ws):
self.pitch = self.avrSWAP[41]
self.torque = self.avrSWAP[47]

return(self.torque,self.pitch)

def show_control_values(self):
print('Pitch',self.pitch)
print('Torque',self.torque)
Expand Down

0 comments on commit c5b3ad4

Please sign in to comment.