<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									Use of Structures in the Arduino IDE - Archived Suggestions				            </title>
            <link>https://forum.dronebotworkshop.com/archived-suggestions/use-of-structures-in-the-arduino-ide/</link>
            <description>Discussion board for Robotics, Arduino, Raspberry Pi and other DIY electronics and modules. Join us today!</description>
            <language>en-US</language>
            <lastBuildDate>Mon, 20 Apr 2026 21:55:32 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Use of Structures in the Arduino IDE</title>
                        <link>https://forum.dronebotworkshop.com/archived-suggestions/use-of-structures-in-the-arduino-ide/#post-14643</link>
                        <pubDate>Sat, 09 Jan 2021 05:24:58 +0000</pubDate>
                        <description><![CDATA[Posted by: @ljbeng 
It might be useful to educate Arduino programmers on the use of a Structure inside the Arduino IDE especially if they are saving important data to the EEPROM.  You could...]]></description>
                        <content:encoded><![CDATA[<blockquote data-userid="3226" data-postid="14631" data-mention="ljbeng">
<div class="wpforo-post-quote-author"><strong> Posted by: @ljbeng </strong></div>
<p>It might be useful to educate Arduino programmers on the use of a Structure inside the Arduino IDE especially if they are saving important data to the EEPROM.  You could highlight the use of .PUT and .GET to save and retrieve those structures from EEPROM to RAM.</p>
<p>Here is one I defined recently.</p>
<pre><strong></strong></pre>
</blockquote>
<p>Structures, which are POD (<em>Plain Old Data</em>) types in C, are actually considered classes in C++.</p>
<p>These objects are very useful in programming, and we have actually discussed them being used to write to EEPROM (and other things), here in the past.  IMHO, learning how to create and use ones own objects (in any language), opens up an entire new world in ones programming skill-set.  It's very difficult to get people to understand the benefits, but once you know how, you'll never look back.</p>
<p>Cheers.</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/archived-suggestions/">Archived Suggestions</category>                        <dc:creator>frogandtoad</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/archived-suggestions/use-of-structures-in-the-arduino-ide/#post-14643</guid>
                    </item>
				                    <item>
                        <title>RE: Use of Structures in the Arduino IDE</title>
                        <link>https://forum.dronebotworkshop.com/archived-suggestions/use-of-structures-in-the-arduino-ide/#post-14638</link>
                        <pubDate>Fri, 08 Jan 2021 18:22:46 +0000</pubDate>
                        <description><![CDATA[Also you can have a structure as a member of a structure also. I do stay away from unions though.
I never got comfortable with pointers until I read &quot;C pointers and dynamic memory managemen...]]></description>
                        <content:encoded><![CDATA[<p>Also you can have a structure as a member of a structure also. I do stay away from unions though.</p>
<p>I never got comfortable with pointers until I read "C pointers and dynamic memory management"</p>
<p>So once you get a good grasp on C grab on of the more advanced books.</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/archived-suggestions/">Archived Suggestions</category>                        <dc:creator>noweare</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/archived-suggestions/use-of-structures-in-the-arduino-ide/#post-14638</guid>
                    </item>
				                    <item>
                        <title>RE: Use of Structures in the Arduino IDE</title>
                        <link>https://forum.dronebotworkshop.com/archived-suggestions/use-of-structures-in-the-arduino-ide/#post-14637</link>
                        <pubDate>Fri, 08 Jan 2021 17:17:21 +0000</pubDate>
                        <description><![CDATA[As a hobby programmer I always found it easier to learn something new by using it in applications like I guess the EEPROM example above.  Before using structures I used to rely on parallel a...]]></description>
                        <content:encoded><![CDATA[<p>As a hobby programmer I always found it easier to learn something new by using it in applications like I guess the EEPROM example above.  Before using structures I used to rely on parallel arrays even though I had used structures (which I called records) in Assembler.  In BASIC a structure is called a TYPE.  It is just a way of grouping a block of different data types under a single label where an item in that group is then accessed via the dot notation.</p>
<p>http://www.cplusplus.com/doc/tutorial/structures/</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/archived-suggestions/">Archived Suggestions</category>                        <dc:creator>robotBuilder</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/archived-suggestions/use-of-structures-in-the-arduino-ide/#post-14637</guid>
                    </item>
				                    <item>
                        <title>RE: Use of Structures in the Arduino IDE</title>
                        <link>https://forum.dronebotworkshop.com/archived-suggestions/use-of-structures-in-the-arduino-ide/#post-14633</link>
                        <pubDate>Fri, 08 Jan 2021 16:32:57 +0000</pubDate>
                        <description><![CDATA[Thank you Ljbeng:
Im always interested in coding and structures I know nothing about. I definitely will explore further. So much to learn and apply. 
Best,
Anibal]]></description>
                        <content:encoded><![CDATA[<p>Thank you Ljbeng:</p>
<p>Im always interested in coding and structures I know nothing about. I definitely will explore further. So much to learn and apply. </p>
<p>Best,</p>
<p>Anibal </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/archived-suggestions/">Archived Suggestions</category>                        <dc:creator>Anibal</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/archived-suggestions/use-of-structures-in-the-arduino-ide/#post-14633</guid>
                    </item>
				                    <item>
                        <title>Use of Structures in the Arduino IDE</title>
                        <link>https://forum.dronebotworkshop.com/archived-suggestions/use-of-structures-in-the-arduino-ide/#post-14631</link>
                        <pubDate>Fri, 08 Jan 2021 16:22:19 +0000</pubDate>
                        <description><![CDATA[It might be useful to educate Arduino programmers on the use of a Structure inside the Arduino IDE especially if they are saving important data to the EEPROM.  You could highlight the use of...]]></description>
                        <content:encoded><![CDATA[<p>It might be useful to educate Arduino programmers on the use of a Structure inside the Arduino IDE especially if they are saving important data to the EEPROM.  You could highlight the use of .PUT and .GET to save and retrieve those structures from EEPROM to RAM.</p>
<p>Here is one I defined recently.</p>
<pre>typedef struct gps {<br />float rlatf;<br />float rlonf;<br />float guideHeading;<br />int baseRox;<br />int roverGGA;<br />int roverGST;<br />int roverGSV;<br />int roverZDA;<br />int dirB;<br />};<br /><br />gps gpsVar{0.0f, 0.0f, 90.0f,0,0,0,0,0,1};//declare a variable as the gps structure and preset values<br /><br /><br />gpsVar.dirB = 1;  //simple use of a Structure Variable<br /><br /><br />EEPROM.put(0, gpsVar); //save the variable to EEPROM<br /><br /><br />EEPROM.get( 0, gpsVar );//retrieve the variable from EEPROM</pre>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/archived-suggestions/">Archived Suggestions</category>                        <dc:creator>LJBENG</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/archived-suggestions/use-of-structures-in-the-arduino-ide/#post-14631</guid>
                    </item>
							        </channel>
        </rss>
		