Changeset 22 in pacpussensors for trunk/Wifibot/ps3remote.h


Ignore:
Timestamp:
08/02/13 16:19:44 (11 years ago)
Author:
phudelai
Message:

New control mode added + Security with the controller

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Wifibot/ps3remote.h

    r21 r22  
    88//  version:    $Id: $
    99//
    10 //  purpose:    Read the dualshock 3 button using bluetooth
     10//  purpose:    Read the dualshock 3 buttons using bluetooth
    1111//
    1212*********************************************************************/
     
    1717# include <QApplication>
    1818# include <QThread>
     19# include <QTimer>
    1920
    2021# include "../Dualshock/controller.h"
    21 # include "../../../pacpusbase/PacpusSocket/PacpusSocket.hpp"
     22# include "../../../pacpusbase/PacpusSocket/PacpusSocket.h"
    2223
    2324namespace pacpus {
     
    3233            void run();
    3334            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           
    3842        private:
    3943            ShMem *shmem;
     
    4246            int quit;
    4347            PacpusSocket * socket_;
     48            QTimer * timer_;
     49            char buf[4];
     50
     51        public Q_SLOTS:
     52            void wifibotRemanentSending();
    4453    };
    4554
Note: See TracChangeset for help on using the changeset viewer.