ajout module_mouvement
Dependencies: mbed xbee_lib ADXL345_I2C IMUfilter ITG3200 Motor RangeFinder Servo mbos PID
Fork of Labo_TRSE_Drone by
Revision 28:8b5ccd2f837e, committed 2013-04-03
- Comitter:
- IngesupMbed01
- Date:
- Wed Apr 03 13:48:30 2013 +0000
- Parent:
- 27:67c37f97fc66
- Child:
- 29:f8bda24002f6
- Child:
- 31:a0800d3da787
- Commit message:
- Squelette du Module Communication termin?.
Changed in this revision
--- a/Module_Communication/Module_Communication.cpp Wed Apr 03 12:45:19 2013 +0000 +++ b/Module_Communication/Module_Communication.cpp Wed Apr 03 13:48:30 2013 +0000 @@ -80,4 +80,19 @@ m_trameRxBuffer->frameBuffer(newFrame); */ + } + + void C_ModuleCommunication::traitementTrame(void) + { + if(m_trameRxBuffer.numberMessage() <= 0) return; + + frame newFrame = m_trameRxBuffer.frameBuffer(); + + switch(newFrame.identifier) { + case 0x31 : + break; + case 0x32 : + break; + + } } \ No newline at end of file
--- a/Module_Communication/Module_Communication.h Wed Apr 03 12:45:19 2013 +0000 +++ b/Module_Communication/Module_Communication.h Wed Apr 03 13:48:30 2013 +0000 @@ -46,6 +46,7 @@ /* METHODES */ void moduleCommunicationTask(void); + void traitementTrame(void); void envoiDeTrame(void); void receptionDeTrame(void);
--- a/Service/Buffer_Trame.cpp Wed Apr 03 12:45:19 2013 +0000 +++ b/Service/Buffer_Trame.cpp Wed Apr 03 13:48:30 2013 +0000 @@ -68,14 +68,7 @@ return newFrame; } - - frame C_FrameBuffer::frameBuffer(unsigned int index) - { - if(index >= m_maxSize) index = m_maxSize; - - return m_frameBuffer[index]; - } - + unsigned int C_FrameBuffer::maxSize(void) { return m_maxSize;
--- a/Service/Buffer_Trame.h Wed Apr 03 12:45:19 2013 +0000 +++ b/Service/Buffer_Trame.h Wed Apr 03 13:48:30 2013 +0000 @@ -51,7 +51,6 @@ /* Propriétés */ void frameBuffer(frame newFrame); frame frameBuffer(void); - frame frameBuffer(unsigned int index); unsigned int maxSize(void); unsigned int currentReadIndex(void); unsigned int currentWriteIndex(void);