Last change
on this file since 30 was 22, checked in by phudelai, 11 years ago |
New control mode added + Security with the controller
|
File size:
1.1 KB
|
Rev | Line | |
---|
[21] | 1 | /*********************************************************************
|
---|
| 2 | // created: 2012/03/01 - 14:06
|
---|
| 3 | // filename: Wifibot.h
|
---|
| 4 | //
|
---|
| 5 | // author: Pierre Hudelaine
|
---|
| 6 | // Copyright Heudiasyc UMR UTC/CNRS 7253
|
---|
| 7 | //
|
---|
| 8 | // version: $Id: $
|
---|
| 9 | //
|
---|
[22] | 10 | // purpose: Control the wifibot with the dualshock 3
|
---|
[21] | 11 | //
|
---|
| 12 | *********************************************************************/
|
---|
| 13 | #ifndef WIFIBOT_API
|
---|
| 14 | # define WIFIBOT_API
|
---|
| 15 |
|
---|
| 16 | #include "ps3remote.h"
|
---|
| 17 | #include "Pacpus/kernel/Log.h"
|
---|
| 18 | #include "Pacpus/kernel/ComponentBase.h"
|
---|
| 19 | #include "Pacpus/kernel/ComponentFactory.h"
|
---|
| 20 |
|
---|
| 21 |
|
---|
| 22 | namespace pacpus {
|
---|
| 23 |
|
---|
| 24 | class WIFIBOT_API Wifibot
|
---|
| 25 | : public QObject
|
---|
| 26 | , public ComponentBase
|
---|
| 27 | {
|
---|
| 28 | Q_OBJECT
|
---|
| 29 |
|
---|
| 30 | public:
|
---|
| 31 | /// Constructor
|
---|
| 32 | Wifibot (QString name);
|
---|
| 33 | /// Destructor
|
---|
| 34 | ~Wifibot();
|
---|
| 35 |
|
---|
| 36 | protected:
|
---|
| 37 | // The 3 virtual methods relative to the ComponentBase inheritance
|
---|
| 38 | virtual void startActivity();
|
---|
| 39 | virtual void stopActivity();
|
---|
| 40 | virtual COMPONENT_CONFIGURATION configureComponent (XmlComponentConfig config);
|
---|
| 41 |
|
---|
| 42 | private:
|
---|
| 43 | PS3remote * dualshock;
|
---|
| 44 | PacpusSocket * pacpusSocket_;
|
---|
| 45 | };
|
---|
| 46 |
|
---|
| 47 | } // namespace pacpus
|
---|
| 48 | #endif |
---|
Note:
See
TracBrowser
for help on using the repository browser.