Class: Aurora::Pump::VSPump

Inherits:
GenericPump show all
Defined in:
lib/aurora/pump.rb

Instance Attribute Summary collapse

Attributes inherited from GenericPump

#running, #type, #waterflow, #watts

Instance Method Summary collapse

Methods inherited from GenericPump

#initialize

Methods inherited from Component

#initialize, #inspect

Constructor Details

This class inherits a constructor from Aurora::Pump::GenericPump

Instance Attribute Details

#manual_controlObject Also known as: manual_control?

Returns the value of attribute manual_control.



30
31
32
# File 'lib/aurora/pump.rb', line 30

def manual_control
  @manual_control
end

#maximum_speedObject (readonly)

Returns the value of attribute maximum_speed.



30
31
32
# File 'lib/aurora/pump.rb', line 30

def maximum_speed
  @maximum_speed
end

#minimum_speedObject (readonly)

Returns the value of attribute minimum_speed.



30
31
32
# File 'lib/aurora/pump.rb', line 30

def minimum_speed
  @minimum_speed
end

#speedObject (readonly)

Returns the value of attribute speed.



30
31
32
# File 'lib/aurora/pump.rb', line 30

def speed
  @speed
end

Instance Method Details

#refresh(registers) ⇒ Object



37
38
39
40
41
42
43
# File 'lib/aurora/pump.rb', line 37

def refresh(registers)
  super
  @minimum_speed = registers[321]
  @maximum_speed = registers[322]
  @manual_control = registers[323] != :off
  @speed = registers[325] if @abc.awl_axb?
end

#registers_to_readObject



33
34
35
# File 'lib/aurora/pump.rb', line 33

def registers_to_read
  super + (@abc.awl_axb? ? [321..325] : [321..324])
end