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

Mouvement Class Reference

Mouvement Class Reference

Class define a mouvement and send a code in xbee. More...

Public Member Functions

 Mouvement (short code, short code_envoie, string definition, bool h)
 Constructor.
string definition () const
 Get definition.
void sendData (Trame *trame)
 Construct data in char* and send this.

Detailed Description

Class define a mouvement and send a code in xbee.

Definition at line 21 of file mouvement.h.


Constructor & Destructor Documentation

Mouvement ( short  code,
short  code_envoie,
string  definition,
bool  h 
)

Constructor.

Parameters:
codeCode to find mouvement
code_envoieCode to send in xbee
definitionDefinition of the mouvement
hThe hand true = left false = right

Definition at line 3 of file mouvement.cpp.


Member Function Documentation

string definition (  ) const

Get definition.

Returns:
_definition

Definition at line 37 of file mouvement.h.

void sendData ( Trame trame )

Construct data in char* and send this.

Parameters:
trameTrame the send in xbee

Definition at line 11 of file mouvement.cpp.