Anpassung der Toleranz zum Bestimmung der Umrundung
This commit is contained in:
@@ -33,7 +33,8 @@ class CircleController(Node):
|
|||||||
distance = math.sqrt(
|
distance = math.sqrt(
|
||||||
(msg.x - self.start_x)**2 + (msg.y - self.start_y)**2
|
(msg.x - self.start_x)**2 + (msg.y - self.start_y)**2
|
||||||
)
|
)
|
||||||
if distance < 0.01: # Toleranz von 0.5 Einheiten
|
# Anpassung auf 0.0098 von 0.01 beim wechsel auf ubuntu server mit x11 Forwarding
|
||||||
|
if distance < 0.0098:
|
||||||
self.circle_completed = True
|
self.circle_completed = True
|
||||||
|
|
||||||
def move_circle(self):
|
def move_circle(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user