Class: Motor::MiniCIM
Instance Attribute Summary
Attributes inherited from Motor
#free_speed, #max_power, #quantity, #stall_current, #stall_torque
Instance Method Summary collapse
-
#initialize(qty = 1) ⇒ MiniCIM
constructor
A new instance of MiniCIM.
Methods inherited from Motor
#current, #set_quantity, #speed, #torque
Constructor Details
#initialize(qty = 1) ⇒ MiniCIM
Returns a new instance of MiniCIM.
70 71 72 73 74 75 76 77 |
# File 'lib/vex-motors.rb', line 70 def initialize(qty = 1) super() @stall_current = 89 @stall_torque = 1.41 @free_speed = 5840 @max_power = 215 set_quantity qty end |