fix simulation
+ some fixed in sim_uniax Change-Id: Ia8703ed988aa904bb2694339f0d3175b28fcb33e
This commit is contained in:
@ -38,7 +38,7 @@ class DPM3(Readable):
|
||||
_pos = 0
|
||||
|
||||
def read_value(self):
|
||||
mot = self._motor
|
||||
mot = self.motor
|
||||
d = self.friction * self.slope
|
||||
self._pos = clamp(self._pos, mot.value - d, mot.value + d)
|
||||
f = (mot.value - self._pos) / self.slope
|
||||
|
Reference in New Issue
Block a user