public class LBLTriangulationHelper
extends java.lang.Object
Constructor and Description |
---|
LBLTriangulationHelper(TransponderElement[] transpondersArray,
LocationType start) |
Modifier and Type | Method and Description |
---|---|
LocationType |
getLastKnownPos() |
long |
getLastKnownPosMillis() |
void |
reset()
Used to reset the values.
|
void |
reset(TransponderElement[] transpondersArray,
LocationType start)
Used to reset the values and transponders list.
|
void |
resetLastKnownPos(LocationType lastKnownPos,
long lastKnownPosMillis)
This will update the last known position to be used.
|
LocationType |
updateRange(long id,
double range,
long timeStampMillis,
java.lang.String reason) |
LocationType |
updateRangeAccepted(long id,
double range,
long timeStampMillis)
Used for a valid range.
|
LocationType |
updateRangeRejected(long id,
double range,
long timeStampMillis,
java.lang.String reason)
Used for an invalid range.
|
public LBLTriangulationHelper(TransponderElement[] transpondersArray, LocationType start) throws java.lang.Exception
transpondersArray
- Ordered transponders to usestart
- Start location to disambiguate the side of the baselinejava.lang.Exception
public void reset(TransponderElement[] transpondersArray, LocationType start) throws java.lang.Exception
java.lang.Exception
public void reset()
public LocationType getLastKnownPos()
public void resetLastKnownPos(LocationType lastKnownPos, long lastKnownPosMillis)
public long getLastKnownPosMillis()
public LocationType updateRangeAccepted(long id, double range, long timeStampMillis)
id
- Of the transponderrange
- the range in meterstimeStampMillis
- the timestamp in millis of the rangepublic LocationType updateRange(long id, double range, long timeStampMillis, java.lang.String reason)
public LocationType updateRangeRejected(long id, double range, long timeStampMillis, java.lang.String reason)
id
- Of the transponderrange
- the range in meterstimeStampMillis
- the timestamp in millis of the rangeCopyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.