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

<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-04-15T07:03:28+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=5&amp;t=3414</id>
<entry>
<author><name><![CDATA[StuartL]]></name></author>
<updated>2009-04-15T07:03:28+01:00</updated>
<published>2009-04-15T07:03:28+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3414&amp;p=19603#p19603</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3414&amp;p=19603#p19603"/>
<title type="html"><![CDATA[Motion Page Checksum]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3414&amp;p=19603#p19603"><![CDATA[
To calculate the checksum just zero the checksum byte and sum the remainder.  Invert the result and place that in byte 31.<br /><br />To check the checksum sum all bytes in the page and check to see if they total 0xff.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=645">StuartL</a> — Wed Apr 15, 2009 7:03 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[JavaRN]]></name></author>
<updated>2009-03-23T16:02:38+01:00</updated>
<published>2009-03-23T16:02:38+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3414&amp;p=19456#p19456</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3414&amp;p=19456#p19456"/>
<title type="html"><![CDATA[Motion Page Checksum]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3414&amp;p=19456#p19456"><![CDATA[
Thanks a lot.  Regarding the motion page structure I got info form there and here and manage to compile it - Thanks again.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=546">JavaRN</a> — Mon Mar 23, 2009 4:02 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Bullit]]></name></author>
<updated>2009-03-23T04:35:08+01:00</updated>
<published>2009-03-23T04:35:08+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3414&amp;p=19451#p19451</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3414&amp;p=19451#p19451"/>
<title type="html"><![CDATA[Motion Page Checksum]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3414&amp;p=19451#p19451"><![CDATA[
Here you go.  Its a simple 8 bit checksum that doesn't count the checksum itself which happens to be at address 31.<br /><br /><dl class="codebox"><dt>Code: </dt><dd><code>byte ComputePageCheckSum&#40;byte *bytePtr,word bytes&#41;<br />&#123;<br />  byte b=0;<br />  word addr;<br />   <br />  for&#40;addr=0;addr&lt;bytes;addr++&#41;<br />    &#123;<br />    if&#40;addr != 31&#41; //skip checksum byte <br />      &#123;<br />      b = b + *bytePtr;<br />      &#125;<br />    bytePtr++;<br />    &#125;<br />  b = 0xff - b;<br />  return b;<br />&#125;<br /></code></dd></dl><br />for structure content if you're not already aware<br /><a href="http://forums.tribotix.info/forum1/76.html" class="postlink">http://forums.tribotix.info/forum1/76.html</a><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=173">Bullit</a> — Mon Mar 23, 2009 4:35 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[JavaRN]]></name></author>
<updated>2009-03-22T20:13:24+01:00</updated>
<published>2009-03-22T20:13:24+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=3414&amp;p=19446#p19446</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=3414&amp;p=19446#p19446"/>
<title type="html"><![CDATA[Motion Page Checksum]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=3414&amp;p=19446#p19446"><![CDATA[
Can anyone tell me how to compute the checksum for motion pages?<br /><br /> Right now I am working on a simple utility (in Java) that will allow me to move and mirror pages using the *.mtn file.  The program seems to work ok i.e. pages are all saved in the file(including the mirrored and copied ones).  However when I try to load the mtn file into the CM-5 the pages that are mirrored do not appear.  It is as if they don't exist!<br /><br />What I suspecting is that since I did not compute the checksum (I don't know the algorithm!) the loading program is ignoring the new pages and so they are not loaded.<br /><br />Any help is greatly appreciated.  Thanks<br /><br />Charles<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=546">JavaRN</a> — Sun Mar 22, 2009 8:13 pm</p><hr />
]]></content>
</entry>
</feed>