Class: Motor::CIM

Inherits:
Motor
  • Object
show all
Defined in:
lib/vex-motors.rb

Instance Attribute Summary

Attributes inherited from Motor

#free_speed, #max_power, #quantity, #stall_current, #stall_torque

Instance Method Summary collapse

Methods inherited from Motor

#current, #set_quantity, #speed, #torque

Constructor Details

#initialize(qty = 1) ⇒ CIM

Returns a new instance of CIM.



59
60
61
62
63
64
65
66
# File 'lib/vex-motors.rb', line 59

def initialize(qty = 1)
  super()
  @stall_current = 131
  @stall_torque = 2.41
  @free_speed = 5330
  @max_power = 337
  set_quantity qty
end