Module: Rfbeam::KLD7

Defined in:
lib/rfbeam/kld7/module_params.rb

Instance Method Summary collapse

Instance Method Details

#digital_output1Object


Digital output 1, 0 = Direction, 1 = Angle, 2 = Range, 3 = Speed, 4 = Micro Detection, default = 0




15
16
17
# File 'lib/rfbeam/kld7/module_params.rb', line 15

def digital_output1
  query_parameter RADAR_PARAMETERS[:digital_output1].grps_index
end

#digital_output1=(value = 0) ⇒ Object Also known as: dig1=, set_digital_output1

Raises:

  • (ArgumentError)


19
20
21
22
23
24
# File 'lib/rfbeam/kld7/module_params.rb', line 19

def digital_output1=(value = 0)
  raise ArgumentError, "Invalid arg: '#{value}'" unless (0..4).cover?(value)
  raise ArgumentError, 'Expected an Integer' unless value.is_a?(Integer)

  set_parameter :dig1, value, :uint32
end

#digital_output2Object


Digital output 2, 0 = Direction, 1 = Angle, 2 = Range, 3 = Speed, 4 = Micro Detection, default = 1




31
32
33
# File 'lib/rfbeam/kld7/module_params.rb', line 31

def digital_output2
  query_parameter RADAR_PARAMETERS[:digital_output2].grps_index
end

#digital_output2=(value = 1) ⇒ Object Also known as: dig2=, set_digital_output2

Raises:

  • (ArgumentError)


35
36
37
38
39
40
# File 'lib/rfbeam/kld7/module_params.rb', line 35

def digital_output2=(value = 1)
  raise ArgumentError, "Invalid arg: '#{value}'" unless (0..4).cover?(value)
  raise ArgumentError, 'Expected an Integer' unless value.is_a?(Integer)

  set_parameter :dig2, value, :uint32
end

#digital_output3Object


Digital output 3, 0 = Direction, 1 = Angle, 2 = Range, 3 = Speed, 4 = Micro Detection, default = 2




47
48
49
# File 'lib/rfbeam/kld7/module_params.rb', line 47

def digital_output3
  query_parameter RADAR_PARAMETERS[:digital_output3].grps_index
end

#digital_output3=(value = 2) ⇒ Object Also known as: dig3=, set_digital_output3

Raises:

  • (ArgumentError)


51
52
53
54
55
56
# File 'lib/rfbeam/kld7/module_params.rb', line 51

def digital_output3=(value = 2)
  raise ArgumentError, "Invalid arg: '#{value}'" unless (0..4).cover?(value)
  raise ArgumentError, 'Expected an Integer' unless value.is_a?(Integer)

  set_parameter :dig3, value, :uint32
end

#hold_timeObject


Hold Time, 1 - 7200s, default = 1




63
64
65
# File 'lib/rfbeam/kld7/module_params.rb', line 63

def hold_time
  query_parameter RADAR_PARAMETERS[:hold_time].grps_index
end

#hold_time=(time = 1) ⇒ Object Also known as: hold=, set_hold_time

Raises:

  • (ArgumentError)


67
68
69
70
71
72
# File 'lib/rfbeam/kld7/module_params.rb', line 67

def hold_time=(time = 1)
  raise ArgumentError, "Invalid arg: '#{time}'" unless (1..7200).cover?(time)
  raise ArgumentError, 'Expected an Integer' unless time.is_a?(Integer)

  set_parameter :hold, time, :uint32
end

#sw_versionObject


Software Version, ‘K-LD7_APP-RFB-XXXX’




8
9
10
# File 'lib/rfbeam/kld7/module_params.rb', line 8

def sw_version
  query_parameter RADAR_PARAMETERS[:sw_version].grps_index
end