Raspberry Pi Tank, play on computer or phone, also can play with PS DualShock or scripts.
# sudo npm install -g pi-tank
$ sudo pi-tank-web [port-number: default 8080]
*** Open http://[your-RaspberryPi-ip]:[port-number] ***
$ sudo pi-tank-joystick [USB-joystick-id: default 0]
[{
"rule": function () {
this.break();
}
},
{
"rule": function () {
this.speed(100);
},
"time": 3000
},
{
"rule": function () {
this.direction(90);
},
"time": 3000
},
{
"rule": function () {
this.direction(-90);
},
"time": 3000
},
{
"rule": function () {
this.direction(180);
},
"time": 3000
},
{
"rule": function () {
this.off();
}
}]
$ sudo pi-tank-play play.json
This project is licensed under the MIT License - see the LICENSE file for details