Virtual Robot Racing League

Developer Center

VRRL
IRFSensor Interface Reference

A directional RF sensor that detects the direction of the next goal More...

Inheritance diagram for IRFSensor:
IRobotSensor

Public Member Functions

void GetEffectiveRange (out double min, out double max)
 Gets the minimum and maximum effective range of this sensor, outside of which the reading may become unavailable or unreliable More...
 
void GetDetectedOffsetToGoal (out double x, out double y, out double z)
 Gets the detected offset to the next goal point, relative to the drone's orientation More...
 

Additional Inherited Members

- Properties inherited from IRobotSensor
IRobotExplorer Robot [get]
 The robot this sensor is attached to More...
 
int SensorIndex [get]
 The index of this sensor in the robot's list of sensors More...
 

Detailed Description

A directional RF sensor that detects the direction of the next goal

Member Function Documentation

◆ GetDetectedOffsetToGoal()

void IRFSensor.GetDetectedOffsetToGoal ( out double  x,
out double  y,
out double  z 
)

Gets the detected offset to the next goal point, relative to the drone's orientation

Parameters
xThe left-right offset to the goal point from the drone
yThe down-up offset to the goal point from the drone
zThe back-forward offset to the goal point from the drone

◆ GetEffectiveRange()

void IRFSensor.GetEffectiveRange ( out double  min,
out double  max 
)

Gets the minimum and maximum effective range of this sensor, outside of which the reading may become unavailable or unreliable

Parameters
minThe minimum range of the sensor, in meters
maxThe maximum range of the sensor, in meters