<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — RemoteXY Communication Failure Watch dog]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=1360&amp;type=atom" />
	<updated>2021-08-08T09:47:40Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=1360</id>
		<entry>
			<title type="html"><![CDATA[Re: RemoteXY Communication Failure Watch dog]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=4186#p4186" />
			<content type="html"><![CDATA[<p>Thank you mate, I will try your suggestion as well.</p>]]></content>
			<author>
				<name><![CDATA[Mahen@Oz]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=1907</uri>
			</author>
			<updated>2021-08-08T09:47:40Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=4186#p4186</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: RemoteXY Communication Failure Watch dog]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=4184#p4184" />
			<content type="html"><![CDATA[<p>On my tracked rover, I have this in my </p><div class="codebox"><pre><code>void loop()</code></pre></div><p>&nbsp; <br />In my case, it centers the joystick values (which programmatically stops the tracks as the following code takes those values and controls the motors) and flashes the headlight to signal loss of connection to the App.</p><div class="codebox"><pre><code>  // Connection Failsafe
  if (RemoteXY_isConnected() == 0) {
    RemoteXY.joystick_1_x = 0; // Set for dead stop
    RemoteXY.joystick_1_y = 0; // Set for dead stop
    // Flash headlamp LED when App not connected.
    digitalWrite(PIN_LED, !digitalRead(PIN_LED));
    delay(500);
  }</code></pre></div>]]></content>
			<author>
				<name><![CDATA[Gunner]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=1840</uri>
			</author>
			<updated>2021-08-08T09:34:22Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=4184#p4184</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[RemoteXY Communication Failure Watch dog]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=4180#p4180" />
			<content type="html"><![CDATA[<p>I am a new user of this brilliant App. One thing that I found wanting was a comms failure watchdog. So I wrote this script. <br />It works!!. </p><p>Insert this at the top of your void loop.</p><p>void loop() <br />{&nbsp; &nbsp;<br />&nbsp; RemoteXY_Handler ();</p><p>&nbsp; if (RemoteXY.connect_flag==0){<br />&nbsp; <br />&nbsp; digitalWrite(PIN_SWITCH_1, LOW);<br />&nbsp; <br />}<br />&nbsp; else</p><p>&nbsp; digitalWrite(PIN_SWITCH_1, (RemoteXY.switch_1==0)?LOW:HIGH);<br />}</p>]]></content>
			<author>
				<name><![CDATA[Mahen@Oz]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=1907</uri>
			</author>
			<updated>2021-08-06T22:15:39Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=4180#p4180</id>
		</entry>
</feed>
