direcs
2012-09-30
Main Page
Related Pages
Classes
Files
File List
File Members
All
Classes
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
head.h
Go to the documentation of this file.
1
/*************************************************************************
2
* Copyright (C) Markus Knapp *
3
* www.direcs.de *
4
* *
5
* This file is part of direcs. *
6
* *
7
* direcs is free software: you can redistribute it and/or modify it *
8
* under the terms of the GNU General Public License as published *
9
* by the Free Software Foundation, version 3 of the License. *
10
* *
11
* direcs is distributed in the hope that it will be useful, *
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
14
* GNU General Public License for more details. *
15
* *
16
* You should have received a copy of the GNU General Public License *
17
* along with direcs. If not, see <http://www.gnu.org/licenses/>. *
18
* *
19
*************************************************************************/
20
21
#ifndef HEAD_H
22
#define HEAD_H
23
24
//-------------------------------------------------------------------
25
#include "
servo.h
"
26
//-------------------------------------------------------------------
27
34
class
Head
:
public
QObject
35
{
36
Q_OBJECT
37
38
public
:
39
Head
(
Servo
*s);
40
~Head
();
41
42
43
public
slots:
47
void
look
(QString direction);
48
49
50
private
:
51
void
eye
(
unsigned
char
whichEye, QString direction);
52
void
eyebrow
(
unsigned
char
whichBrow, QString direction);
53
Servo
*
servos
;
54
56
static
const
unsigned
char
LEFTEYE
= 1;
57
static
const
unsigned
char
RIGHTEYE
= 2;
58
60
static
const
unsigned
char
LEFTBROW
= 1;
61
static
const
unsigned
char
RIGHTBROW
= 2;
62
64
static
const
unsigned
char
SVSTART
= 0;
65
static
const
unsigned
char
SVEND
= 1;
66
static
const
unsigned
char
SVDEFAULT
= 2;
67
static
const
unsigned
char
SVCURRENT
= 3;
68
static
const
unsigned
char
SVMIN
= 4;
69
static
const
unsigned
char
SVMAX
= 5;
70
72
static
const
unsigned
char
SERVO1
= 0;
73
static
const
unsigned
char
SERVO2
= 1;
74
static
const
unsigned
char
SERVO3
= 2;
75
static
const
unsigned
char
SERVO4
= 3;
76
static
const
unsigned
char
SERVO5
= 4;
77
static
const
unsigned
char
SERVO6
= 5;
78
};
79
80
#endif
direcs
src
head.h
Generated on Sat Feb 2 2013 21:41:01 for direcs by
1.8.1.1