RobotCore 1.0
WPILib port to raspberry Pi
Loading...
Searching...
No Matches
org.wpilib.units.PowerUnit Class Reference
Inheritance diagram for org.wpilib.units.PowerUnit:
org.wpilib.units.PerUnit< EnergyUnit, TimeUnit >

Public Member Functions

PowerUnit getBaseUnit ()
Power of (double magnitude)
Power ofBaseUnits (double baseUnitMagnitude)
Power zero ()
Power one ()
VelocityUnit< PowerUnit > per (TimeUnit time)
double convertFrom (double magnitude, PowerUnit otherUnit)
Public Member Functions inherited from org.wpilib.units.PerUnit< EnergyUnit, 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 PowerUnit combine (EnergyUnit energy, TimeUnit period)
static PowerUnit combine (VoltageUnit voltage, CurrentUnit current)
static PowerUnit combine (CurrentUnit current, VoltageUnit voltage)
static PowerUnit combine (AngularVelocityUnit angularVelocity, TorqueUnit torque)
static PowerUnit combine (TorqueUnit torque, AngularVelocityUnit angularVelocity)
Static Public Member Functions inherited from org.wpilib.units.PerUnit< EnergyUnit, TimeUnit >
static< N extends Unit, D extends Unit > PerUnit< N, D > combine (N numerator, D denominator)

Detailed Description

Unit of power dimension.

This is the base type for units of power dimension. It is also used to specify the dimension for Measure: Measure<PowerUnit>.

Actual units (such as Units#Watts and Units#Horsepower) can be found in the Units class.

Definition at line 21 of file PowerUnit.java.

Member Function Documentation

◆ combine() [1/5]

PowerUnit org.wpilib.units.PowerUnit.combine ( AngularVelocityUnit angularVelocity,
TorqueUnit torque )
static

Combines angular velocity and torque into power. Useful when dealing with motors and flywheels.

Parameters
angularVelocitythe unit of angular velocity
torquethe unit of torque
Returns
the combined unit of power

Definition at line 89 of file PowerUnit.java.

◆ combine() [2/5]

PowerUnit org.wpilib.units.PowerUnit.combine ( CurrentUnit current,
VoltageUnit voltage )
static

Combines voltage and current into power.

Parameters
currentthe unit of current
voltagethe unit of voltage
Returns
the combined unit of power

Definition at line 78 of file PowerUnit.java.

◆ combine() [3/5]

PowerUnit org.wpilib.units.PowerUnit.combine ( EnergyUnit energy,
TimeUnit period )
static

Combines an energy and a time unit to form a unit of power.

Parameters
energythe unit of energy
periodthe unit of time
Returns
the combined unit of power

Definition at line 50 of file PowerUnit.java.

◆ combine() [4/5]

PowerUnit org.wpilib.units.PowerUnit.combine ( TorqueUnit torque,
AngularVelocityUnit angularVelocity )
static

Combines angular velocity and torque into power. Useful when dealing with motors and flywheels.

Parameters
torquethe unit of torque
angularVelocitythe unit of angular velocity
Returns
the combined unit of power

Definition at line 102 of file PowerUnit.java.

◆ combine() [5/5]

PowerUnit org.wpilib.units.PowerUnit.combine ( VoltageUnit voltage,
CurrentUnit current )
static

Combines voltage and current into power.

Parameters
voltagethe unit of voltage
currentthe unit of current
Returns
the combined unit of power

Definition at line 61 of file PowerUnit.java.

◆ convertFrom()

double org.wpilib.units.PowerUnit.convertFrom ( double magnitude,
PowerUnit otherUnit )

Converts a measurement value in terms of another power unit to this unit.

Parameters
magnitudethe magnitude of the measurement in terms of the other power unit
otherUnitthe other power unit
Returns
the value of the measurement in terms of this unit

Definition at line 154 of file PowerUnit.java.

◆ getBaseUnit()

PowerUnit org.wpilib.units.PowerUnit.getBaseUnit ( )

Definition at line 107 of file PowerUnit.java.

◆ of()

Power org.wpilib.units.PowerUnit.of ( double magnitude)

Definition at line 112 of file PowerUnit.java.

◆ ofBaseUnits()

Power org.wpilib.units.PowerUnit.ofBaseUnits ( double baseUnitMagnitude)

Definition at line 117 of file PowerUnit.java.

◆ one()

Power org.wpilib.units.PowerUnit.one ( )

Definition at line 127 of file PowerUnit.java.

◆ per()

VelocityUnit< PowerUnit > org.wpilib.units.PowerUnit.per ( TimeUnit time)

Definition at line 132 of file PowerUnit.java.

◆ zero()

Power org.wpilib.units.PowerUnit.zero ( )

Definition at line 122 of file PowerUnit.java.


The documentation for this class was generated from the following file: