Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
motor.rb
poppy-processing.rb
poppy.rb

README.md

Poppy Ruby

Example use.

$poppy = Poppy.new
$poppy.set_default_motor_positions

$poppy.set_compliant "true"
$poppy.set_compliant "false"

$motor = $poppy.motors["head_z"]

#show the list of registers
$motor.registers

# You can access the registers directly
puts $motor.compliant
# false
$motor.compliant = "true"

## goal_position and goal_speed registers can handle numeric values
$motor.goal_position = 30
$motor.goal_position = -30