kaos.robots.util.gps
Class GPSConverter

java.lang.Object
  extended by kaos.robots.util.gps.GPSConverter

public class GPSConverter
extends java.lang.Object


Field Summary
static int NORTHERN_HEMISPHERE
           
static int SOUTHERN_HEMISPHERE
           
 
Constructor Summary
GPSConverter()
           
 
Method Summary
static GPSPosition getDatum()
           
static GPSPosition getGPSFromXY(GPSPosition datum, Coordinate pos, int hemisphere)
           
static Coordinate getXYFromGPS(GPSPosition datum, GPSPosition location)
           
static Coordinate PosConverter(Degrees latitude, Degrees longitude)
          UTM uses meters from reference points, so the positions are already metric.
static void setDatum(Degrees latitude, Degrees longitude)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

GPSConverter

public GPSConverter()
Method Detail

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)