![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
This program is for an autonomous robot for the competition at the Hochschule Luzern. We are one of the 32 teams. <a href="http://cruisingcrepe.wordpress.com/">http://cruisingcrepe.wordpress.com/</a> The postition control is based on this Documentation: Control of Wheeled Mobile Robots: An Experimental Overview from Alessandro De Luca, Giuseppe Oriolo, Marilena Vendittelli. For more information see here: <a href="http://www.dis.uniroma1.it/~labrob/pub/papers/Ramsete01.pdf">http://www.dis.uniroma1.it/~labrob/pub/papers/Ramsete01.pdf</a>
Fork of autonomousRobotAndroid by
MicroBridge/PacketBuffer/PacketBuffer.h
- Committer:
- chrigelburri
- Date:
- 2013-05-03
- Revision:
- 18:306d362d692b
File content as of revision 18:306d362d692b:
/** @file PacketBuffer.h * @brief Packet Buffer */ #ifndef PacketBuffer_H #define PacketBuffer_H #include "mbed.h" typedef struct { char *buf; int size; } PacketBufInf; class PacketBuffer { public: /** init Stack class * @param num buffering packet num * @param packet_size size of packet(max size) */ PacketBuffer(int num,int packet_size); ~PacketBuffer(); /** put to Packet buffer * @param packet packet data * @param len packet length * @return put length */ int PutPacket(char *packet, int len); /** get from ring buffer * @param packet packet data * @return get length */ int GetPacket(char *packet); void clear(); int available(); int use(); private: PacketBufInf *p_buf; int max_num,max_size; int addr_w, addr_r; }; #endif