fix simulation

+ some fixed in sim_uniax

Change-Id: Ia8703ed988aa904bb2694339f0d3175b28fcb33e
This commit is contained in:
2023-09-19 16:05:52 +02:00
parent 72fbed289d
commit d2e7ce7242
4 changed files with 41 additions and 35 deletions

View File

@ -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