[TeamTalk 11]: [548] TeamTalk/Agents/boeingLib: Imported changes.
tk@edam.speech.cs.cmu.edu
tk at edam.speech.cs.cmu.edu
Thu Dec 7 16:47:21 EST 2006
An HTML attachment was scrubbed...
URL: http://mailman.srv.cs.cmu.edu/pipermail/teamtalk-developers/attachments/20061207/ca2dd95b/attachment.html
-------------- next part --------------
Modified: TeamTalk/Agents/boeingLib/boeing/boeing_converter.cc
===================================================================
--- TeamTalk/Agents/boeingLib/boeing/boeing_converter.cc 2006-12-07 21:45:42 UTC (rev 547)
+++ TeamTalk/Agents/boeingLib/boeing/boeing_converter.cc 2006-12-07 21:47:20 UTC (rev 548)
@@ -86,6 +86,13 @@
if(strncasecmp(temp,"rel",64) == 0) {
result.msg_goto.attr |= MsgCmdGoTo::Relative;
}
+ } else if (name == "setpos") {
+ if (debug)
+ printf(" Got setpos message\n");
+ result.hdr.type = CMD_SETPOS;
+ rv = sscanf(params,"%f %f %f",
+ &result.msg_setpos.x, &result.msg_setpos.y,
+ &result.msg_setpos.angle);
} else if (name == "home") {
if (debug)
printf(" Got home message\n");
Modified: TeamTalk/Agents/boeingLib/coralshared/netbase.h
===================================================================
--- TeamTalk/Agents/boeingLib/coralshared/netbase.h 2006-12-07 21:45:42 UTC (rev 547)
+++ TeamTalk/Agents/boeingLib/coralshared/netbase.h 2006-12-07 21:47:20 UTC (rev 548)
@@ -7,6 +7,15 @@
#include <stdint.h>
#include "util.h"
+#ifndef PACKED
+#ifdef WIN32
+#pragma pack(1)
+#define PACKED
+#else
+#define PACKED __attribute__((packed))
+#endif
+#endif
+
// Base type for TLV (type,length,value) messages
struct NetMsg{
uint16_t msg_type;
More information about the TeamTalk-developers
mailing list