From 9be405a89d23ba300598e087d3d844cf06d9fdd4 Mon Sep 17 00:00:00 2001 From: Rune Harlyk Date: Thu, 10 Jul 2025 17:38:06 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Maps=20frontend=20gait=20params?= =?UTF-8?q?=20same=20as=20backend?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/lib/gait.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/lib/gait.ts b/app/src/lib/gait.ts index 9c2ae7a..23fc5dd 100644 --- a/app/src/lib/gait.ts +++ b/app/src/lib/gait.ts @@ -62,8 +62,8 @@ export abstract class GaitState { map_command(command: ControllerCommand) { const newCommand = { step_height: 0.4 + (command.s1 / 128 + 1) / 2, - step_x: Math.floor(fromInt8(command.ly, -1, 1) * 10) / 10, - step_z: -(Math.floor(fromInt8(command.lx, -1, 1) * 10) / 10), + step_x: Math.floor((command.ly / 128) * 10) / 10, + step_z: -(Math.floor((command.lx / 128) * 10) / 10), step_velocity: command.s / 128 + 1, step_angle: command.rx / 128, step_depth: 0.002