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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy