Changeset 22 in pacpussensors for trunk/Wifibot/ps3remote.h
- Timestamp:
- 08/02/13 16:19:44 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Wifibot/ps3remote.h
r21 r22 8 8 // version: $Id: $ 9 9 // 10 // purpose: Read the dualshock 3 button using bluetooth10 // purpose: Read the dualshock 3 buttons using bluetooth 11 11 // 12 12 *********************************************************************/ … … 17 17 # include <QApplication> 18 18 # include <QThread> 19 # include <QTimer> 19 20 20 21 # include "../Dualshock/controller.h" 21 # include "../../../pacpusbase/PacpusSocket/PacpusSocket.h pp"22 # include "../../../pacpusbase/PacpusSocket/PacpusSocket.h" 22 23 23 24 namespace pacpus { … … 32 33 void run(); 33 34 void stop(); 34 void sendCmd(uint16_t Ls, uint16_t Rs, int leftF, int rightF); 35 void mode2(); 36 void mode1(); 37 void checkMode(); 35 void setCmd(uint16_t Ls, uint16_t Rs, int leftF, int rightF); 36 void sendCmd(); 37 void modePS3(); 38 void modeChar(); 39 void modeJoystick(); 40 void checkMode(); 41 38 42 private: 39 43 ShMem *shmem; … … 42 46 int quit; 43 47 PacpusSocket * socket_; 48 QTimer * timer_; 49 char buf[4]; 50 51 public Q_SLOTS: 52 void wifibotRemanentSending(); 44 53 }; 45 54
Note:
See TracChangeset
for help on using the changeset viewer.