From b0a0647530461a2ed512f0e4515c777c0be29252 Mon Sep 17 00:00:00 2001 From: Youwen Wu Date: Sun, 25 Feb 2024 21:53:53 -0800 Subject: [PATCH] chore: comment out rotation testing code --- .../lib/Dashboard/Visualization/Scene.svelte | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/client/src/lib/Dashboard/Visualization/Scene.svelte b/client/src/lib/Dashboard/Visualization/Scene.svelte index 5f2d9ae..b530293 100644 --- a/client/src/lib/Dashboard/Visualization/Scene.svelte +++ b/client/src/lib/Dashboard/Visualization/Scene.svelte @@ -27,16 +27,16 @@ const kP = 2 // Adjust this value based on responsiveness and stability needs // simulate some turning for testing - const simulateTurning = () => { - let delay = Math.random() * 4500 + 500 - let randOffset = Math.random() * 170 * (Math.random() < 0.5 ? -1 : 1) - telemetryStore.update({ - ...get(telemetryReadonlyStore), - orientation: get(telemetryReadonlyStore)['orientation'] + randOffset, - }) - setTimeout(simulateTurning, delay) - } - simulateTurning() + // const simulateTurning = () => { + // let delay = Math.random() * 4500 + 500 + // let randOffset = Math.random() * 170 * (Math.random() < 0.5 ? -1 : 1) + // telemetryStore.update({ + // ...get(telemetryReadonlyStore), + // orientation: get(telemetryReadonlyStore)['orientation'] + randOffset, + // }) + // setTimeout(simulateTurning, delay) + // } + // simulateTurning() // Sync robot orientation with target rotation let targetRot = 0