direcs  2012-09-30
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Head Class Reference

Gives access to the robots head. More...

#include <head.h>

Collaboration diagram for Head:

List of all members.

Public Slots

void look (QString direction)

Public Member Functions

 Head (Servo *s)
 ~Head ()

Private Member Functions

void eye (unsigned char whichEye, QString direction)
void eyebrow (unsigned char whichBrow, QString direction)

Private Attributes

Servoservos

Static Private Attributes

static const unsigned char LEFTBROW = 1
 the possible eyebrows
static const unsigned char LEFTEYE = 1
 the possible eyes
static const unsigned char RIGHTBROW = 2
static const unsigned char RIGHTEYE = 2
static const unsigned char SERVO1 = 0
 the servo numbers
static const unsigned char SERVO2 = 1
static const unsigned char SERVO3 = 2
static const unsigned char SERVO4 = 3
static const unsigned char SERVO5 = 4
static const unsigned char SERVO6 = 5
static const unsigned char SVCURRENT = 3
static const unsigned char SVDEFAULT = 2
static const unsigned char SVEND = 1
static const unsigned char SVMAX = 5
static const unsigned char SVMIN = 4
static const unsigned char SVSTART = 0
 the possible servo data

Detailed Description

Gives access to the robots head.

Author:
Markus Knapp The Head class gives access to the head of the robot. The head may turn right, up, down, smile, look left ... (to be defined/implemented).

Definition at line 34 of file head.h.


Constructor & Destructor Documentation

Head::Head ( Servo s)

Definition at line 23 of file head.cpp.

Head::~Head ( )

Definition at line 34 of file head.cpp.


Member Function Documentation

void Head::eye ( unsigned char  whichEye,
QString  direction 
)
private

Definition at line 131 of file head.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Head::eyebrow ( unsigned char  whichBrow,
QString  direction 
)
private

Definition at line 361 of file head.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

void Head::look ( QString  direction)
slot
Parameters:
directionwhere to look can be LEFT, RIGHT... or CURIOUS, NORMAL...

Definition at line 42 of file head.cpp.

Here is the call graph for this function:


Member Data Documentation

const unsigned char Head::LEFTBROW = 1
staticprivate

the possible eyebrows

Definition at line 60 of file head.h.

const unsigned char Head::LEFTEYE = 1
staticprivate

the possible eyes

Definition at line 56 of file head.h.

const unsigned char Head::RIGHTBROW = 2
staticprivate

Definition at line 61 of file head.h.

const unsigned char Head::RIGHTEYE = 2
staticprivate

Definition at line 57 of file head.h.

const unsigned char Head::SERVO1 = 0
staticprivate

the servo numbers

Definition at line 72 of file head.h.

const unsigned char Head::SERVO2 = 1
staticprivate

Definition at line 73 of file head.h.

const unsigned char Head::SERVO3 = 2
staticprivate

Definition at line 74 of file head.h.

const unsigned char Head::SERVO4 = 3
staticprivate

Definition at line 75 of file head.h.

const unsigned char Head::SERVO5 = 4
staticprivate

Definition at line 76 of file head.h.

const unsigned char Head::SERVO6 = 5
staticprivate

Definition at line 77 of file head.h.

Servo* Head::servos
private

Definition at line 53 of file head.h.

const unsigned char Head::SVCURRENT = 3
staticprivate

Definition at line 67 of file head.h.

const unsigned char Head::SVDEFAULT = 2
staticprivate

Definition at line 66 of file head.h.

const unsigned char Head::SVEND = 1
staticprivate

Definition at line 65 of file head.h.

const unsigned char Head::SVMAX = 5
staticprivate

Definition at line 69 of file head.h.

const unsigned char Head::SVMIN = 4
staticprivate

Definition at line 68 of file head.h.

const unsigned char Head::SVSTART = 0
staticprivate

the possible servo data

Definition at line 64 of file head.h.


The documentation for this class was generated from the following files: