Revision: 7238 http://playerstage.svn.sourceforge.net/playerstage/?rev=7238&view=rev Author: thjc Date: 2009-01-04 02:22:13 +0000 (Sun, 04 Jan 2009)
Log Message: ----------- applied patch 2101500 for motionmind Modified Paths: -------------- code/player/trunk/server/drivers/opaque/tcpstream.cc code/player/trunk/server/drivers/position/motionmind/motionmind.cc Modified: code/player/trunk/server/drivers/opaque/tcpstream.cc =================================================================== --- code/player/trunk/server/drivers/opaque/tcpstream.cc 2009-01-04 02:10:05 UTC (rev 7237) +++ code/player/trunk/server/drivers/opaque/tcpstream.cc 2009-01-04 02:22:13 UTC (rev 7238) @@ -360,6 +360,11 @@ CloseTerm(); return; } + + if (len == buffer_size) + { + PLAYER_WARN("tcpstream:ReadData() filled entire buffer, increasing buffer size will lower latency"); + } assert(len <= int(buffer_size)); mData.data_count = len; Modified: code/player/trunk/server/drivers/position/motionmind/motionmind.cc =================================================================== --- code/player/trunk/server/drivers/position/motionmind/motionmind.cc 2009-01-04 02:10:05 UTC (rev 7237) +++ code/player/trunk/server/drivers/position/motionmind/motionmind.cc 2009-01-04 02:22:13 UTC (rev 7238) @@ -90,6 +90,8 @@ parity "none" provides ["opaque:0"] alwayson 1 + # IF ATTACHED TO MORE THAN ONE MOTIONMIND BOARD YOU MUST HAVE A WAIT TIME OR THINGS TIMEOUT + wait_time 40000 ) @endverbatim @@ -106,10 +108,10 @@ #include <libplayercore/playercore.h> -#define DEFAULT_RX_BUFFER_SIZE 500*1024/8 +#define DEFAULT_RX_BUFFER_SIZE 128 #define DEFAULT_ADDRESS 1 #define MESSAGE_LENGTH 7 -#define MSG_TIMEOUT 0.1 //Seconds before it sends another read request if it hasn't yet got a reply +#define MSG_TIMEOUT 0.25 //Seconds before it sends another read request if it hasn't yet got a reply extern PlayerTime *GlobalTime; @@ -291,7 +293,6 @@ else { memcpy(&rx_buffer[messageOffset], recv->data, recv->data_count); - //TODO: addd do stuff here to deal with the new data } return 0; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------------ _______________________________________________ Playerstage-commit mailing list Playerstage-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/playerstage-commit