com.openxc.measurements.Latitude 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
package com.openxc.measurements;
import com.openxc.units.Degree;
import com.openxc.util.Range;
/**
* The Latitude is the current latitude of the vehicle in degrees according to
* GPS.
*/
public class Latitude extends BaseMeasurement {
private final static Range RANGE = new Range(
new Degree(-89.0), new Degree(89.0));
public final static String ID = "latitude";
public Latitude(Degree value) {
super(value, RANGE);
}
public Latitude(Number value) {
this(new Degree(value));
}
@Override
public String getGenericName() {
return ID;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy