A Ruby library to control your USB Rocket Launcher device!
This library include also a little bin file to manipulate your rocket launcher.
To install rocket_launcher
gem, you need to install libusb 1.0.
-
Mac:
sudo port install libusb-devel
-
Debian:
sudo apt-get install libusb-1.0-0-dev
gem install rocket_launcher
There are 3 way to control your rocket launcher:
- by single command:
rl -c left -p 2
- by a list of commands:
rl -f path/to/list/of/commands.txt
- by the rocket launcher control console:
rl -i
See rl --help
for more details.
require 'rocket_launcher'
rl = RocketLauncher.new
rl.up
rl.left(2.3)
rl.fire
rl.park
rl.close
Copyright © 2012 Enrico Pilotto (@pioz). See LICENSE for details.