/
comThread.h
67 lines (58 loc) · 1.66 KB
/
comThread.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/**
* \file comThread.h
* \author Xavier RODRIGUEZ
* \date 05/03/2012
*
* <p>Fonctions à lier aux define dans le comManager</p>
*
* */
#ifndef COMTHREAD_H
#define COMTHREAD_H
#include "protocole.h"
void ping() {
cout << "pong";
}
void ident() {
cout << "hokuyo";
}
/***********************************************************************
* <h1>QH_GETDATA</h1>
* <p>Fonction retournant la postion des robots en coordonnées
* cartésiennes</p>
**********************************************************************/
// #define QH_GETDATA 1
void send(void)
{
application->ud->sendInfos();
}
/***********************************************************************
* <h1>QH_SET_REDCOLOR</h1>
* <p>Dit à l'hokuyo que notre robot est sur la couleur rouge</p>
**********************************************************************/
// #define QH_SET_REDCOLOR 2
void setRed(void)
{
application->ud->stop();
application->ud->updateParamWithColor(ROUGE);
application->ud->start();
cout << 0;
}
/***********************************************************************
* <h1>QH_SET_PURPLECOLOR</h1>
* <p>Dit à l'hokuyo que notre robot est sur la couleur violet</p>
**********************************************************************/
// #define QH_SET_PURPLECOLOR 3
void setPurple(void)
{
application->ud->stop();
application->ud->updateParamWithColor(BLEU);
application->ud->start();
cout << 0;
}
/***********************************************************************
* <h1>QH_KILL</h1>
* <p>Kill com</p>
**********************************************************************/
// #define QH_KILL 9
// No Function for kill
#endif // COMTHREAD_H