Class: Toybox::AntPlus::RadarTarget

Inherits:
Lang::Object show all

Overview

Represents the radar data for a tracked radar target.

Since:

  • 3.0.0

Radar Threat Side collapse

Method Summary

Methods inherited from Lang::Object

equals, hashCode, method, toString, weak

Instance Attribute Details

rangeToybox::Lang::Float

Indicates the distance to the target in metres (m).

Returns:

Since:

  • 3.0.0


15917
15918
15919
# File 'Monkeybrains.rb', line 15917

def range
  @range
end

speedToybox::Lang::Float

Indicates the speed of the target in metres per second (m/s).

Returns:

Since:

  • 3.0.0


15922
15923
15924
# File 'Monkeybrains.rb', line 15922

def speed
  @speed
end

threatToybox::Lang::Number

The THREAT_LEVEL_* threat value.

Returns:

Since:

  • 3.0.0


15907
15908
15909
# File 'Monkeybrains.rb', line 15907

def threat
  @threat
end

threatSideToybox::Lang::Number

The THREAT_SIDE_* threat position.

Returns:

Since:

  • 3.0.0


15912
15913
15914
# File 'Monkeybrains.rb', line 15912

def threatSide
  @threatSide
end