[{“id”:”df4aac78.5148b”,”type”:”Driver”,”z”:”3608da3d.18b6d6″,”name”:”Driver”,”lpwm”:6,”ldir”:7,”rpwm”:5,”rdir”:4,”speed”:”50″,”timeout”:”0.5″,”x”:924.6666564941406,”y”:147.66661834716797,”wires”:[[]]},{“id”:”cc281cb3.ccebf”,”type”:”change”,”z”:”3608da3d.18b6d6″,”name”:”forwards”,”rules”:[{“t”:”set”,”p”:”forwards”,”to”:”1″}],”action”:””,”property”:””,”from”:””,”to”:””,”reg”:false,”x”:359.66656494140625,”y”:73.6666488647461,”wires”:[[“5c715c59.b83a44″,”699cadb0.37a9d4”]]},{“id”:”29eab985.1970b6″,”type”:”change”,”z”:”3608da3d.18b6d6″,”name”:”backwards”,”rules”:[{“t”:”set”,”p”:”backwards”,”to”:”1″}],”action”:””,”property”:””,”from”:””,”to”:””,”reg”:false,”x”:363.6665344238281,”y”:120.66664123535156,”wires”:[[“5c715c59.b83a44″,”e882f584.e82b88”]]},{“id”:”fcf8eb70.994068″,”type”:”change”,”z”:”3608da3d.18b6d6″,”name”:”leftwards”,”rules”:[{“t”:”set”,”p”:”leftwards”,”to”:”1″}],”action”:””,”property”:””,”from”:””,”to”:””,”reg”:false,”x”:355.66656494140625,”y”:159.66664123535156,”wires”:[[“5c715c59.b83a44″,”91eaf39f.097fa”]]},{“id”:”d36df52.3211608″,”type”:”change”,”z”:”3608da3d.18b6d6″,”name”:”rightwards”,”rules”:[{“t”:”set”,”p”:”rightwards”,”to”:”1″}],”action”:””,”property”:””,”from”:””,”to”:””,”reg”:false,”x”:355.66656494140625,”y”:196.66661071777344,”wires”:[[“5c715c59.b83a44″,”daf91cb5.bb0e7”]]},{“id”:”355552de.5d150e”,”type”:”mraa-gpio-ain”,”z”:”3608da3d.18b6d6″,”name”:””,”pin”:”0″,”interval”:”3000″,”x”:127.66665649414062,”y”:335.66661834716797,”wires”:[[“435173a8.de418c”]]},{“id”:”1090d527.87997b”,”type”:”mraa-gpio-ain”,”z”:”3608da3d.18b6d6″,”name”:””,”pin”:”1″,”interval”:”3000″,”x”:129.66665649414062,”y”:380.66661834716797,”wires”:[[“52fd834e.6924ec”]]},{“id”:”495c49c1.335d18″,”type”:”mraa-gpio-ain”,”z”:”3608da3d.18b6d6″,”name”:””,”pin”:”2″,”interval”:”3000″,”x”:126.66665649414062,”y”:427.66661834716797,”wires”:[[“a3c4e5d2.5b7928”]]},{“id”:”a81c9d8e.0587d”,”type”:”mraa-gpio-ain”,”z”:”3608da3d.18b6d6″,”name”:””,”pin”:”3″,”interval”:”3000″,”x”:129.66665649414062,”y”:468.66661834716797,”wires”:[[“f0bf8054.1c513”]]},{“id”:”435173a8.de418c”,”type”:”change”,”z”:”3608da3d.18b6d6″,”name”:”前方距离”,”rules”:[{“t”:”set”,”p”:”front”,”to”:”msg.payload”}],”action”:””,”property”:””,”from”:””,”to”:””,”reg”:false,”x”:277.99998474121094,”y”:336.9999313354492,”wires”:[[“5c715c59.b83a44”]]},{“id”:”52fd834e.6924ec”,”type”:”change”,”z”:”3608da3d.18b6d6″,”name”:”右侧距离”,”rules”:[{“t”:”set”,”p”:”right”,”to”:”msg.payload”}],”action”:””,”property”:””,”from”:””,”to”:””,”reg”:false,”x”:278.9999694824219,”y”:378.9999313354492,”wires”:[[“5c715c59.b83a44”]]},{“id”:”a3c4e5d2.5b7928″,”type”:”change”,”z”:”3608da3d.18b6d6″,”name”:”后方距离”,”rules”:[{“t”:”set”,”p”:”back”,”to”:”msg.payload”}],”action”:””,”property”:””,”from”:””,”to”:””,”reg”:false,”x”:279.9999694824219,”y”:420.9999313354492,”wires”:[[“5c715c59.b83a44”]]},{“id”:”f0bf8054.1c513″,”type”:”change”,”z”:”3608da3d.18b6d6″,”name”:”左侧距离”,”rules”:[{“t”:”set”,”p”:”left”,”to”:”msg.payload”}],”action”:””,”property”:””,”from”:””,”to”:””,”reg”:false,”x”:280.9999694824219,”y”:466.9999313354492,”wires”:[[“5c715c59.b83a44”]]},{“id”:”85233603.1bfcb8″,”type”:”file”,”z”:”3608da3d.18b6d6″,”name”:”存储训练数据”,”filename”:”/home/root/node-red/car_train_data”,”appendNewline”:false,”createDir”:true,”overwriteFile”:”true”,”x”:986.9998779296875,”y”:353.9999084472656,”wires”:[]},{“id”:”69417c5b.5ff314″,”type”:”change”,”z”:”3608da3d.18b6d6″,”name”:”send”,”rules”:[{“t”:”set”,”p”:”send”,”to”:”msg.payload”}],”action”:””,”property”:””,”from”:””,”to”:””,”reg”:false,”x”:339.9998779296875,”y”:265.99988555908203,”wires”:[[“5c715c59.b83a44”]]},{“id”:”e9c446f0.32f348″,”type”:”file in”,”z”:”3608da3d.18b6d6″,”name”:”读取训练数据”,”filename”:”/home/root/node-red/car_train_data”,”format”:”utf8″,”x”:308.99993896484375,”y”:624,”wires”:[[“b395567.34e46a8”]]},{“id”:”5256dee7.18a2a”,”type”:”inject”,”z”:”3608da3d.18b6d6″,”name”:”训练”,”topic”:””,”payload”:””,”payloadType”:”date”,”repeat”:””,”crontab”:””,”once”:false,”x”:133.99993896484375,”y”:623,”wires”:[[“e9c446f0.32f348”]]},{“id”:”f17a19b3.800ff8″,”type”:”change”,”z”:”3608da3d.18b6d6″,”name”:”trainData”,”rules”:[{“t”:”set”,”p”:”trainData”,”to”:”msg.payload”}],”action”:””,”property”:””,”from”:””,”to”:””,”reg”:false,”x”:652.9999389648438,”y”:623,”wires”:[[“be9b27e9.7b2ac8”]]},{“id”:”b395567.34e46a8″,”type”:”json”,”z”:”3608da3d.18b6d6″,”name”:””,”x”:475.99993896484375,”y”:625.9998779296875,”wires”:[[“f17a19b3.800ff8”]]},{“id”:”65506c71.46aa64″,”type”:”file”,”z”:”3608da3d.18b6d6″,”name”:”存储网络数据”,”filename”:”/home/root/node-red/car_net_data”,”appendNewline”:false,”createDir”:true,”overwriteFile”:”true”,”x”:986,”y”:613.9998779296875,”wires”:[]},{“id”:”be9b27e9.7b2ac8″,”type”:”brain”,”z”:”3608da3d.18b6d6″,”name”:”神经网络”,”brainType”:”train”,”learningRate”:0.3,”hiddenLayers”:”3″,”errorThresh”:0.005,”iterations”:20000,”logPeriod”:10,”x”:818.0498657226562,”y”:620.7166137695312,”wires”:[[“65506c71.46aa64”]]},{“id”:”5c715c59.b83a44″,”type”:”dataCollect”,”z”:”3608da3d.18b6d6″,”name”:”数据采集”,”inRules”:[{“name”:”front”},{“name”:”back”},{“name”:”left”},{“name”:”right”}],”outRules”:[{“name”:”forwards”},{“name”:”backwards”},{“name”:”leftwards”},{“name”:”rightwards”}],”sendCmd”:”send”,”inGroupNumber”:”4″,”outGroupNumber”:1,”prev_inGroupNumber”:”3″,”prev_outGroupNumber”:1,”x”:624.0498046875,”y”:358.6666259765625,”wires”:[[“85233603.1bfcb8”]]},{“id”:”699cadb0.37a9d4″,”type”:”change”,”z”:”3608da3d.18b6d6″,”name”:”0″,”rules”:[{“t”:”set”,”p”:”direction”,”to”:”0″}],”action”:””,”property”:””,”from”:””,”to”:””,”reg”:false,”x”:630.0499572753906,”y”:82.6166000366211,”wires”:[[“df4aac78.5148b”]]},{“id”:”e882f584.e82b88″,”type”:”change”,”z”:”3608da3d.18b6d6″,”name”:”1″,”rules”:[{“t”:”set”,”p”:”direction”,”to”:”1″}],”action”:””,”property”:””,”from”:””,”to”:””,”reg”:false,”x”:628.0499572753906,”y”:128.66664123535156,”wires”:[[“df4aac78.5148b”]]},{“id”:”91eaf39f.097fa”,”type”:”change”,”z”:”3608da3d.18b6d6″,”name”:”2″,”rules”:[{“t”:”set”,”p”:”direction”,”to”:”2″}],”action”:””,”property”:””,”from”:””,”to”:””,”reg”:false,”x”:630.0499572753906,”y”:179.6666259765625,”wires”:[[“df4aac78.5148b”]]},{“id”:”daf91cb5.bb0e7″,”type”:”change”,”z”:”3608da3d.18b6d6″,”name”:”3″,”rules”:[{“t”:”set”,”p”:”direction”,”to”:”3″}],”action”:””,”property”:””,”from”:””,”to”:””,”reg”:false,”x”:629.0499572753906,”y”:226.66661834716797,”wires”:[[“df4aac78.5148b”]]},{“id”:”471690bf.173dc”,”type”:”inject”,”z”:”3608da3d.18b6d6″,”name”:”保存”,”topic”:””,”payload”:”send”,”payloadType”:”string”,”repeat”:””,”crontab”:””,”once”:false,”x”:129.99996185302734,”y”:264.00000762939453,”wires”:[[“69417c5b.5ff314”]]},{“id”:”41aae517.ba80fc”,”type”:”inject”,”z”:”3608da3d.18b6d6″,”name”:”前”,”topic”:””,”payload”:””,”payloadType”:”date”,”repeat”:””,”crontab”:””,”once”:false,”x”:137.99991607666016,”y”:73.33327229817723,”wires”:[[“cc281cb3.ccebf”]]},{“id”:”2173cb1d.9ca094″,”type”:”inject”,”z”:”3608da3d.18b6d6″,”name”:”后”,”topic”:””,”payload”:””,”payloadType”:”date”,”repeat”:””,”crontab”:””,”once”:false,”x”:136.99993133544922,”y”:113.33327229817723,”wires”:[[“29eab985.1970b6”]]},{“id”:”5910e319.57551c”,”type”:”inject”,”z”:”3608da3d.18b6d6″,”name”:”左”,”topic”:””,”payload”:””,”payloadType”:”date”,”repeat”:””,”crontab”:””,”once”:false,”x”:135.99993133544922,”y”:155.33326721191406,”wires”:[[“fcf8eb70.994068”]]},{“id”:”a9a05ab0.740868″,”type”:”inject”,”z”:”3608da3d.18b6d6″,”name”:”右”,”topic”:””,”payload”:””,”payloadType”:”date”,”repeat”:””,”crontab”:””,”once”:false,”x”:136.99993133544922,”y”:198.333251953125,”wires”:[[“d36df52.3211608”]]}]

跳至工具栏