diff --git a/cfg/sim_uniax.cfg b/cfg/sim_uniax.cfg index 27ee782..fc7c0e3 100644 --- a/cfg/sim_uniax.cfg +++ b/cfg/sim_uniax.cfg @@ -7,7 +7,7 @@ uri=tcp://5000 [drv] class = secop.simulation.SimDrivable -extra_params = speed +extra_params = speed, safe_current, safe_step, maxcurrent description = simulated motor value.default = 0 speed.readonly = False diff --git a/secop_psi/simdpm.py b/secop_psi/simdpm.py index 00ff28b..b6fb768 100644 --- a/secop_psi/simdpm.py +++ b/secop_psi/simdpm.py @@ -32,6 +32,7 @@ class DPM3(Readable): hysteresis = Parameter('simulated hysteresis', FloatRange(unit='deg'), default=100, readonly=False) friction = Parameter('friction', FloatRange(unit='N/deg'), default=1, readonly=False) slope = Parameter('slope', FloatRange(unit='N/deg'), default=10, readonly=False) + offset = Parameter('offset', FloatRange(unit='N'), default=0, readonly=False) _pos = 0 # effective piston position, main hysteresis taken into account