Robot Core Documentation
Loading...
Searching...
No Matches
edu.wpi.first.units.Current Class Reference

Public Member Functions

Power times (Unit< Voltage > voltage, String name, String symbol)
 

Detailed Description

Unit of electic current dimension.

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

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

Member Function Documentation

◆ times()

Power edu.wpi.first.units.Current.times ( Unit< Voltage > voltage,
String name,
String symbol )

Constructs a unit of power equivalent to this unit of electrical current multiplied by another unit of voltage. For example, Amps.times(Volts) will return a unit of power equivalent to one Watt; Amps.times(Millivolts) will return a unit of power equivalent to a milliwatt, and so on.

Parameters
voltagethe voltage unit to multiply by
namethe name of the resulting unit of power
symbolthe symbol used to represent the unit of power
Returns
the power unit

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