Class RobotTemperature

java.lang.Object
  extended by RobotTemperature

 class RobotTemperature
extends java.lang.Object

The class RobotTemperature provides a method for getting the temperature of the AF2 robot, based on the temperature sensed at the robot temperature sensor.


Field Summary
private  int ANALOG_INPUT_PORT_TEMPERATURE
           
private  double temperature
           
private  int TEMPERATURE_MAX
           
private  int TEMPERATURE_MIN
           
private  int TEMPERATURE_READ_PERIOD
           
private static Stopwatch temperatureTimer
           
private  MotionController theMotionController
           
 
Constructor Summary
RobotTemperature()
           
 
Method Summary
(package private)  double getTemperature()
          Get the robot temperature
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ANALOG_INPUT_PORT_TEMPERATURE

private final int ANALOG_INPUT_PORT_TEMPERATURE
See Also:
Constant Field Values

TEMPERATURE_MIN

private final int TEMPERATURE_MIN
See Also:
Constant Field Values

TEMPERATURE_MAX

private final int TEMPERATURE_MAX
See Also:
Constant Field Values

TEMPERATURE_READ_PERIOD

private final int TEMPERATURE_READ_PERIOD
See Also:
Constant Field Values

temperature

private double temperature

temperatureTimer

private static Stopwatch temperatureTimer

theMotionController

private MotionController theMotionController
Constructor Detail

RobotTemperature

RobotTemperature()
Method Detail

getTemperature

double getTemperature()
Get the robot temperature

Returns:
The robot's temperature in degrees Celsius