- refactored
This commit is contained in:
@@ -4,8 +4,8 @@ class StirrerFactory:
|
||||
@staticmethod
|
||||
def create(name, dt):
|
||||
if "sim" in name:
|
||||
from components.actor.stirrer_sim import Stirrer_sim
|
||||
return Stirrer_sim(dt)
|
||||
from components.actor.stirrersim import StirrerSim
|
||||
return StirrerSim(dt)
|
||||
elif "1376" in name:
|
||||
from components.actor.stirrer_pololu1376 import Stirrer_pololu1376
|
||||
return Stirrer_pololu1376(dt, '/dev/ttyUSB0', 115200)
|
||||
from components.actor.stirrerpololu1376 import StirrerPololu1376
|
||||
return StirrerPololu1376(dt, '/dev/ttyUSB0', 115200)
|
||||
|
||||
Reference in New Issue
Block a user