com.openxc.measurements.VehicleSpeed 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.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;
}
}