Class Commands::Motor
In: lib/commands/motor.rb
Parent: Object

Implements the "Motor" block in NXT-G

Methods

method_missing   new   start   stop  

Attributes

action  [RW] 
control_power  [RW] 
direction  [RW] 
duration  [RW] 
next_action  [RW] 
port  [RW] 
power  [RW] 
steering  [RW] 
wait  [RW] 

Public Class methods

Public Instance methods

attempt to return the output_state requested

execute the Motor command based on the properties specified

stop the Motor command based on the next_action property

[Validate]