kaos.robots.util.gps
Class GPSConverter
java.lang.Object
kaos.robots.util.gps.GPSConverter
public class GPSConverter
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOUTHERN_HEMISPHERE
public static final int SOUTHERN_HEMISPHERE
- See Also:
- Constant Field Values
NORTHERN_HEMISPHERE
public static final int NORTHERN_HEMISPHERE
- See Also:
- Constant Field Values
GPSConverter
public GPSConverter()
getDatum
public static GPSPosition getDatum()
setDatum
public static void setDatum(Degrees latitude,
Degrees longitude)
PosConverter
public static Coordinate PosConverter(Degrees latitude,
Degrees longitude)
- UTM uses meters from reference points, so the positions are already
metric.
Subtracting northings gives distance in meters north-south.
Subtracting eastings gives distance in meters east-west.
- Parameters:
latitude
- longitude
-
- Returns:
- PosMonitorData
getGPSFromXY
public static GPSPosition getGPSFromXY(GPSPosition datum,
Coordinate pos,
int hemisphere)
- Parameters:
datum
- pos
- hemisphere
- ex. Converter.NORTHERN_HEMISPHERE
- Returns:
getXYFromGPS
public static Coordinate getXYFromGPS(GPSPosition datum,
GPSPosition location)