<?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=14076" />

<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>2014-08-05T22:40:11+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=5&amp;t=14076</id>
<entry>
<author><name><![CDATA[kandhariakhil]]></name></author>
<updated>2014-08-05T22:40:11+01:00</updated>
<published>2014-08-05T22:40:11+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=14076&amp;p=43351#p43351</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=14076&amp;p=43351#p43351"/>
<title type="html"><![CDATA[Position Feedback]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=14076&amp;p=43351#p43351"><![CDATA[
Hello,<br /><br />I am using an MX-64 TTL servo along with the OpenCM9.04 board,which is being powered directly by a DC power supply at 12 V. When I read the Present Position of the servo using Dxl.readWord while in “Wheel Mode”, I randomly get a position of 65535. The valid range is 0 to 4095. The same issue has occurred when reading other values, such as Present Load. As far as I can tell, it appears that it is the servo returning this value rather than an issue with SerialUSB. I have multiple MX-64 servos and OpenCM9.04 boards and the issue occurs in all cases. It has also been replicated with the IDE running in both Windows 8.1 and OS X 10.9.4. I’m using Robotis_OpenCM_1.02 as my IDE.<br /><br />Is this this a known issue? Is there a fix other than the obvious one of ignoring the bad values? Here is simple code that demonstrates the issue:<br /><br /><br />#define DXL_BUS_SERIAL1 1<br /><br />#define ID_NUM 2<br /><br />#define CW_Angle_Limit 6<br />#define CCW_Angle_Limit 8<br />#define GOAL_SPEED 32<br />#define PRESENT_POS 36<br /><br />Dynamixel Dxl(DXL_BUS_SERIAL1);<br /><br />void setup() {<br /> Dxl.begin(3);<br /> delay(3000);<br /><br /> Dxl.writeWord(ID_NUM, CW_Angle_Limit, 0);   // Set wheel mode<br /> Dxl.writeWord(ID_NUM, CCW_Angle_Limit, 0); // Set wheel mode<br /><br /> Dxl.writeWord(ID_NUM, GOAL_SPEED, 100); // Set speed, issue doesn’t seem to depend on speed<br />}<br /><br />void loop() {<br /> int pos;<br /><br /> pos = Dxl.readWord(ID_NUM, PRESENT_POS); // Read present position<br /> SerialUSB.print(&quot;Present Position: &quot;);<br /> SerialUSB.println(pos);<br /> delay(500);<br />}<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=7853">kandhariakhil</a> — Tue Aug 05, 2014 10:40 pm</p><hr />
]]></content>
</entry>
</feed>