Gives access to the robots head.
More...
#include <head.h>
List of all members.
Public Slots |
void | look (QString direction) |
Private Member Functions |
void | eye (unsigned char whichEye, QString direction) |
void | eyebrow (unsigned char whichBrow, QString direction) |
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
Member Function Documentation
void Head::eye |
( |
unsigned char |
whichEye, |
|
|
QString |
direction |
|
) |
| |
|
private |
void Head::eyebrow |
( |
unsigned char |
whichBrow, |
|
|
QString |
direction |
|
) |
| |
|
private |
void Head::look |
( |
QString |
direction | ) |
|
|
slot |
- Parameters:
-
direction | where to look can be LEFT, RIGHT... or CURIOUS, NORMAL... |
Definition at line 42 of file head.cpp.
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 |
const unsigned char Head::RIGHTEYE = 2 |
|
staticprivate |
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 |
const unsigned char Head::SERVO3 = 2 |
|
staticprivate |
const unsigned char Head::SERVO4 = 3 |
|
staticprivate |
const unsigned char Head::SERVO5 = 4 |
|
staticprivate |
const unsigned char Head::SERVO6 = 5 |
|
staticprivate |
const unsigned char Head::SVCURRENT = 3 |
|
staticprivate |
const unsigned char Head::SVDEFAULT = 2 |
|
staticprivate |
const unsigned char Head::SVEND = 1 |
|
staticprivate |
const unsigned char Head::SVMAX = 5 |
|
staticprivate |
const unsigned char Head::SVMIN = 4 |
|
staticprivate |
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: