From f7d2cb40c95c76b1c6088ca320f124eea01460ec Mon Sep 17 00:00:00 2001 From: "[Valentino Heman Budiarto]" <[hemanvalentino@gmail.com]> Date: Tue, 11 Aug 2026 20:21:34 +0700 Subject: [PATCH] . --- app/page.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/page.tsx b/app/page.tsx index 36404f0..55ccd51 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -70,9 +70,9 @@ export default function RobotDashboard() { if (activeGp) { const rawX = activeGp.axes[0]; - // PERUBAHAN LOGIKA GAS SESUAI PERMINTAANMU - const maju = activeGp.buttons[7].value; // Tombol 7 (RT) untuk maju - const mundur = activeGp.buttons[6].value; // Tombol 6 (LT) untuk mundur + // PERUBAHAN: Index 6 dan 7 sudah ditukar posisinya! + const maju = activeGp.buttons[6].value; // RT untuk maju (Index 6) + const mundur = activeGp.buttons[7].value; // LT untuk mundur (Index 7) const throttle = maju - mundur; currentX = Math.abs(rawX) > 0.15 ? Number(rawX.toFixed(2)) : 0;