Class RobotTemperature
java.lang.Object
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.
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 |
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
RobotTemperature
RobotTemperature()
getTemperature
double getTemperature()
- Get the robot temperature
- Returns:
- The robot's temperature in degrees Celsius