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

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

The newest version!
package com.openxc.measurements;

import com.openxc.units.KilometersPerHour;
import com.openxc.util.Range;

/**
 * The VehicleSpeed is the current forward speed of the vehicle.
 */
public class VehicleSpeed extends BaseMeasurement {
    private final static Range RANGE =
        new Range(new KilometersPerHour(0.0),
                new KilometersPerHour(655.0));
    public final static String ID = "vehicle_speed";

    public VehicleSpeed(KilometersPerHour value) {
        super(value, RANGE);
    }

    public VehicleSpeed(Number value) {
        this(new KilometersPerHour(value));
    }

    @Override
    public String getGenericName() {
        return ID;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy