Projet S5 Info / Mbed 2 deprecated Projet_S5

Dependencies:   mbed PowerControl

Fork of Projet_S5 by Jonathan Tousignant

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers mouvement.h Source File

mouvement.h

00001 /*!
00002  *  \file mouvement.cpp
00003  *  \brief Class that send mouvement and contain a definition
00004  *  \author Equipe P02
00005  *  \version 1
00006  *  \date 9/04/2014
00007  */
00008  
00009 #ifndef MOUVEMENT_H
00010 #define MOUVEMENT_H
00011 
00012 #include "trame.h"
00013 #include <string>
00014 
00015 using namespace std;
00016 
00017 /*! 
00018  *  \class Mouvement mouvement "mouvement.h"
00019  *  \brief Class define a mouvement and send a code in xbee
00020  */
00021 class Mouvement
00022 {
00023 public:
00024     /*!
00025      *  \brief Constructor
00026      *  \param code Code to find mouvement
00027      *  \param code_envoie Code to send in xbee
00028      *  \param definition Definition of the mouvement
00029      *  \param h The hand true = left false = right
00030      */
00031     Mouvement(short code, short code_envoie, string definition, bool h);
00032     
00033     /*!
00034      * \brief Get definition
00035      * \return _definition
00036      */
00037     string definition() const { return _definition; }
00038     
00039     /*!
00040      *  \brief Construct data in char* and send this
00041      *  \param trame Trame the send in xbee
00042      */
00043     void sendData(Trame *trame);
00044     
00045 private:
00046     short _code; /*!< Code that define mouvement */
00047     short _code_envoie; /*!< Code that send in xbee */
00048     string _definition; /*!< Definition of the mouvement */
00049     bool hand; /*!< The hand use */
00050 };
00051 
00052 #endif