From aad90a5def24b8cdcceab5109a8da0236adc1bd4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=BCller?= Date: Thu, 21 May 2026 21:43:18 +0200 Subject: [PATCH] Anpassung der geschwindigkeit besser --- ExoMy_Software-master/src/joystick_parser_node.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ExoMy_Software-master/src/joystick_parser_node.py b/ExoMy_Software-master/src/joystick_parser_node.py index dc1bff5..a0e44ea 100644 --- a/ExoMy_Software-master/src/joystick_parser_node.py +++ b/ExoMy_Software-master/src/joystick_parser_node.py @@ -246,7 +246,7 @@ def callback(data): # The velocity is decoded as value between 0...100, capped by speed limit stick_length = min(math.sqrt(x*x + y*y), 1.0) - rover_cmd.vel = int(get_speed_limit() * math.pow(stick_length, VELOCITY_EXPO)) + rover_cmd.vel = int(100.0 * math.pow(get_speed_limit() / 100.0 * stick_length, VELOCITY_EXPO)) # The steering is described as an angle between -180...180 # Which describe the joystick position as follows: