com.openxc.measurements.Longitude Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openxc-it Show documentation
Show all versions of openxc-it Show documentation
Instrumentation test suite for OpenXC library
The newest version!
package com.openxc.measurements;
import com.openxc.units.Degree;
import com.openxc.util.Range;
/**
* The Longitude is the current longitude of the vehicle in degrees according to
* GPS.
*/
public class Longitude extends BaseMeasurement {
private final static Range RANGE = new Range(
new Degree(-179.0), new Degree(179.0));
public final static String ID = "longitude";
public Longitude(Degree value) {
super(value, RANGE);
}
public Longitude(Number value) {
this(new Degree(value));
}
@Override
public String getGenericName() {
return ID;
}
}