<?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>
									Post code test - Test Forum				            </title>
            <link>https://forum.dronebotworkshop.com/test/post-code-test/</link>
            <description>Discussion board for Robotics, Arduino, Raspberry Pi and other DIY electronics and modules. Join us today!</description>
            <language>en-US</language>
            <lastBuildDate>Thu, 12 Nov 2026 07:10:26 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>RE: Post code test</title>
                        <link>https://forum.dronebotworkshop.com/test/post-code-test/paged/2/#post-51564</link>
                        <pubDate>Tue, 02 Sep 2025 23:48:59 +0000</pubDate>
                        <description><![CDATA[void initialize() {
  float r, x, y;
  buildAngleArray(5.0f); // build out angle array at 5 degree increments
  for (int t = 1; t &lt;= sampleSize; t++) {
    r = range;
    x = r * ...]]></description>
                        <content:encoded><![CDATA[<pre contenteditable="false">void initialize() {
  float r, x, y;
  buildAngleArray(5.0f); // build out angle array at 5 degree increments
  for (int t = 1; t &lt;= sampleSize; t++) {
    r = range;
    x = r * cosf(angle);
    y = r * sinf(angle);
    printf("range=%2.7f angle=%2.7f x=%2.4f     y=%2.4f\n",t,range,t,angle,x,y);
  }
  segmentation.start = 0;
  segmentation.end = 0;
  printf("end initialize() threshold=%2.7f\n\n",threshold);
  return;
}

</pre>
<p>paste from cat of file.  had to add spaces.</p>
<p>&nbsp;</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/test/">Test Forum</category>                        <dc:creator>THRandell</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/test/post-code-test/paged/2/#post-51564</guid>
                    </item>
				                    <item>
                        <title>RE: Post code test</title>
                        <link>https://forum.dronebotworkshop.com/test/post-code-test/paged/2/#post-51263</link>
                        <pubDate>Thu, 29 May 2025 15:21:15 +0000</pubDate>
                        <description><![CDATA[Always copy the code from the editor, not the output console, and manually wrap it using triple backticks (```cpp and ```) for correct syntax highlighting.]]></description>
                        <content:encoded><![CDATA[
<p>Using &lt;&gt; after IDE 2.0.0 Copy for Forum (Markdown)</p>
<pre contenteditable="false">```cpp
int8_t PCintPort::addPin(uint8_t arduinoPin, PCIntvoidFuncPtr userFunc, uint8_t mode)
{
	PCintPin* tmp;
	tmp=firstPin;
	if (firstPin != NULL) {
		do {
			if (tmp-&gt;arduinoPin == arduinoPin) { enable(tmp, userFunc, mode); return(0); }
			if (tmp-&gt;next == NULL) break;
			tmp=tmp-&gt;next;
		} while (true);
	}
```</pre>
<p>Using {;} after IDE 2.0.0 Copy for Forum (Markdown)</p>
<p> </p>
<p> </p>
<p>```cpp int8_t PCintPort::addPin(uint8_t arduinoPin, PCIntvoidFuncPtr userFunc, uint8_t mode) { PCintPin* tmp; tmp=firstPin; if (firstPin != NULL) { do { if (tmp-&gt;arduinoPin == arduinoPin) { enable(tmp, userFunc, mode); return(0); } if (tmp-&gt;next == NULL) break; tmp=tmp-&gt;next; } while (true); } ```</p>
<p></p>
<p>Always copy the code from the editor, not the output console, and manually wrap it using triple backticks (<code data-start="1889" data-end="1899">```cpp</code> and <code data-start="1904" data-end="1911">```</code>) for correct syntax highlighting.</p>
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/test/">Test Forum</category>                        <dc:creator>aliarifat</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/test/post-code-test/paged/2/#post-51263</guid>
                    </item>
				                    <item>
                        <title>RE: Post code test</title>
                        <link>https://forum.dronebotworkshop.com/test/post-code-test/paged/2/#post-51222</link>
                        <pubDate>Sun, 18 May 2025 23:46:04 +0000</pubDate>
                        <description><![CDATA[Another test... Copy from Arduino 1.8.13
/* Sharp IR Range Finder Implementation of Tim Bower&#039;s Virtual Triange Wall Follower.
* IRFollowWall
* Calibration has shown that the IR sensors c...]]></description>
                        <content:encoded><![CDATA[<p>Another test... Copy from Arduino 1.8.13</p>
<pre contenteditable="false">/* Sharp IR Range Finder Implementation of Tim Bower's Virtual Triange Wall Follower.
* IRFollowWall
* Calibration has shown that the IR sensors can measure from 3.9 inches to 31.5 inches.
* This is a test using an A* Prime board with two Sharp IR Sensors and a servo to point the leftmost sensor perpendicular to the robot's pose.
* IRSensor1 - Pin: A2, 5V 
* IRSensor2 - Pin: A3, 5V
* The two IR sensors are mounted on a servo with a 45 degree angle between them.
* The coordinate frame is measured in inches.
* The (0,0) of the robot's frame is somewhere behind the two sensors.
* 
* NOTE: a positive AngleToWall =&gt; turn left
* a negative AngleToWall =&gt; turn right This seems like the opposite of a polar coordinate system, ie. substract to turn left, add to turn right
* 
* setM1Speed(int speed) 
* setM2Speed(int speed)
* setSpeeds(int m1Speed, int m2Speed)
* Speed should be between -400 and 400
* 
* Large parts of this sketch were browored from a Pololu compass demo.
*/

#include &lt;DRV8835MotorShield.h&gt;
#include &lt;Wire.h&gt;
#include &lt;LSM303.h&gt;
#include &lt;math.h&gt;</pre>
<p> </p>
<p> </p>
<p> </p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/test/">Test Forum</category>                        <dc:creator>THRandell</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/test/post-code-test/paged/2/#post-51222</guid>
                    </item>
				                    <item>
                        <title>RE: Post code test</title>
                        <link>https://forum.dronebotworkshop.com/test/post-code-test/paged/2/#post-43819</link>
                        <pubDate>Sun, 12 Nov 2023 23:07:29 +0000</pubDate>
                        <description><![CDATA[more paste code fun...
int main() {
  stdio_init_all();

  gpio_init(S1_INP);     // enable I/O set to GPIO_FUNC_SIO and set to input
  gpio_set_dir(S1_INP, GPIO_IN);
  gpio_pull_down(...]]></description>
                        <content:encoded><![CDATA[<p>more paste code fun...</p>
<pre contenteditable="false">int main() {
  stdio_init_all();

  gpio_init(S1_INP);     // enable I/O set to GPIO_FUNC_SIO and set to input
  gpio_set_dir(S1_INP, GPIO_IN);
  gpio_pull_down(S1_INP);  // the IR goes high when there is a reflection
  gpio_init(S2_INP);
  gpio_set_dir(S2_INP, GPIO_IN);
  gpio_pull_down(S2_INP);

  // because i frequently don't get the screen session started in time
  printf("waiting for usb host");
  while (!stdio_usb_connected()) {
    printf(".");
    sleep_ms(500);
  }
  sleep_ms(2000);

  gpio_set_irq_enabled_with_callback(S2_INP, GPIO_IRQ_EDGE_FALL | GPIO_IRQ_EDGE_RISE, true, &amp;rec_callback);
  gpio_set_irq_enabled(S1_INP, GPIO_IRQ_EDGE_FALL | GPIO_IRQ_EDGE_RISE, true);
  gpio_set_irq_enabled(S2_INP, GPIO_IRQ_EDGE_FALL | GPIO_IRQ_EDGE_RISE, true);

  uint64_t wait_time;

  resetPulseCnts();
  while (true) {

    printf("Sensor 1 %3.2fmm - Sensor 2 %3.2fmm\n",pulseIn(pulsesS1, &amp;currentS1Pulse), pulseIn(pulsesS2, &amp;currentS2Pulse));

    wait_time = time_us_64() + 800000;  // 800ms
    while (time_us_64() &lt; wait_time) { }
    wait_time = time_us_64() + 200000;  // 200ms  So that there is time to catch some pulses
    resetPulseCnts();
    while (time_us_64() &lt; wait_time) { }

  }

  return 0;
}
</pre>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/test/">Test Forum</category>                        <dc:creator>THRandell</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/test/post-code-test/paged/2/#post-43819</guid>
                    </item>
				                    <item>
                        <title>RE: Post code test</title>
                        <link>https://forum.dronebotworkshop.com/test/post-code-test/paged/2/#post-43763</link>
                        <pubDate>Thu, 09 Nov 2023 17:56:12 +0000</pubDate>
                        <description><![CDATA[Copy Special &#039;plain text&#039; from vi running on Macbook
gpio_set_irq_enabled_with_callback(S2_INP, GPIO_IRQ_EDGE_FALL | GPIO_IRQ_EDGE_RISE, true, &amp;rec_callback);
// helper function that c...]]></description>
                        <content:encoded><![CDATA[<p>Copy Special 'plain text' from vi running on Macbook</p>
<pre contenteditable="false">gpio_set_irq_enabled_with_callback(S2_INP, GPIO_IRQ_EDGE_FALL | GPIO_IRQ_EDGE_RISE, true, &amp;rec_callback);
// helper function that calls: gpio_set_irq_enabled(); gpio_set_irq_callback(); irq_set_enabled(IO_IRQ_BANK0, true);
gpio_set_irq_enabled(S1_INP, GPIO_IRQ_EDGE_FALL | GPIO_IRQ_EDGE_RISE, true);
gpio_set_irq_enabled(S2_INP, GPIO_IRQ_EDGE_FALL | GPIO_IRQ_EDGE_RISE, true);
gpio_set_irq_enabled(S3_INP, GPIO_IRQ_EDGE_FALL | GPIO_IRQ_EDGE_RISE, true);
gpio_set_irq_enabled(S4_INP, GPIO_IRQ_EDGE_FALL | GPIO_IRQ_EDGE_RISE, true);
gpio_set_irq_enabled(S5_INP, GPIO_IRQ_EDGE_FALL | GPIO_IRQ_EDGE_RISE, true);
gpio_set_irq_enabled(S6_INP, GPIO_IRQ_EDGE_FALL | GPIO_IRQ_EDGE_RISE, true);
gpio_set_irq_enabled(S7_INP, GPIO_IRQ_EDGE_FALL | GPIO_IRQ_EDGE_RISE, true);
gpio_set_irq_enabled(S8_INP, GPIO_IRQ_EDGE_FALL | GPIO_IRQ_EDGE_RISE, true);</pre>
<p> </p>
<p>end paste</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/test/">Test Forum</category>                        <dc:creator>THRandell</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/test/post-code-test/paged/2/#post-43763</guid>
                    </item>
				                    <item>
                        <title>RE: Post code test</title>
                        <link>https://forum.dronebotworkshop.com/test/post-code-test/paged/2/#post-43761</link>
                        <pubDate>Thu, 09 Nov 2023 17:49:03 +0000</pubDate>
                        <description><![CDATA[Testing a paste from Arduino IDE running on Macbook
 
// because i frequently don&#039;t get the screen session started in time
printf(&quot;waiting for usb host&quot;);
while (!stdio_usb_connected()) ...]]></description>
                        <content:encoded><![CDATA[<p>Testing a paste from Arduino IDE running on Macbook</p>
<p> </p>
<pre contenteditable="false">// because i frequently don't get the screen session started in time
printf("waiting for usb host");
while (!stdio_usb_connected()) {
printf(".");
sleep_ms(500);
}
sleep_ms(2000);</pre>
<p> </p>
<p>end paste</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/test/">Test Forum</category>                        <dc:creator>THRandell</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/test/post-code-test/paged/2/#post-43761</guid>
                    </item>
				                    <item>
                        <title>RE: Post code test</title>
                        <link>https://forum.dronebotworkshop.com/test/post-code-test/paged/2/#post-43760</link>
                        <pubDate>Thu, 09 Nov 2023 17:47:14 +0000</pubDate>
                        <description><![CDATA[Testing a paste from vi running on Macbook
 
    // because i frequently don&#039;t get the screen session started in time

    printf(&quot;waiting for usb host&quot;);

    while (!stdio_usb_connec...]]></description>
                        <content:encoded><![CDATA[<p>Testing a paste from vi running on Macbook</p>
<p> </p>
<pre contenteditable="false">    // because i frequently don't get the screen session started in time

    printf("waiting for usb host");

    while (!stdio_usb_connected()) {

      printf(".");

      sleep_ms(500);

    }

    sleep_ms(2000);</pre>
<p> </p>
<p>end paste</p>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/test/">Test Forum</category>                        <dc:creator>THRandell</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/test/post-code-test/paged/2/#post-43760</guid>
                    </item>
				                    <item>
                        <title>RE: Post code test</title>
                        <link>https://forum.dronebotworkshop.com/test/post-code-test/#post-39807</link>
                        <pubDate>Tue, 02 May 2023 03:35:22 +0000</pubDate>
                        <description><![CDATA[Now Copy for forum markdown and &lt;&gt;
```cpp
void setup(){
}

void loop() {
  uint8_t pin = 2;
  int value = LOW;

  analogWrite(pin, value);
}
```]]></description>
                        <content:encoded><![CDATA[<p><span>Now Copy for forum markdown and &lt;&gt;</span></p>
<pre contenteditable="false">```cpp
void setup(){
}

void loop() {
  uint8_t pin = 2;
  int value = LOW;

  analogWrite(pin, value);
}
```
</pre>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/test/">Test Forum</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/test/post-code-test/#post-39807</guid>
                    </item>
				                    <item>
                        <title>RE: Post code test</title>
                        <link>https://forum.dronebotworkshop.com/test/post-code-test/#post-39806</link>
                        <pubDate>Tue, 02 May 2023 03:34:41 +0000</pubDate>
                        <description><![CDATA[Now Copy for forum markdown and {;}
 
```cpp void setup(){ } void loop() { uint8_t pin = 2; int value = LOW; analogWrite(pin, value); } ```]]></description>
                        <content:encoded><![CDATA[<p>Now Copy for forum markdown and {;}</p>
<p> </p>
```cpp void setup(){ } void loop() { uint8_t pin = 2; int value = LOW; analogWrite(pin, value); } ```]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/test/">Test Forum</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/test/post-code-test/#post-39806</guid>
                    </item>
				                    <item>
                        <title>RE: Post code test</title>
                        <link>https://forum.dronebotworkshop.com/test/post-code-test/#post-39805</link>
                        <pubDate>Tue, 02 May 2023 03:33:50 +0000</pubDate>
                        <description><![CDATA[Now trying &lt;&gt;
void setup(){
}

void loop() {
  uint8_t pin = 2;
  int value = LOW;

  analogWrite(pin, value);
}]]></description>
                        <content:encoded><![CDATA[<p>Now trying &lt;&gt;</p>
<pre contenteditable="false">void setup(){
}

void loop() {
  uint8_t pin = 2;
  int value = LOW;

  analogWrite(pin, value);
}</pre>]]></content:encoded>
						                            <category domain="https://forum.dronebotworkshop.com/test/">Test Forum</category>                        <dc:creator>Ron</dc:creator>
                        <guid isPermaLink="true">https://forum.dronebotworkshop.com/test/post-code-test/#post-39805</guid>
                    </item>
							        </channel>
        </rss>
		