jBotBrain.hw
Class AnalogInput

java.lang.Object
  extended by jBotBrain.hw.AnalogInput

public class AnalogInput
extends Object

An abstraction of analog inputs.

Author:
Martin Wolf

Field Summary
static AnalogInput A
          AnalogInput A, assigned to input 0.
static AnalogInput B
          AnalogInput B, assigned to input 1.
static AnalogInput C
          AnalogInput C, assigned to input 2.
static AnalogInput D
          AnalogInput D, assigned to input 3.
static AnalogInput[] Inputs
          Array of analog inputs.
 
Method Summary
 int readValue_mV()
          Returns the input voltage in milivolts.
 float readValue_V()
          Returns the input voltage in volts.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
 

Field Detail

A

public static final AnalogInput A
AnalogInput A, assigned to input 0.


B

public static final AnalogInput B
AnalogInput B, assigned to input 1.


C

public static final AnalogInput C
AnalogInput C, assigned to input 2.


D

public static final AnalogInput D
AnalogInput D, assigned to input 3.


Inputs

public static final AnalogInput[] Inputs
Array of analog inputs.

Method Detail

readValue_mV

public int readValue_mV()
Returns the input voltage in milivolts.

Returns:
Input voltage in mV.

readValue_V

public float readValue_V()
Returns the input voltage in volts.

Returns:
Input voltage in volts.