在虚拟机中用clion修改以下代码即可<button id="a">安装模式</button><br><br><button id="b">原地踏步</button><br data-tomark-pass><br data-tomark-pass><button id="c">蹲下</button><br data-tomark-pass><br data-tomark-pass><button id="d">前进</button><br data-tomark-pass><br data-tomark-pass><button id="e">后退</button><br data-tomark-pass><br data-tomark-pass><button id="f">左转</button><br data-tomark-pass><br data-tomark-pass><button id="g">右转</button><br data-tomark-pass><br data-tomark-pass><button id="h">深蹲</button><br data-tomark-pass><br data-tomark-pass><button id="i">抬腿安装模式fe(g('a'), () => {fg(u('/dog/init'), () => {});});原地踏步fe(g('b'), () => {let data = {"type": 3, "count": 20, "list": [[39, 180, 59, 133, 59, 133, 39, 180, 100], [59, 133, 39, 180, 39, 180, 59, 133, 100]]};fp(u('/dog/cmds'), JSON.stringify(data), () => {});});蹲下fe(g('c'), () => {let data = {"type": 3, "count": 1, "list": [[-20, 90, -20, 90,-20, 90, -20, 90, 50]]};fp(u('/dog/cmds'), JSON.stringify(data), () => {});});前进fe(g('d'), () => {let data = {"type": 3, "count": 20, "list": [[34, 108, 62, 150, 72, 144, 23, 111, 40], [41, 121, 32, 144, 40, 142, 31, 124, 40], [69, 143, 17, 115, 27, 113, 60, 148, 40], [62, 147, 24, 114, 34, 110, 54, 151, 40], [23, 126, 46, 139, 56, 135, 14, 127, 40]]};fp(u('/dog/cmds'), JSON.stringify(data), () => {});});后退fe(g('e'), () => {let data = {"type": 3, "count": 20, "list": [[72, 144, 42, 135, 51, 131, 62, 150, 50], [65, 141, 4, 137, 13, 143, 56, 146, 50], [52, 132, 47, 156, 54, 153, 43, 136, 50], [34, 139, 61, 149, 70, 144, 26, 140, 50], [25, 152, 48, 140, 57, 136, 17, 148, 50]]};fp(u('/dog/cmds'), JSON.stringify(data), () => {});});左转fe(g('f'), () => {let data = {"type": 3, "count": 7, "list": [[64, 140, 19, 87, 76, 146, 19, 99, 50], [46, 126, -6, 112, 31, 142, 26, 118, 50], [31, 84, 43, 146, 19, 102, 63, 150, 50], [63, 150, 20, 102, 31, 98, 55, 155, 50], [9, 120, 45, 138, 55, 134, 0, 120, 50]]};fp(u('/dog/cmds'), JSON.stringify(data), () => {});});右转fe(g('g'), () => {let data = {"type": 3, "count": 5, "list": [[31, 91, 69, 153, 32, 75, 58, 147, 50], [36, 113, 23, 143, 4, 111, 37, 131, 50], [74, 145, 8, 103, 54, 145, 19, 90, 50], [18, 90, 54, 145, 63, 140, 8, 94, 50], [22, 134, 21, 108, 32, 104, 13, 134, 50], [90, 180, 90, 180, 90, 180, 90, 180, 50]]};fp(u('/dog/cmds'), JSON.stringify(data), () => {});});深蹲fe(g('h'), () => {let data = {"type": 3, "count": 10, "list": [[39, 180, 39, 180, 39, 180, 39, 180, 120], [59, 133, 59, 133, 59, 133, 59, 133, 120]]};fp(u('/dog/cmds'), JSON.stringify(data), () => {});});抬腿fe(g('i'), () => {let data = {"type": 3, "count": 1, "list": [[90, 180, 90, 180, 90, 180, 130, 230, 1200]]};fp(u('/dog/cmds'), JSON.stringify(data), () => {});});
!注意:请使用浏览器自带下载,迅雷等下载软件可能无法下载到有效资源。
器件 | 类型 | 描述 | 数据手册 |
---|---|---|---|
CPI201210UF-3R3M-0A7 | 贴片电感 | 精度:±20% 额定电流:700mA 直流电阻(内阻):200mΩ 电感值:3.3uH | 点击下载 |
GRT21BD71A226ME13L | 贴片电容(MLCC) | 点击下载 | |
CT41G-0805-2X1-50V-0.1μF-M(N) | 贴片电容 | 精度:±20% 容值:100nF 额定电压:50V 温漂系数(介质材料):2F4 材质:2X1 | 点击下载 |
PH-00022 | 排针 | 点击下载 | |
0201X223K100CT | 贴片电容 | 精度:±10% 容值:22nF 额定电压:10V 温漂系数(介质材料):X5R X5R | 点击下载 |
0201X473K100NT | 贴片电容(MLCC) | 点击下载 | |
XL-1608UBC-04 | 发光二极管/LED | 点击下载 | |
FRH0603D1001TSV | 贴片电阻 | 点击下载 | |
RCT0310KFLF | 贴片电阻 | 阻值(欧姆):10K 精度:±1% 功率:1/10W 温度系数:- | 点击下载 |
TSC015A05026A | 轻触开关 | 点击下载 | |
ITCAST-HI3861 | WiFi模块 | 点击下载 | |
LM1084S-5.0/TR | 低压差线性稳压(LDO) | 输出类型:固定 最大输入电压:12V 输出电流:5A 输出电压(最小值/固定值):5V | 点击下载 |
AMS1117-5.0 | 低压差线性稳压(LDO) | 输出类型:固定 最大输入电压:18V 输出电流:1A 输出电压(最小值/固定值):5V | 点击下载 |
TYPE-C-31-M-28A | USB连接器 | 点击下载 |
欢迎加入EEWorld参考设计群,也许能碰到搞同一个设计的小伙伴,群聊设计经验和难点。 入群方式:微信搜索“helloeeworld”或者扫描二维码,备注:参考设计,即可被拉入群。 另外,如您在下载此设计遇到问题,也可以微信添加“helloeeworld”及时沟通。
EEWorld Datasheet 技术支持