<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
<link rel="self" type="application/atom+xml" href="http://forum.robosavvy.com/feed.php?f=5&amp;t=4332" />

<title>RoboSavvy Forum</title>
<subtitle>Robosavvy Forum: The largest online community of Humanoid Robot Builders</subtitle>
<link href="http://forum.robosavvy.com/index.php" />
<updated>2009-11-04T20:27:06+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=5&amp;t=4332</id>
<entry>
<author><name><![CDATA[jhr_777]]></name></author>
<updated>2009-11-04T20:27:06+01:00</updated>
<published>2009-11-04T20:27:06+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=4332&amp;p=22608#p22608</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=4332&amp;p=22608#p22608"/>
<title type="html"><![CDATA[HAVIMO Visual Studio C++ RawSample Image]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=4332&amp;p=22608#p22608"><![CDATA[
Hello everyone¡¡¡<br /><br />I have a dude about get a image (rawSample) with PC. I know that I have to &quot;execute&quot; the instruction 15, but it doesnt works. Here is mi code in Visual Studio 8<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code><br />void Image_Havimo&#40; &#41;<br />&#123;<br />        // Packet structure<br />   dxl_instruction InstPacket;<br />   dxl_status StatusPacket;<br />   int ErrorCode;<br />   WORD Model_Number;<br /><br />   InstPacket.id         = 100;            // ID<br />   InstPacket.instruction   = 15;          // Read Register<br />   InstPacket.address      = 0;   // Address of Model Number<br />   InstPacket.parameter&#91;0&#93;   = 0;            // Number of byte to read<br />   InstPacket.length      = 3;            // Length = 3&#40;id, instruction, address&#41; + &#40;Number of parameter&#41;<br />   // Communication<br />   //while&#40; dxl_control&#40; &amp;InstPacket, &amp;StatusPacket, true &#41; != ERR_CODE_SUCCESS&#41;&#123;&#125;<br />   ErrorCode = dxl_control&#40; &amp;InstPacket, &amp;StatusPacket, true &#41;;<br /><br /><br /><br /></code></dd></dl> <br /><br />I tried everything but it doesnt work. In addition, the havimo is found when I do a PING.<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code><br />// Packet structure<br />   dxl_instruction InstPacket;<br />   dxl_status StatusPacket;<br />   int ErrorCode;<br />   WORD Model_Number;<br /><br />   InstPacket.id         = id;            // ID<br />   InstPacket.instruction   = INST_PING;      // Read instruction<br />   InstPacket.address      = 0;   // Address of Model Number<br />   //InstPacket.parameter&#91;0&#93;   = 0;            // Number of byte to read<br />   InstPacket.length      = 3;            // Length = 3&#40;id, instruction, address&#41; + &#40;Number of parameter&#41;<br /><br /></code></dd></dl><br /><br />I need a help. Please ¡¡¡¡¡<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1755">jhr_777</a> — Wed Nov 04, 2009 8:27 pm</p><hr />
]]></content>
</entry>
</feed>