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

<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>2010-05-26T09:53:04+01:00</updated>

<author><name><![CDATA[RoboSavvy Forum]]></name></author>
<id>http://forum.robosavvy.com/feed.php?f=15&amp;t=6186</id>
<entry>
<author><name><![CDATA[koli]]></name></author>
<updated>2010-05-26T09:53:04+01:00</updated>
<published>2010-05-26T09:53:04+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6186&amp;p=26911#p26911</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6186&amp;p=26911#p26911"/>
<title type="html"><![CDATA[Help, error with types on constants and var's]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6186&amp;p=26911#p26911"><![CDATA[
Thank you, Macro.h was not using.<br /><br /> I am begginer, and do not know like well this works.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2068">koli</a> — Wed May 26, 2010 9:53 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[l3v3rz]]></name></author>
<updated>2010-05-24T18:37:40+01:00</updated>
<published>2010-05-24T18:37:40+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6186&amp;p=26884#p26884</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6186&amp;p=26884#p26884"/>
<title type="html"><![CDATA[Help, error with types on constants and var's]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6186&amp;p=26884#p26884"><![CDATA[
assuming you're using gcc avr or windows equivalent then make sure you have Macro.h or at least include the following<br /><dl class="codebox"><dt>Code: </dt><dd><code>#define   BYTE   unsigned char<br />#define   WORD   unsigned int<br />#define   UDRE   5<br />#define   RXC      7<br /><br />#define DATA_REGISTER_EMPTY   &#40;1&lt;&lt;UDRE&#41;<br />#define RX_COMPLETE         &#40;1&lt;&lt;RXC&#41;</code></dd></dl><br /><br />The receive function requires the timer interrupt to enable timeouts, or you could remove that code<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1101">l3v3rz</a> — Mon May 24, 2010 6:37 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[koli]]></name></author>
<updated>2010-05-24T10:00:32+01:00</updated>
<published>2010-05-24T10:00:32+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6186&amp;p=26878#p26878</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6186&amp;p=26878#p26878"/>
<title type="html"><![CDATA[Help, error with types on constants and var's]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6186&amp;p=26878#p26878"><![CDATA[
These routines give me many mistakes<br /><br />//------------------------------------------------------------------------------<br />// void SendByte(BYTE)<br />//------------------------------------------------------------------------------<br />void sciTx0Data(BYTE td) // ERROR:DECLARATION SYNTAX ERROR<br />{<br />   while(!(UCSR0A&amp;(1&lt;&lt;UDRE)));    <br />   UDR0=td;        //ERROR: a value of type(*)()' can't be assigned to an entity of type unsigned 'sfrb'<br /><br />}<br /><br />void sciTx1Data(BYTE td)// ERROR:DECLARATION SYNTAX ERROR<br />{<br />   while(!(UCSR1A&amp;(1&lt;&lt;UDRE))); <br />   UDR1=td;       //ERROR: a value of type(*)()' can't be assigned to an entity of type unsigned 'unsigned char'<br /><br />}<br /><br />Not as solving them<br /><br /> Thank you<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2068">koli</a> — Mon May 24, 2010 10:00 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[l3v3rz]]></name></author>
<updated>2010-05-21T00:04:37+01:00</updated>
<published>2010-05-21T00:04:37+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6186&amp;p=26836#p26836</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6186&amp;p=26836#p26836"/>
<title type="html"><![CDATA[Help, error with types on constants and var's]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6186&amp;p=26836#p26836"><![CDATA[
I think you need these two routines .... (from Comm.c)<br /><br />Note - the timeout seems to fixed at RX_T_OUT. Also needs the Timer Int running to update gMSec. <br /><br /><dl class="codebox"><dt>Code: </dt><dd><code><br />#define RX_T_OUT       20  // from Comm.h<br /><br />//------------------------------------------------------------------------------<br />// void SendByte&#40;BYTE&#41;<br />//------------------------------------------------------------------------------<br />void sciTx0Data&#40;BYTE td&#41;<br />&#123;<br />   while&#40;!&#40;UCSR0A&amp;&#40;1&lt;&lt;UDRE&#41;&#41;&#41;;    <br />   UDR0=td;<br />&#125;<br /><br /><br />//------------------------------------------------------------------------------<br />// BYTE ReadByte&#40;&#41;<br />//------------------------------------------------------------------------------<br />BYTE sciRx0Ready&#40;&#41;<br />&#123;<br />   WORD   startT;<br />   startT = gMSEC;<br />   while&#40;!&#40;UCSR0A&amp;&#40;1&lt;&lt;RXC&#41;&#41; &#41;&#123;    <br />        if&#40;gMSEC&lt;startT&gt;RX_T_OUT&#41; break;<br />        &#125;<br />      else if&#40;&#40;gMSEC-startT&#41;&gt;RX_T_OUT&#41; break;<br />   &#125;<br />   return UDR0;<br />&#125;<br /></code></dd></dl><p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=1101">l3v3rz</a> — Fri May 21, 2010 12:04 am</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[koli]]></name></author>
<updated>2010-05-20T14:32:15+01:00</updated>
<published>2010-05-20T14:32:15+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6186&amp;p=26832#p26832</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6186&amp;p=26832#p26832"/>
<title type="html"><![CDATA[Help, error with types on constants and var's]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6186&amp;p=26832#p26832"><![CDATA[
thanks!!!<br /><br />Please did you may, to put on the code of the function GetByte and that of the SendByte??<br /><br />not find in any site,<br />GetByte receibe 1 byte from serial port<br />SendByte send 1 byte to serial port<br /><br /> Thank you very much in advance.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2068">koli</a> — Thu May 20, 2010 2:32 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[i-Bot]]></name></author>
<updated>2010-05-20T14:09:53+01:00</updated>
<published>2010-05-20T14:09:53+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6186&amp;p=26831#p26831</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6186&amp;p=26831#p26831"/>
<title type="html"><![CDATA[Help, error with types on constants and var's]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6186&amp;p=26831#p26831"><![CDATA[
The function prototype for GetByte in the example appears to have a void return:<br />void GetByte(char timeout); // Receive 1 Byte from serial port<br />I guess this should be a char returned to match your serial routines.<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=159">i-Bot</a> — Thu May 20, 2010 2:09 pm</p><hr />
]]></content>
</entry>
<entry>
<author><name><![CDATA[koli]]></name></author>
<updated>2010-05-20T09:41:59+01:00</updated>
<published>2010-05-20T09:41:59+01:00</published>
<id>http://forum.robosavvy.com/viewtopic.php?t=6186&amp;p=26827#p26827</id>
<link href="http://forum.robosavvy.com/viewtopic.php?t=6186&amp;p=26827#p26827"/>
<title type="html"><![CDATA[Help, error with types on constants and var's]]></title>

<content type="html" xml:base="http://forum.robosavvy.com/viewtopic.php?t=6186&amp;p=26827#p26827"><![CDATA[
Hi,<br />even they are declared as same type (char) I get the next error when I try to compile source:<br />a value of type 'const void' can't be assigned to an entity type 'unsigned char'<br />I'm using codevision AVR<br /><br />The example of code is:<br /><br />char PosSend(char ServoID, char SpeedLevel, char Position)<br />{<br /> char Current; <br /> SendOperCommand((SpeedLevel&lt;&lt;5)|ServoID, Position);<br /> GetByte(TIME_OUT1);                  <br /> Current = GetByte(TIME_OUT1); //      LINE WHERE I GOT THE ERROR<br /> return Current;<br />}<br /><br />This code is an example of <span style="font-weight: bold">robobuilder-creator-users-manual.pdf </span>page 63<p>Statistics: Posted by <a href="http://forum.robosavvy.com/memberlist.php?mode=viewprofile&amp;u=2068">koli</a> — Thu May 20, 2010 9:41 am</p><hr />
]]></content>
</entry>
</feed>