Anpassung der Toleranz zum Bestimmung der Umrundung

This commit is contained in:
Safak
2025-11-19 01:10:56 +00:00
parent 1860587712
commit 3ff618d424

View File

@@ -33,7 +33,8 @@ class CircleController(Node):
distance = math.sqrt(
(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
def move_circle(self):