diff --git a/app/page.tsx b/app/page.tsx
index fcc8158..08513c7 100644
--- a/app/page.tsx
+++ b/app/page.tsx
@@ -8,17 +8,14 @@ const pixelify = Pixelify_Sans({
weight: ['400', '500', '600', '700'],
});
-// ==========================================
-// A. KOMPONEN LOGO PI4WD ROVER
-// ==========================================
+// KOMPONEN LOGO PI4WD ROVER
const PiRoverLogo = ({ scale = 1 }: { scale?: number }) => {
return (
-
-
-
PI4
-
WD ROVER
-
+
+ PI
+ 4WD ROVER
+
);
@@ -35,7 +32,7 @@ type MotionType = 'FORWARD' | 'REVERSE' | 'TURN_LEFT' | 'TURN_RIGHT' | 'STOP';
type TrajectoryStep = { x: number; y: number; target_ticks_l: number; target_ticks_r: number; motion?: MotionType; };
export default function RobotDashboard() {
- const PI_IP = '192.168.11.110';
+ const PI_IP = '192.168.11.110'; //GANTI IP JIKA ADA SETTING YANG BARU
const streamUrl = `http://${PI_IP}:8080/stream`;
const [isLoading, setIsLoading] = useState(true);
@@ -231,7 +228,6 @@ export default function RobotDashboard() {
setGpVisuals({ lt: gpLT, rt: gpRT, steer: gpSteer, btnA: gpA, btnB: gpB, btnX: gpX, btnY: gpY });
}
} else if (controlMode === 'pc-mobile') {
- // W (up) menghasilkan 1, S (down) menghasilkan -1
currentY = (keysRef.current.up ? 1 : 0) - (keysRef.current.down ? 1 : 0);
currentX = (keysRef.current.right ? 1 : 0) - (keysRef.current.left ? 1 : 0);
}
@@ -425,11 +421,17 @@ export default function RobotDashboard() {
{/* FOOTER TEXT */}
);