package com.openxc.measurements;

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

/**
 * The EngineSpeed measurement represents the speed of the engine.
 *
 * The valid range for this measurement is from 0 to 8000 RotationsPerMinute.
 */
public class EngineSpeed extends Measurement<RotationsPerMinute>
        implements VehicleMeasurement {
    private final static Range<RotationsPerMinute> RANGE =
        new Range<RotationsPerMinute>(new RotationsPerMinute(0),
                new RotationsPerMinute(8000));
    public final static String ID = "engine_speed";

    public EngineSpeed() {}

    public EngineSpeed(Double value) {
        super(new RotationsPerMinute(value), RANGE);
    }
    public EngineSpeed(RotationsPerMinute value) {
        super(value, RANGE);
    }
}

@@ -526,20 +526,21 @@
 rMinute(
-8000
+16382
 ));%0A    

Fix range of EngineSpeed measurement.