Use clion to modify the following code in the virtual machine<button id="a">Installation mode</button><br><br><button id="b">Stay where you are</button><br data-tomark-pass><br data-tomark-pass><button id="c">Squat</button><br data-tomark-pass><br data-tomark-pass><button id="d">Forward</button><br data-tomark-pass><br data-tomark-pass><button id="e">Back</button><br data-tomark-pass><br data-tomark-pass><button id="f">Turn left</button><br data-tomark-pass><br data-tomark-pass><button id="g">Turn right</button><br data-tomark-pass><br data-tomark-pass><button id="h">Squat</button><br data-tomark-pass><br data-tomark-pass><button id="i">Lift legsInstallation modefe(g('a'), () => {fg(u('/dog/init'), () => {});});No progressfe(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), () => {});});Squat downfe(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), () => {});});go aheadfe(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), () => {});});Backfe(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), () => {});});Turn leftfe(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), () => {});});Turn rightfe(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), () => {});});Squatfe(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), () => {});});Lift your legsfe(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), () => {});});
All reference designs on this site are sourced from major semiconductor manufacturers or collected online for learning and research. The copyright belongs to the semiconductor manufacturer or the original author. If you believe that the reference design of this site infringes upon your relevant rights and interests, please send us a rights notice. As a neutral platform service provider, we will take measures to delete the relevant content in accordance with relevant laws after receiving the relevant notice from the rights holder. Please send relevant notifications to email: bbs_service@eeworld.com.cn.
It is your responsibility to test the circuit yourself and determine its suitability for you. EEWorld will not be liable for direct, indirect, special, incidental, consequential or punitive damages arising from any cause or anything connected to any reference design used.
Supported by EEWorld Datasheet