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 Distance Distance = new Distance(null, 1, "Meter", "m");
015
016  /** The standard unit of time, seconds. */
017  public static final Time Time = new Time(null, 1, "Second", "s");
018
019  /** The standard unit of mass, kilograms. */
020  public static final Mass Mass = new Mass(null, 1, "Kilogram", "Kg");
021
022  /** The standard unit of angles, radians. */
023  public static final Angle Angle = new Angle(null, 1, "Radian", "rad");
024
025  /** The standard "unitless" unit. */
026  public static final Dimensionless Value = new Dimensionless(null, 1, "<?>", "<?>");
027
028  /** The standard unit of voltage, volts. */
029  public static final Voltage Voltage = new Voltage(null, 1, "Volt", "V");
030
031  /** The standard unit of electric current, amperes. */
032  public static final Current Current = new Current(null, 1, "Amp", "A");
033
034  /** The standard unit of energy, joules. */
035  public static final Energy Energy = new Energy(null, 1, "Joule", "J");
036
037  /** The standard unit of power, watts. */
038  public static final Power Power = new Power(null, 1, "Watt", "W");
039
040  /** The standard unit of temperature, kelvin. */
041  public static final Temperature Temperature =
042      new Temperature(null, x -> x, x -> x, "Kelvin", "K");
043}