- refactored dt
This commit is contained in:
@@ -2,10 +2,10 @@
|
||||
|
||||
class StirrerFactory:
|
||||
@staticmethod
|
||||
def create(name, params):
|
||||
def create(name, dt, params):
|
||||
if "sim" in name:
|
||||
from components.actor.stirrersim import StirrerSim
|
||||
return StirrerSim(params)
|
||||
return StirrerSim(dt)
|
||||
elif "1376" in name:
|
||||
from components.actor.stirrerpololu1376 import StirrerPololu1376
|
||||
return StirrerPololu1376(params)
|
||||
return StirrerPololu1376(dt, params)
|
||||
|
||||
Reference in New Issue
Block a user