com.openxc.measurements.AcceleratorPedalPosition 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.Percentage;
import com.openxc.util.Range;
/**
* The AcceleratorPedalPosition is the percentage the pedal is depressed.
*
* When the pedal is fully depressed, the position is 100%. When it is not
* pressed at all, the position is 0%.
*/
public class AcceleratorPedalPosition extends BaseMeasurement {
private final static Range RANGE =
new Range(new Percentage(0), new Percentage(100));
public final static String ID = "accelerator_pedal_position";
public AcceleratorPedalPosition(Number value) {
super(new Percentage(value), RANGE);
}
public AcceleratorPedalPosition(Percentage value) {
super(value, RANGE);
}
@Override
public String getGenericName() {
return ID;
}
}