<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Help Needed with C Code for Robotics Project in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Help-Needed-with-C-Code-for-Robotics-Project/m-p/127125#M222</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;SPAN&gt;I am working on the code for a robotics project I am doing for a scholarship competition in ANSI C using CodeWarrior version 5.7.0. Here's the address to my project's website if you are interested: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.geocities.com%2Fthisisbrians%2F" rel="nofollow" target="_blank"&gt;http://www.geocities.com/thisisbrians/&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have started a navigation system, but part of it I need some help with. I will have the robot navigate a series of "waypoints," which are simply (x,y) coordinate points on the robot's plane of travel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need a way to store these ordered pairs in memory without using a separate variable for each one, because I may need to store as many as 20 or perhaps even more waypoints at a time. Is there some way to make a group where I can store all these waypoints and recall them sequentially?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Brian S.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Aug 2006 02:39:26 GMT</pubDate>
    <dc:creator>thisisbrians</dc:creator>
    <dc:date>2006-08-21T02:39:26Z</dc:date>
    <item>
      <title>Help Needed with C Code for Robotics Project</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Help-Needed-with-C-Code-for-Robotics-Project/m-p/127125#M222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;SPAN&gt;I am working on the code for a robotics project I am doing for a scholarship competition in ANSI C using CodeWarrior version 5.7.0. Here's the address to my project's website if you are interested: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.geocities.com%2Fthisisbrians%2F" rel="nofollow" target="_blank"&gt;http://www.geocities.com/thisisbrians/&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have started a navigation system, but part of it I need some help with. I will have the robot navigate a series of "waypoints," which are simply (x,y) coordinate points on the robot's plane of travel.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need a way to store these ordered pairs in memory without using a separate variable for each one, because I may need to store as many as 20 or perhaps even more waypoints at a time. Is there some way to make a group where I can store all these waypoints and recall them sequentially?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Brian S.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 02:39:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Help-Needed-with-C-Code-for-Robotics-Project/m-p/127125#M222</guid>
      <dc:creator>thisisbrians</dc:creator>
      <dc:date>2006-08-21T02:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed with C Code for Robotics Project</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Help-Needed-with-C-Code-for-Robotics-Project/m-p/127126#M223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi, Brian:&lt;BR /&gt;&lt;BR /&gt;This is very straightforward in C.&lt;BR /&gt;&lt;BR /&gt;Declare a structure, which contains x, y and whatever other information is pertinent to each way-point. x and y would probably be integers.&lt;BR /&gt;&lt;BR /&gt;Then define an array of those structures. You can then address each way-point with an index.&lt;BR /&gt;&lt;BR /&gt;(be sure to note the difference between 'declare' and 'define').&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2006 03:33:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Help-Needed-with-C-Code-for-Robotics-Project/m-p/127126#M223</guid>
      <dc:creator>rocco</dc:creator>
      <dc:date>2006-08-21T03:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help Needed with C Code for Robotics Project</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Help-Needed-with-C-Code-for-Robotics-Project/m-p/127127#M224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;The array of structures that rocco suggested is probably best, but you could also declare a two-dimentional array like this:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;char&amp;nbsp; coord[ 2 ][ 20 ]&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;where you have 20 sets of 2 char, with one being the x coordinate, and the other being the y coordinate.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;-Tomahawk&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2006 03:35:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Help-Needed-with-C-Code-for-Robotics-Project/m-p/127127#M224</guid>
      <dc:creator>admin</dc:creator>
      <dc:date>2006-08-22T03:35:56Z</dc:date>
    </item>
  </channel>
</rss>

