All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.openxc.measurements.Longitude Maven / Gradle / Ivy

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;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy