CAxs1 Class Reference

AxS1 module (Sensor, Hardware Abstraction). More...

#include <wrapper.h>

Inheritance diagram for CAxs1:

CAx CIdentifiable List of all members.

Public Member Functions

 CAxs1 ()
void readFromRobot ()
 Reads sensor module from robot into data.
void writeToRobot (byte schedule=0)
 Writes sensor module information from data to robot.
void setDistCmpVal (byte value)
byte getDistCmpVal ()
void setLightCmpVal (byte value)
byte getLightCmpVal ()
void setSoundCmpVal (byte value)
byte getSoundCmpVal ()
void setLed (byte on)
byte getLed ()
byte getDistLeft ()
byte getDistCenter ()
byte getDistRight ()
byte getLightLeft ()
byte getLightCenter ()
byte getLightRight ()
byte isDistLeft ()
byte isDistCenter ()
byte isDistRight ()
byte isLightLeft ()
byte isLightCenter ()
byte isLightRight ()
byte getSoundVolume ()
byte getMaxSoundVolume ()
void setMaxSoundVolume (byte max)
byte getSoundsCounter ()
void setSoundsCounter (byte count)
word getSoundTimestamp ()
void setSoundTimestamp (word time)
byte getBuzzerScale ()
void setBuzzerScale (byte scale)
byte getBuzzerDuration ()
void setBuzzerDuration (byte time)
void playSound (byte *sounds, int len, byte duration)

Private Attributes

byte data [19]
 sensor module information

Detailed Description

AxS1 module (Sensor, Hardware Abstraction).

After calling readFromRobot, the current state of the sensor module is accessible through the get-functions. The current values can be changed via the set-functions and can be written to the robot by calling writeToRobot.


Constructor & Destructor Documentation

CAxs1::CAxs1 (  ) 


Member Function Documentation

void CAxs1::readFromRobot (  ) 

Reads sensor module from robot into data.

void CAxs1::writeToRobot ( byte  schedule = 0  ) 

Writes sensor module information from data to robot.

void CAxs1::setDistCmpVal ( byte  value  ) 

byte CAxs1::getDistCmpVal (  ) 

void CAxs1::setLightCmpVal ( byte  value  ) 

byte CAxs1::getLightCmpVal (  ) 

void CAxs1::setSoundCmpVal ( byte  value  ) 

byte CAxs1::getSoundCmpVal (  ) 

void CAxs1::setLed ( byte  on  ) 

byte CAxs1::getLed (  ) 

byte CAxs1::getDistLeft (  ) 

byte CAxs1::getDistCenter (  ) 

byte CAxs1::getDistRight (  ) 

byte CAxs1::getLightLeft (  ) 

byte CAxs1::getLightCenter (  ) 

byte CAxs1::getLightRight (  ) 

byte CAxs1::isDistLeft (  ) 

byte CAxs1::isDistCenter (  ) 

byte CAxs1::isDistRight (  ) 

byte CAxs1::isLightLeft (  ) 

byte CAxs1::isLightCenter (  ) 

byte CAxs1::isLightRight (  ) 

byte CAxs1::getSoundVolume (  ) 

byte CAxs1::getMaxSoundVolume (  ) 

void CAxs1::setMaxSoundVolume ( byte  max  ) 

byte CAxs1::getSoundsCounter (  ) 

void CAxs1::setSoundsCounter ( byte  count  ) 

word CAxs1::getSoundTimestamp (  ) 

void CAxs1::setSoundTimestamp ( word  time  ) 

byte CAxs1::getBuzzerScale (  ) 

void CAxs1::setBuzzerScale ( byte  scale  ) 

byte CAxs1::getBuzzerDuration (  ) 

void CAxs1::setBuzzerDuration ( byte  time  ) 

void CAxs1::playSound ( byte sounds,
int  len,
byte  duration 
)


Member Data Documentation

byte CAxs1::data[19] [private]

sensor module information


The documentation for this class was generated from the following files:
Generated on Mon Apr 21 23:27:43 2008 for BioloidControl by  doxygen 1.5.2