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


17667
17668
17669
# File 'Monkeybrains.rb', line 17667

def range
  @range
end

speedToybox::Lang::Float

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

Returns:

Since:

  • 3.0.0


17672
17673
17674
# File 'Monkeybrains.rb', line 17672

def speed
  @speed
end

threatToybox::Lang::Number

The THREAT_LEVEL_* threat value.

Returns:

Since:

  • 3.0.0


17657
17658
17659
# File 'Monkeybrains.rb', line 17657

def threat
  @threat
end

threatSideToybox::Lang::Number

The THREAT_SIDE_* threat position.

Returns:

Since:

  • 3.0.0


17662
17663
17664
# File 'Monkeybrains.rb', line 17662

def threatSide
  @threatSide
end