Skip to content

Commit

Permalink
Correct wrong time taking, #77
Browse files Browse the repository at this point in the history
  • Loading branch information
MBaranskiEBC committed May 11, 2020
1 parent 157e4ed commit cb2ad0b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pyDMPC/ControlFramework/System.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ def write_cont_sys(cls, datapoint, value):
The the value of the data point to be written
"""

#print("datapoint: " + str(datapoint))
#print("value: " + str(value))
print("datapoint: " + str(datapoint))
print("value: " + str(value))
cls.contr_sys.write(datapoint, value)

@classmethod
Expand Down Expand Up @@ -245,9 +245,9 @@ def execute(self):
sub.interp(iter_real = "real")
sub.send_commands()

cur_time = Time.Time.get_time()

if Bexmoc.contr_sys_typ == "Modelica":
cur_time = Time.Time.get_time()

Bexmoc.proceed(cur_time, Time.Time.time_incr)
Time.Time.set_time()

Expand Down

0 comments on commit cb2ad0b

Please sign in to comment.