|
dLife Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
dlife.robot.Device
dlife.robot.ArraySensor<Float>
dlife.robot.aibo.AiboBatterySensor
public class AiboBatterySensor
Structure to store the power sensors on the Aibo. The Aibo's power sensors report the following values:
| Field Summary | |
|---|---|
static int |
CHARGE
The index of the battery charge percentage in the values array of this ArraySensor. |
static int |
CURRENT
The index of the electrical current value in the values array of this ArraySensor. |
static int |
POWER
The index of the power value in the values array of this ArraySensor. |
static int |
TEMPERATURE
The index of the temperature value in the values array of this ArraySensor. |
static int |
VOLTAGE
The index of the voltage value in the values array of this ArraySensor. |
| Fields inherited from class dlife.robot.ArraySensor |
|---|
length, values |
| Fields inherited from class dlife.robot.Device |
|---|
DEFAULT_GUI_UPDATE_DELAY, DEFAULT_READ_DELAY, myRobot, readCount |
| Constructor Summary | |
|---|---|
AiboBatterySensor()
Construct a new AiboBatterySensor object. |
|
| Method Summary | |
|---|---|
protected DeviceDisplay[] |
createGUIObjects()
Build the GUI for this AiboBatterySensor. |
void |
freeze()
Does nothing. |
float |
getBatteryCharge()
Get the percentage charge of the battery. |
float |
getBatteryCurrent()
Get the electrical current output of the battery in milliamps. |
float |
getBatteryPower()
Get the power output of the battery in mA Hours. |
float |
getBatteryTemperature()
Get the temperature of the battery in degrees Celsius. |
float |
getBatteryVoltage()
Get the battery voltage in Volts. |
void |
readStateFromRobot()
Reads the power values from the Aibo robot and stores them as strings in the value array for later access, along with units |
| Methods inherited from class dlife.robot.ArraySensor |
|---|
getAverage, getAverage, getMaximum, getMaximum, getMaximumIndex, getMaximumIndex, getMinimum, getMinimum, getMinimumIndex, getMinimumIndex, getNumValues, getSubset, getValue, getValues |
| Methods inherited from class dlife.robot.Device |
|---|
getAutoRead, getGUI, getGUIUpdateDelay, getReadDelay, getRobot, getSensorReadCount, getSensorReadRate, setAutoRead, setGUIUpdateDelay, setReadDelay, setRobot, shutDown, startAutoReadTimer, startUp, stopAutoReadTimer |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int CHARGE
public static final int TEMPERATURE
public static final int POWER
public static final int VOLTAGE
public static final int CURRENT
| Constructor Detail |
|---|
public AiboBatterySensor()
| Method Detail |
|---|
public void freeze()
freeze in class Devicepublic void readStateFromRobot()
readStateFromRobot in class Devicepublic float getBatteryCharge()
public float getBatteryTemperature()
public float getBatteryPower()
public float getBatteryVoltage()
public float getBatteryCurrent()
protected DeviceDisplay[] createGUIObjects()
createGUIObjects in class Device
|
dLife Home Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||