Class: Aurora::Blower::ECM

Inherits:
PSC show all
Defined in:
lib/aurora/blower.rb

Instance Attribute Summary collapse

Attributes inherited from PSC

#running, #type, #watts

Instance Method Summary collapse

Methods inherited from PSC

#initialize

Methods inherited from Component

#initialize, #inspect

Constructor Details

This class inherits a constructor from Aurora::Blower::PSC

Instance Attribute Details

#aux_heat_speedObject (readonly)

Returns the value of attribute aux_heat_speed.



54
55
56
# File 'lib/aurora/blower.rb', line 54

def aux_heat_speed
  @aux_heat_speed
end

#blower_only_speedObject (readonly)

Returns the value of attribute blower_only_speed.



54
55
56
# File 'lib/aurora/blower.rb', line 54

def blower_only_speed
  @blower_only_speed
end

#high_compressor_speedObject (readonly)

Returns the value of attribute high_compressor_speed.



54
55
56
# File 'lib/aurora/blower.rb', line 54

def high_compressor_speed
  @high_compressor_speed
end

#iz2_desired_speedObject (readonly)

Returns the value of attribute iz2_desired_speed.



54
55
56
# File 'lib/aurora/blower.rb', line 54

def iz2_desired_speed
  @iz2_desired_speed
end

#low_compressor_speedObject (readonly)

Returns the value of attribute low_compressor_speed.



54
55
56
# File 'lib/aurora/blower.rb', line 54

def low_compressor_speed
  @low_compressor_speed
end

#speedObject (readonly)

Returns the value of attribute speed.



54
55
56
# File 'lib/aurora/blower.rb', line 54

def speed
  @speed
end

Instance Method Details

#refresh(registers) ⇒ Object



71
72
73
74
75
76
77
78
79
80
# File 'lib/aurora/blower.rb', line 71

def refresh(registers)
  super

  @speed                  = registers[344]
  @blower_only_speed      = registers[340]
  @low_compressor_speed   = registers[341]
  @high_compressor_speed  = registers[342]
  @aux_heat_speed         = registers[347]
  @iz2_desired_speed      = registers[565] if abc.iz2?
end

#registers_to_readObject



65
66
67
68
69
# File 'lib/aurora/blower.rb', line 65

def registers_to_read
  result = super + [340..342, 344, 347]
  result << 565 if abc.iz2?
  result
end

#speed_rangeObject



61
62
63
# File 'lib/aurora/blower.rb', line 61

def speed_range
  0..12
end