public class FixedRangeScanner extends java.lang.Object implements RangeScanner
Modifier and Type | Field and Description |
---|---|
protected float[] |
angles |
protected int |
MAX_RELIABLE_RANGE_READING |
protected RotateMoveController |
pilot |
protected RangeFinder |
rangeFinder |
protected RangeReadings |
readings |
protected int |
ZERO |
Constructor and Description |
---|
FixedRangeScanner(RotateMoveController aPilot,
RangeFinder rangeFinder) |
Modifier and Type | Method and Description |
---|---|
RangeFinder |
getRangeFinder()
returns the rangeFinder - allows other objects to get a range value.
|
RangeReadings |
getRangeValues()
Return a set of range readings determined taken at the relative bearings
defined in the angles array;
The robot rotates back to its original heading at the end.
|
void |
setAngles(float[] angleSet)
Set the array of angles at which range readings are to be taken
|
protected RangeFinder rangeFinder
protected RotateMoveController pilot
protected float[] angles
protected final int MAX_RELIABLE_RANGE_READING
protected final int ZERO
protected RangeReadings readings
public FixedRangeScanner(RotateMoveController aPilot, RangeFinder rangeFinder)
public RangeReadings getRangeValues()
getRangeValues
in interface RangeScanner
public void setAngles(float[] angleSet)
RangeScanner
setAngles
in interface RangeScanner
angleSet
- public RangeFinder getRangeFinder()
getRangeFinder
in interface RangeScanner