调整机械臂的速度

This commit is contained in:
ywb
2026-05-21 21:28:27 +08:00
parent 466272cc22
commit 2b627228fb
+2 -2
View File
@@ -344,7 +344,7 @@ createApp({
const res = await fetch(API + '/api/arm/set_angles', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ angles: pose.arm_angles, speed: 50 })
body: JSON.stringify({ angles: pose.arm_angles, speed: 500 })
})
const data = await res.json()
if (data.ok) { alert('姿态已应用到机械臂') }
@@ -887,7 +887,7 @@ createApp({
const res = await fetch(API + '/api/arm/set_angles', {
method: 'POST',
headers: {'Content-Type':'application/json'},
body: JSON.stringify({ angles: q.joint_angles, speed: 50 })
body: JSON.stringify({ angles: q.joint_angles, speed: 500 })
})
const data = await res.json()
if (data.ok) { alert('姿态已应用到机械臂')