Class: Argus::NavOptionVisionDetect

Inherits:
NavOption
  • Object
show all
Includes:
CFields
Defined in:
lib/argus/nav_option_vision_detect.rb

Defined Under Namespace

Classes: Detection

Constant Summary collapse

NB_NAVDATA_DETECTION_RESULTS =
4

Instance Attribute Summary

Attributes inherited from NavOption

#tag

Class Method Summary collapse

Instance Method Summary collapse

Methods included from CFields

included, #initialize, #unpack_data

Methods inherited from NavOption

initial_format, #initialize, options, parse, register, #size

Class Method Details

.tagObject


76
77
78
# File 'lib/argus/nav_option_vision_detect.rb', line 76

def self.tag
  NavTag::VISION_DETECT
end

Instance Method Details

#detectionsObject


72
73
74
# File 'lib/argus/nav_option_vision_detect.rb', line 72

def detections
  @detections ||= (0...detected_count).map { |i| Detection.new(self, i) }
end

#type_nameObject


68
69
70
# File 'lib/argus/nav_option_vision_detect.rb', line 68

def type_name
  type.map { |t| CadType::NAMES[t] }
end