|
RobotCore 1.0
WPILib port to raspberry Pi
|
Public Member Functions | |
| VelocityUnit< D > | getBaseUnit () |
| D | getUnit () |
| TimeUnit | getPeriod () |
| Velocity< D > | of (double magnitude) |
| Velocity< D > | ofBaseUnits (double baseUnitMagnitude) |
| Velocity< D > | zero () |
| Velocity< D > | one () |
| AccelerationUnit< D > | per (TimeUnit period) |
| double | convertFrom (double magnitude, VelocityUnit<? extends D > otherUnit) |
| Public Member Functions inherited from org.wpilib.units.PerUnit< D, TimeUnit > | |
| PerUnit< N, D > | getBaseUnit () |
| N | numerator () |
| D | denominator () |
| PerUnit< D, N > | reciprocal () |
| N | mult (D denom) |
| Measure<? extends PerUnit< N, D > > | of (double magnitude) |
| Measure<? extends PerUnit< N, D > > | ofBaseUnits (double baseUnitMagnitude) |
| final Per< N, D > | ofNative (double magnitude) |
| final Per< N, D > | ofNativeBaseUnits (double baseUnitMagnitude) |
| Measure<? extends PerUnit< N, D > > | zero () |
| Measure<? extends PerUnit< N, D > > | one () |
| Unit | per (TimeUnit time) |
| double | convertFrom (double magnitude, PerUnit<? extends N, ? extends D > otherUnit) |
| boolean | equals (Object o) |
| int | hashCode () |
Static Public Member Functions | |
| static< D extends Unit > VelocityUnit< D > | combine (D unit, TimeUnit period) |
| Static Public Member Functions inherited from org.wpilib.units.PerUnit< D, TimeUnit > | |
| static< N extends Unit, D extends Unit > PerUnit< N, D > | combine (N numerator, D denominator) |
Unit of velocity dimension that is a combination of a distance unit (numerator) and a time unit (denominator).
This is a generic velocity type for units that do not have discrete velocity units (eg DistanceUnit has LinearVelocityUnit, and so would not use this class).
| <D> | the unit of the changing quantity, such as VoltageUnit or TemperatureUnit |
Definition at line 19 of file VelocityUnit.java.
|
static |
Combines a dimension unit and a unit of the period of change to create a unit of velocity.
| unit | the unit of the changing dimension |
| period | the unit of the period of change in the velocity |
| <D> | the unit of the changing dimension |
Definition at line 52 of file VelocityUnit.java.
| double org.wpilib.units.VelocityUnit< D extends Unit >.convertFrom | ( | double | magnitude, |
| VelocityUnit<? extends D > | otherUnit ) |
Converts a measurement value in terms of another velocity unit to this unit.
| magnitude | the magnitude of the measurement in terms of the other velocity unit |
| otherUnit | the other velocity unit |
Definition at line 130 of file VelocityUnit.java.
| VelocityUnit< D > org.wpilib.units.VelocityUnit< D extends Unit >.getBaseUnit | ( | ) |
Definition at line 57 of file VelocityUnit.java.
| TimeUnit org.wpilib.units.VelocityUnit< D extends Unit >.getPeriod | ( | ) |
Gets the period unit of the velocity, eg Seconds or Milliseconds.
Definition at line 75 of file VelocityUnit.java.
| D org.wpilib.units.VelocityUnit< D extends Unit >.getUnit | ( | ) |
Gets the major unit being measured (eg Meters for Meters per Second).
Definition at line 66 of file VelocityUnit.java.
| Velocity< D > org.wpilib.units.VelocityUnit< D extends Unit >.of | ( | double | magnitude | ) |
Definition at line 80 of file VelocityUnit.java.
| Velocity< D > org.wpilib.units.VelocityUnit< D extends Unit >.ofBaseUnits | ( | double | baseUnitMagnitude | ) |
Definition at line 85 of file VelocityUnit.java.
| Velocity< D > org.wpilib.units.VelocityUnit< D extends Unit >.one | ( | ) |
Definition at line 97 of file VelocityUnit.java.
| AccelerationUnit< D > org.wpilib.units.VelocityUnit< D extends Unit >.per | ( | TimeUnit | period | ) |
Combines this velocity unit with a unit of a period of change to create an acceleration unit.
| period | the unit of the period of change |
Definition at line 108 of file VelocityUnit.java.
| Velocity< D > org.wpilib.units.VelocityUnit< D extends Unit >.zero | ( | ) |
Definition at line 91 of file VelocityUnit.java.