Raspberry powered rocket launcher
GET /position
Accept: application/json
{
"x": 60,
"y": 3
}
DELETE /position
Accept: application/json
PUT /position
Content-Type: application/json
{
"x": 60,
"y": 3
}
PUT /rocket
Content-Type: application/json
{
"x": 100,
"y": 6
}
PUT /actions/stop
POST /actions/up
DELETE /actions/up
POST /actions/down
DELETE /actions/down
POST /actions/left
DELETE /actions/left
POST /actions/right
DELETE /actions/right
PUT /actions/fire
None ;)
apt-get install libusb-1.0-0-dev
apt-get install golang
go get github.com/baloo/gousb/usb
go get code.google.com/p/gorest
brew install go
brew install libusb
go get code.google.com/p/gorest
go get github.com/baloo/gousb/usb
vi /usr/local/include/libusb-1.0/libusb.h
# Follow https://gist.github.com/pjvds/4578277