chore: comment out rotation testing code
This commit is contained in:
parent
7e295a3a00
commit
b0a0647530
1 changed files with 10 additions and 10 deletions
|
@ -27,16 +27,16 @@
|
||||||
const kP = 2 // Adjust this value based on responsiveness and stability needs
|
const kP = 2 // Adjust this value based on responsiveness and stability needs
|
||||||
|
|
||||||
// simulate some turning for testing
|
// simulate some turning for testing
|
||||||
const simulateTurning = () => {
|
// const simulateTurning = () => {
|
||||||
let delay = Math.random() * 4500 + 500
|
// let delay = Math.random() * 4500 + 500
|
||||||
let randOffset = Math.random() * 170 * (Math.random() < 0.5 ? -1 : 1)
|
// let randOffset = Math.random() * 170 * (Math.random() < 0.5 ? -1 : 1)
|
||||||
telemetryStore.update({
|
// telemetryStore.update({
|
||||||
...get(telemetryReadonlyStore),
|
// ...get(telemetryReadonlyStore),
|
||||||
orientation: get(telemetryReadonlyStore)['orientation'] + randOffset,
|
// orientation: get(telemetryReadonlyStore)['orientation'] + randOffset,
|
||||||
})
|
// })
|
||||||
setTimeout(simulateTurning, delay)
|
// setTimeout(simulateTurning, delay)
|
||||||
}
|
// }
|
||||||
simulateTurning()
|
// simulateTurning()
|
||||||
|
|
||||||
// Sync robot orientation with target rotation
|
// Sync robot orientation with target rotation
|
||||||
let targetRot = 0
|
let targetRot = 0
|
||||||
|
|
Loading…
Reference in a new issue