001// Copyright (c) FIRST and other WPILib contributors.
002// Open Source Software; you can modify and/or share it under the terms of
003// the WPILib BSD license file in the root directory of this project.
004
005package edu.wpi.first.units;
006
007/** The base units of measure. */
008public final class BaseUnits {
009  private BaseUnits() {
010    // Prevent instantiation
011  }
012
013  /** The standard unit of distance, meters. */
014  public static final DistanceUnit DistanceUnit = new DistanceUnit(null, 1, "Meter", "m");
015
016  /** The standard unit of time, seconds. */
017  public static final TimeUnit TimeUnit = new TimeUnit(null, 1, "Second", "s");
018
019  /** The standard unit of mass, kilograms. */
020  public static final MassUnit MassUnit = new MassUnit(null, 1, "Kilogram", "Kg");
021
022  /** The standard unit of angles, radians. */
023  public static final AngleUnit AngleUnit = new AngleUnit(null, 1, "Radian", "rad");
024
025  /** The standard "unitless" unit. */
026  public static final DimensionlessUnit Value = new DimensionlessUnit(null, 1, "<?>", "<?>");
027
028  /** The standard unit of voltage, volts. */
029  public static final VoltageUnit VoltageUnit = new VoltageUnit(null, 1, "Volt", "V");
030
031  /** The standard unit of electric current, amperes. */
032  public static final CurrentUnit CurrentUnit = new CurrentUnit(null, 1, "Amp", "A");
033
034  /** The standard unit of energy, joules. */
035  public static final EnergyUnit EnergyUnit = new EnergyUnit(null, 1, "Joule", "J");
036
037  /** The standard unit of temperature, kelvin. */
038  public static final TemperatureUnit TemperatureUnit =
039      new TemperatureUnit(null, x -> x, x -> x, "Kelvin", "K");
040}