<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[RemoteXY community — Проблема передачи]]></title>
	<link rel="self" href="https://forum.remotexy.com/extern.php?action=feed&amp;tid=223&amp;type=atom" />
	<updated>2017-07-30T18:19:26Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.remotexy.com/viewtopic.php?id=223</id>
		<entry>
			<title type="html"><![CDATA[Re: Проблема передачи]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=841#p841" />
			<content type="html"><![CDATA[<p>Не используйте софт сериал на скорости выше 38400. Относится не только к RemoteXY.</p>]]></content>
			<author>
				<name><![CDATA[remotexy]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=2</uri>
			</author>
			<updated>2017-07-30T18:19:26Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=841#p841</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Проблема передачи]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=838#p838" />
			<content type="html"><![CDATA[<p>В модуле БТ снизил скорость до 9600 - проблема исчезла</p>]]></content>
			<author>
				<name><![CDATA[qwe]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=381</uri>
			</author>
			<updated>2017-07-30T12:23:56Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=838#p838</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Проблема передачи]]></title>
			<link rel="alternate" href="https://forum.remotexy.com/viewtopic.php?pid=837#p837" />
			<content type="html"><![CDATA[<p>Делаю скетч, просто один джойстик и пытаюсь ловить приходящие значения X Y.</p><p>Какая то фигня получается ((</p><p>- Двигаю джойстик<br />- XY либо не меняются<br />- Либо меняются сразу <br />- Либо меняются через неск секунд</p><p>Ну и если дебаг включаю нативный, там тоже приход данных совсем не коррелируется по времени с моими движениями.</p><p>Цепляюсь нанкой через SoftwareSerial(2,3) к BTBEE PRO (через делитель напряжения)</p><p>Библиотека - загрузил 2 часа назад с вашего сайта (новая). Приложение тоже новое.</p><p>Что не так?</p><div class="codebox"><pre><code>/* 
   -- New project -- 
    
   This source code of graphical user interface  
   has been generated automatically by RemoteXY editor. 
   To compile this code using RemoteXY library 2.3.1 or later version  
   download by link http://remotexy.com/en/library/ 
   To connect using RemoteXY mobile app by link http://remotexy.com/en/download/                    
     - for ANDROID 4.0.1 or later version; 
     - for iOS 1.1.0 or later version; 
     
   This source code is free software; you can redistribute it and/or 
   modify it under the terms of the GNU Lesser General Public 
   License as published by the Free Software Foundation; either 
   version 2.1 of the License, or (at your option) any later version.     
*/ 

////////////////////////////////////////////// 
//        RemoteXY include library          // 
////////////////////////////////////////////// 

// определение режима соединения и подключение библиотеки RemoteXY  
#define REMOTEXY_MODE__SOFTSERIAL
#include &lt;SoftwareSerial.h&gt; 

#include &lt;RemoteXY.h&gt; 

// настройки соединения  
#define REMOTEXY_SERIAL_RX 2 
#define REMOTEXY_SERIAL_TX 3 
#define REMOTEXY_SERIAL_SPEED 115200 


// конфигурация интерфейса   
#pragma pack(push, 1) 
uint8_t RemoteXY_CONF[] = 
  { 255,2,0,0,0,10,0,6,5,0,
  5,0,34,18,30,30,2 }; 
   
// структура определяет все переменные вашего интерфейса управления  
struct { 

    // input variable
  int8_t joystick_1_x; // =-100..100 координата x положения джойстика 
  int8_t joystick_1_y; // =-100..100 координата y положения джойстика 

    // other variable
  uint8_t connect_flag;  // =1 if wire connected, else =0 

} RemoteXY; 
#pragma pack(pop) 

///////////////////////////////////////////// 
//           END RemoteXY include          // 
///////////////////////////////////////////// 



void setup()  
{ 
  RemoteXY_Init ();  
   
   
  // TODO you setup code 
   Serial.begin(9600);
} 

void loop()  
{  
  RemoteXY_Handler (); 
   
     Serial.print(&quot;X: &quot;);Serial.print(RemoteXY.joystick_1_x);
  Serial.print(&quot; Y: &quot;);Serial.print(RemoteXY.joystick_1_y);
  Serial.print(&quot;\n&quot;);
  return;
  // TODO you loop code 
  // используйте структуру RemoteXY для передачи данных 


}</code></pre></div>]]></content>
			<author>
				<name><![CDATA[qwe]]></name>
				<uri>https://forum.remotexy.com/profile.php?id=381</uri>
			</author>
			<updated>2017-07-29T09:49:51Z</updated>
			<id>https://forum.remotexy.com/viewtopic.php?pid=837#p837</id>
		</entry>
</feed>
