Class: Aurora::Pump::VSPump
- Inherits:
-
GenericPump
- Object
- Component
- GenericPump
- Aurora::Pump::VSPump
- Defined in:
- lib/aurora/pump.rb
Instance Attribute Summary collapse
-
#manual_control ⇒ Object
(also: #manual_control?)
Returns the value of attribute manual_control.
-
#maximum_speed ⇒ Object
readonly
Returns the value of attribute maximum_speed.
-
#minimum_speed ⇒ Object
readonly
Returns the value of attribute minimum_speed.
-
#speed ⇒ Object
readonly
Returns the value of attribute speed.
Attributes inherited from GenericPump
#running, #type, #waterflow, #watts
Instance Method Summary collapse
Methods inherited from GenericPump
Methods inherited from Component
Constructor Details
This class inherits a constructor from Aurora::Pump::GenericPump
Instance Attribute Details
#manual_control ⇒ Object 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_speed ⇒ Object (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_speed ⇒ Object (readonly)
Returns the value of attribute minimum_speed.
30 31 32 |
# File 'lib/aurora/pump.rb', line 30 def minimum_speed @minimum_speed end |
#speed ⇒ Object (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_read ⇒ Object
33 34 35 |
# File 'lib/aurora/pump.rb', line 33 def registers_to_read super + (@abc.awl_axb? ? [321..325] : [321..324]) end |