{
 "原理:線性對應、量化與背隙#2": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   0,
   4,
   4
  ],
  "nodes": [
   {
    "label": "0°",
    "sub": "600 µs"
   },
   {
    "label": "170°",
    "sub": "2300 µs"
   },
   {
    "label": "每度脈寬",
    "sub": "10 µs"
   },
   {
    "label": "90° 的脈寬",
    "sub": "1500 µs",
    "kind": "end"
   }
  ]
 },
 "原理:線性對應、量化與背隙#3": {
  "type": "table",
  "head": [
   "項目",
   "數值"
  ],
  "widths": [
   3,
   3
  ],
  "reveal": [
   0,
   2,
   5
  ],
  "rows": [
   [
    "週期 20 ms",
    "分成 4096 格"
   ],
   [
    "每格",
    "約 4.88 µs"
   ],
   [
    "命令 90°",
    "實際脈寬 1499.02 µs"
   ],
   [
    "換算回來",
    "89.9°"
   ],
   [
    "最大量化誤差",
    "半格,約 0.24°"
   ]
  ]
 },
 "原理:線性對應、量化與背隙#4": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   2,
   3,
   4
  ],
  "nodes": [
   {
    "label": "1500 µs",
    "sub": "命令脈寬"
   },
   {
    "label": "307 格",
    "sub": "四捨五入"
   },
   {
    "label": "1499.02 µs",
    "sub": "實際脈寬"
   },
   {
    "label": "89.9°",
    "sub": "換算回角度",
    "kind": "end"
   }
  ]
 },
 "原理:線性對應、量化與背隙#6": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   3,
   4
  ],
  "nodes": [
   {
    "label": "反轉方向",
    "sub": "輸出軸先穿過空隙"
   },
   {
    "label": "停點不同",
    "sub": "差一個背隙"
   },
   {
    "label": "遲滯",
    "sub": "和路徑有關"
   },
   {
    "label": "末端誤差",
    "sub": "2° 背隙 · 15 cm → 約 0.52 cm",
    "kind": "end"
   }
  ]
 },
 "角度與脈寬的對應:線性模型與換算#2": {
  "type": "line",
  "x": [
   "0°",
   "90°",
   "180°"
  ],
  "min": 0,
  "max": 3000,
  "reveal": [
   0,
   3
  ],
  "series": [
   {
    "name": "脈寬 µs",
    "y": [
     500,
     1500,
     2500
    ],
    "color": 0
   }
  ],
  "markers": [
   {
    "x": 1,
    "y": 1500,
    "label": "90° = 1500 µs",
    "at": 2
   }
  ]
 },
 "角度與脈寬的對應:線性模型與換算#3": {
  "type": "table",
  "head": [
   "方式",
   "0°",
   "最大角度",
   "每度脈寬"
  ],
  "widths": [
   2,
   2,
   3,
   2
  ],
  "reveal": [
   0,
   1,
   1,
   2,
   2
  ],
  "rows": [
   [
    "預設範圍",
    "500 µs",
    "180° 為 2500 µs",
    "約 11.1 µs"
   ],
   [
    "兩點校準",
    "600 µs",
    "170° 為 2300 µs",
    "10 µs"
   ]
  ]
 },
 "角度與脈寬的對應:線性模型與換算#5": {
  "type": "bar",
  "unit": " µs",
  "reveal": [
   0,
   3
  ],
  "labels": [
   "90°",
   "45°",
   "170°"
  ],
  "values": [
   1500,
   1050,
   2300
  ],
  "highlight": 0
 },
 "角度與脈寬的對應:線性模型與換算#6": {
  "type": "cards",
  "reveal": [
   0,
   0,
   2,
   2
  ],
  "cards": [
   {
    "title": "方向",
    "points": [
     "關節常常裝反",
     "正 1 或負 1"
    ],
    "value": "讓角度方向一致"
   },
   {
    "title": "偏移",
    "points": [
     "模型零度時",
     "伺服的角度是多少"
    ],
    "value": "伺服 = 偏移 + 方向 × 模型角度"
   }
  ]
 },
 "角度與脈寬的對應:線性模型與換算#7": {
  "type": "table",
  "head": [
   "模型角度",
   "伺服角度"
  ],
  "widths": [
   2,
   2
  ],
  "reveal": [
   0,
   0,
   1,
   2,
   3
  ],
  "rows": [
   [
    "0°",
    "180°"
   ],
   [
    "60°",
    "120°"
   ],
   [
    "90°",
    "90°"
   ]
  ]
 },
 "機械零點、限位與安全的關節類別#1": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   3
  ],
  "cards": [
   {
    "title": "伺服的零",
    "points": [
     "脈寬最小的一端",
     "跟結構無關"
    ]
   },
   {
    "title": "機械零點",
    "points": [
     "組裝時的基準姿勢",
     "可用量角器對準"
    ]
   },
   {
    "title": "模型的零",
    "points": [
     "運動學公式的零度",
     "通常是連桿水平往前"
    ]
   }
  ]
 },
 "機械零點、限位與安全的關節類別#3": {
  "type": "table",
  "head": [
   "層級",
   "範例"
  ],
  "widths": [
   2,
   4
  ],
  "reveal": [
   0,
   1,
   2,
   2
  ],
  "rows": [
   [
    "機械限位",
    "−25° 到 160°(碰到就堵轉)"
   ],
   [
    "軟體限位",
    "−20° 到 150°(兩邊各留 5°)"
   ]
  ]
 },
 "機械零點、限位與安全的關節類別#4": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   2
  ],
  "cards": [
   {
    "title": "夾限 clamp",
    "points": [
     "強制壓到範圍內",
     "170° 改成 150°",
     "程式不中斷,悄悄出錯"
    ]
   },
   {
    "title": "拒絕 reject",
    "points": [
     "丟出錯誤",
     "維持原位",
     "出錯的命令會被發現"
    ],
    "value": "建議預設"
   }
  ]
 },
 "機械零點、限位與安全的關節類別#5": {
  "type": "flow",
  "layout": "snake",
  "reveal": [
   0,
   0,
   0,
   3,
   5
  ],
  "nodes": [
   {
    "label": "檢查限位",
    "sub": "超出就丟錯"
   },
   {
    "label": "算伺服角度",
    "sub": "偏移 + 方向 × 角度"
   },
   {
    "label": "換成脈寬"
   },
   {
    "label": "輸出"
   },
   {
    "label": "記錄角度",
    "sub": "命令值,非量測值",
    "kind": "end"
   }
  ]
 },
 "機械零點、限位與安全的關節類別#7": {
  "type": "flow",
  "layout": "row",
  "reveal": [
   0,
   0,
   1,
   2,
   3
  ],
  "nodes": [
   {
    "label": "人工放好",
    "sub": "安全休息姿勢"
   },
   {
    "label": "第一個命令",
    "sub": "設成休息姿勢角度"
   },
   {
    "label": "小步驟漸進",
    "sub": "不要一步跳很大",
    "kind": "end"
   }
  ]
 },
 "位置誤差:背隙、負載與重複性#2": {
  "type": "table",
  "head": [
   "誤差來源",
   "說明"
  ],
  "widths": [
   2,
   5
  ],
  "reveal": [
   0,
   1,
   2,
   3
  ],
  "rows": [
   [
    "量化",
    "一格約 4.88 µs,每度 10 µs 時約 0.49°"
   ],
   [
    "背隙",
    "從兩個方向接近,停下位置會差一點"
   ],
   [
    "死區",
    "誤差很小時伺服不動作,停在目標附近"
   ]
  ]
 },
 "位置誤差:背隙、負載與重複性#3": {
  "type": "table",
  "head": [
   "誤差來源",
   "說明"
  ],
  "widths": [
   2,
   5
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4
  ],
  "rows": [
   [
    "重力負載",
    "關節下垂,扭力小、連桿長更明顯"
   ],
   [
    "結構彈性",
    "壓克力、細金屬片在負載下彎曲"
   ],
   [
    "電源壓降",
    "電壓不足,扭力下降,位置不穩"
   ],
   [
    "量測誤差",
    "零點與連桿長度,量角器誤差會帶入"
   ]
  ]
 },
 "位置誤差:背隙、負載與重複性#4": {
  "type": "cards",
  "reveal": [
   0,
   0,
   1,
   1,
   2
  ],
  "cards": [
   {
    "title": "背隙",
    "points": [
     "背隙 2°",
     "手臂伸出 15 cm"
    ],
    "value": "末端約差 5 mm"
   },
   {
    "title": "下垂",
    "points": [
     "末端低了 0.5 cm",
     "連桿長 15 cm"
    ],
    "value": "角度誤差約 1.9°"
   }
  ]
 },
 "位置誤差:背隙、負載與重複性#5": {
  "type": "table",
  "head": [
   "步驟",
   "算式"
  ],
  "widths": [
   2,
   5
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4
  ],
  "rows": [
   [
    "公式",
    "誤差 ≈ 長度 × 角度誤差(弧度)"
   ],
   [
    "換算",
    "2° ≈ 0.0349 rad"
   ],
   [
    "背隙",
    "15 × 0.0349 ≈ 0.52 cm"
   ],
   [
    "下垂",
    "arctan(0.5 / 15) ≈ 1.9°"
   ]
  ]
 },
 "位置誤差:背隙、負載與重複性#6": {
  "type": "cards",
  "reveal": [
   0,
   1,
   2,
   2,
   2,
   2
  ],
  "cards": [
   {
    "title": "準確度",
    "points": [
     "到達位置離目標多近"
    ],
    "value": "平均偏移 = 系統性誤差"
   },
   {
    "title": "重複性",
    "points": [
     "多次到同一目標",
     "結果彼此多近"
    ],
    "value": "最大散佈"
   }
  ]
 },
 "位置誤差:背隙、負載與重複性#7": {
  "type": "table",
  "head": [
   "方法",
   "做法"
  ],
  "widths": [
   2,
   5
  ],
  "reveal": [
   0,
   1,
   2,
   3,
   4,
   5
  ],
  "rows": [
   [
    "固定接近方向",
    "最後一段永遠朝同一方向"
   ],
   [
    "避免極端姿勢",
    "接近伸直或折疊時誤差被放大"
   ],
   [
    "降速",
    "慢速進入目標,過衝與振盪較小"
   ],
   [
    "停留",
    "到達後等 0.2 到 0.5 秒再夾取或放開"
   ],
   [
    "限制負載",
    "減少物體重量與伸出長度"
   ]
  ]
 }
}