koala
Interface KoalaSensors

All Known Implementing Classes:
Koala

public interface KoalaSensors

Interface comprising the Koala method calls that relate to sensors and some miscellaneous ones. This is an arbitrary division since the motors and sensors are ultimately always implemented by a single Koala object. For the same reason, refer to Koala for documentation.


Method Summary
 int getBatteryCharge()
           
 int getBatteryTemperature()
           
 int getBatteryTimeLeft()
           
 int getBatteryVoltage()
           
 int getConsumptionCurrent()
           
 java.lang.String getSoftwareVersion()
           
 int getTemperature()
           
 KoalaSensorReading readAmbientSensors()
           
 int readAnalogueInput(int channel)
           
 int readDigitalInput(int channel)
           
 KoalaSensorReading readProximitySensors()
           
 int setDigitalOutput(int channel, int state)
           
 int setLEDState(int ledNumber, int state)
           
 int setMotorPosition(int left, int right)
           
 int turnLEDOff(int led)
           
 int turnLEDOn(int led)
           
 

Method Detail

readProximitySensors

KoalaSensorReading readProximitySensors()

readAmbientSensors

KoalaSensorReading readAmbientSensors()

getBatteryTimeLeft

int getBatteryTimeLeft()

getTemperature

int getTemperature()

getBatteryCharge

int getBatteryCharge()

getBatteryTemperature

int getBatteryTemperature()

getBatteryVoltage

int getBatteryVoltage()

getConsumptionCurrent

int getConsumptionCurrent()

getSoftwareVersion

java.lang.String getSoftwareVersion()

readAnalogueInput

int readAnalogueInput(int channel)

readDigitalInput

int readDigitalInput(int channel)

setDigitalOutput

int setDigitalOutput(int channel,
                     int state)

setMotorPosition

int setMotorPosition(int left,
                     int right)

setLEDState

int setLEDState(int ledNumber,
                int state)

turnLEDOn

int turnLEDOn(int led)

turnLEDOff

int turnLEDOff(int led)