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