<?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=4&amp;t=2401" />

<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>2008-04-02T22:28:11+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=4&amp;t=2401</id>
<entry>
<author><name><![CDATA[roboTT]]></name></author>
<updated>2008-04-02T22:28:11+01:00</updated>
<published>2008-04-02T22:28:11+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2401&amp;p=15160#p15160</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2401&amp;p=15160#p15160"/>
<title type="html"><![CDATA[-127 to 127 values]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2401&amp;p=15160#p15160"><![CDATA[
<blockquote><div><cite>i-Bot wrote:</cite><br />The values being read are unsigned characters ranging from 0 to 255. The RoboNova does not work in signed except in a few special cases.<br /><br />If you choose to interpret the unsigned character as a signed character, that is likely to give problems. While it may be true that an accelerometer has a signed output, you need to properly determine the zero point and then make a valid unsigned to signed conversion.<br /></div></blockquote><br /><br /><br />Thank you i-Bot, as soon as i'll get my new servos, i'll do the patching on my code and return with the results.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=946">roboTT</a> — Wed Apr 02, 2008 10:28 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[i-Bot]]></name></author>
<updated>2008-04-02T22:22:59+01:00</updated>
<published>2008-04-02T22:22:59+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2401&amp;p=15158#p15158</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2401&amp;p=15158#p15158"/>
<title type="html"><![CDATA[-127 to 127 values]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2401&amp;p=15158#p15158"><![CDATA[
The values being read are unsigned characters ranging from 0 to 255. The RoboNova does not work in signed except in a few special cases.<br /><br />If you choose to interpret the unsigned character as a signed character, that is likely to give problems. While it may be true that an accelerometer has a signed output, you need to properly determine the zero point and then make a valid unsigned to signed conversion.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=159">i-Bot</a> — Wed Apr 02, 2008 10:22 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[roboTT]]></name></author>
<updated>2008-04-02T21:45:47+01:00</updated>
<published>2008-04-02T21:45:47+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2401&amp;p=15156#p15156</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2401&amp;p=15156#p15156"/>
<title type="html"><![CDATA[-127 to 127 values]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2401&amp;p=15156#p15156"><![CDATA[
<blockquote><div><cite>Gerry52 wrote:</cite><br />This is what I found, I'm new to this stuf so please correct me if I'm wrong. <br /><br />Robobasic doesn't handle negative numbers at all! There is no sign bit. The range of the AD(x) inputs is 0 to 5V, it generates a 0 - 255 value in Robobasic, a byte type can be declared here. <br />However inputs connected to the 2 axis accelemeter generates a value from 400 to 700 (400 = laying on back side (or left side), 700 = laying on front side (or right side). For this an integer should be declared.<br /><br />Gerry<br /></div></blockquote><br /><br />You're saying about robobasic, and i'm speaking of reading values with C/C++.<br />The IR reports positive numbers all the time<br />The 2Axis reports -127 to +127 evein if being read to Integer.<br /><br />The values are being read by:<br /><br /> bReadRC = ReadFile(hCom, &amp;rxchar, 1, &amp;iBytesRead, NULL);  <br /><br />into the char rxchar<br />and are returned mostly as numbers between -127 and 127<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=946">roboTT</a> — Wed Apr 02, 2008 9:45 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[Gerry52]]></name></author>
<updated>2008-04-02T19:56:34+01:00</updated>
<published>2008-04-02T19:56:34+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2401&amp;p=15155#p15155</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2401&amp;p=15155#p15155"/>
<title type="html"><![CDATA[-127 to 127 values]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2401&amp;p=15155#p15155"><![CDATA[
This is what I found, I'm new to this stuf so please correct me if I'm wrong. <br /><br />Robobasic doesn't handle negative numbers at all! There is no sign bit. The range of the AD(x) inputs is 0 to 5V, it generates a 0 - 255 value in Robobasic, a byte type can be declared here. <br />However inputs connected to the 2 axis accelemeter generates a value from 400 to 700 (400 = laying on back side (or left side), 700 = laying on front side (or right side). For this an integer should be declared.<br /><br />Gerry<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=934">Gerry52</a> — Wed Apr 02, 2008 7:56 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[davidalecmcinnes]]></name></author>
<updated>2008-04-02T10:26:23+01:00</updated>
<published>2008-04-02T10:26:23+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2401&amp;p=15152#p15152</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2401&amp;p=15152#p15152"/>
<title type="html"><![CDATA[-127 to 127 values]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2401&amp;p=15152#p15152"><![CDATA[
Sounds like its using a signed byte, try using an integer instead asit will give you more resoltion wont overrun the sign boundary at 32768.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=655">davidalecmcinnes</a> — Wed Apr 02, 2008 10:26 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[roboTT]]></name></author>
<updated>2008-03-31T23:17:27+01:00</updated>
<published>2008-03-31T23:17:27+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=2401&amp;p=15095#p15095</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=2401&amp;p=15095#p15095"/>
<title type="html"><![CDATA[-127 to 127 values]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=2401&amp;p=15095#p15095"><![CDATA[
Guys,<br /><br />whenever a values are read - the range is between -127 to 127 - why does MR-C set it this way?<br /><br />Is this correct, or am i doing smth wrong while reading, maybe some coversion is required ?<br /><br />For example 2axis accel returns values for X/Y as a range between:<br /><br />-127 to 127.<br /><br /><br />Any idea?<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=946">roboTT</a> — Mon Mar 31, 2008 11:17 pm</p><hr />
]]></content>
</entry>
</feed>