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


17694
17695
17696
# File 'Monkeybrains.rb', line 17694

def range
  @range
end

speedToybox::Lang::Float

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

Returns:

Since:

  • 3.0.0


17699
17700
17701
# File 'Monkeybrains.rb', line 17699

def speed
  @speed
end

threatToybox::Lang::Number

The THREAT_LEVEL_* threat value.

Returns:

Since:

  • 3.0.0


17684
17685
17686
# File 'Monkeybrains.rb', line 17684

def threat
  @threat
end

threatSideToybox::Lang::Number

The THREAT_SIDE_* threat position.

Returns:

Since:

  • 3.0.0


17689
17690
17691
# File 'Monkeybrains.rb', line 17689

def threatSide
  @threatSide
end