[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4678: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4680: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4681: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4682: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3815)
virt2real.ru • Просмотр темы - telegue




 

Управляем чем угодно откуда угодно

telegue

Глупых вопросов не бывает! Раздел для тех, кто только начинает.

Re: telegue

Сообщение holmes » 10 апр 2014, 14:38

Аватара пользователя
holmes
 
Сообщения: 83
Зарегистрирован: 13 ноя 2013, 00:02
Откуда: Мск

Re: telegue

Сообщение mksmbrtsh » 10 апр 2014, 23:10

перемычки стоят, как на схеме:
http://wiki.virt2real.ru/wiki/%D0%A4%D0 ... elegue.png
может быть светодиод подох, не суть важно.
Лучше давайте с управлением моторами из андроида разбиремся.

1. Сначала я прикрутил этот джойстик:
https://github.com/zerokol/JoystickView
и сделал полный аналог того, что в админке в эксперементах (telegue).
Управление с этим квадратом в ней и соответственно на андроиде не очень интуитивным получилось. В принципе можно тут остановиться, исправить косяки, прикрутить gstreamer, залить на гитхаб и получиться то что тут http://wiki.virt2real.ru/wiki/%D0%9A%D0 ... 0%BA%D1%83
под заголовком "Управление из Android".

2. Сейчас я сделал такую штуку:
https://docs.google.com/file/d/0B74-bTY ... l2S0k/edit
т.е. два рычага, на левую и правую стороны, как в [s]танке[/s] тракторе. Допустим диапазон значений от 0 до 250 на рычаг.
Можете подсказать, как эти два значения {Y1, Y2} преобразовать в те {x,y} что берутся в админке с квадрата и в json заталкиваются под v1, v2. Или может серверную часть изменить проще...
holmes как думаете, что лучше путь 1 или путь 2?
mksmbrtsh
 
Сообщения: 44
Зарегистрирован: 11 окт 2013, 11:53

Re: telegue

Сообщение holmes » 10 апр 2014, 23:24

Ну путь 2 мне больше нравится. Так естественнее.
А сервер менять не надо, поменяйте лучше template, посылайте команду drive как и от кнопок, а не adrive или как там сейчас этот квадрат работает.
Аватара пользователя
holmes
 
Сообщения: 83
Зарегистрирован: 13 ноя 2013, 00:02
Откуда: Мск

Re: telegue

Сообщение Lihoy » 11 апр 2014, 06:41

Аватара пользователя
Lihoy
 
Сообщения: 34
Зарегистрирован: 04 сен 2013, 08:34

Re: telegue

Сообщение holmes » 11 апр 2014, 12:06

Аватара пользователя
holmes
 
Сообщения: 83
Зарегистрирован: 13 ноя 2013, 00:02
Откуда: Мск

Re: telegue

Сообщение mksmbrtsh » 11 апр 2014, 14:21

mksmbrtsh
 
Сообщения: 44
Зарегистрирован: 11 окт 2013, 11:53

Re: telegue

Сообщение holmes » 11 апр 2014, 17:41

[b]2 mksmbrtsh[b]
Чтоб телега ездила нормально поменяйте местами провода на левом моторе.

По поводу template я имел в виду файл из /var/www/modules/telegue. Там вся страница телеги.
Аватара пользователя
holmes
 
Сообщения: 83
Зарегистрирован: 13 ноя 2013, 00:02
Откуда: Мск

Re: telegue

Сообщение mksmbrtsh » 11 апр 2014, 19:57

mksmbrtsh
 
Сообщения: 44
Зарегистрирован: 11 окт 2013, 11:53

Re: telegue

Сообщение mksmbrtsh » 13 апр 2014, 21:35

Вот что получилось в итоге:
https://github.com/mksmbrtsh/Telegue
Наверное следует форкнуть в репозиторий виртурилки:
https://github.com/virt2real
Надеюсь кому-нибудь пригодиться ещё.
mksmbrtsh
 
Сообщения: 44
Зарегистрирован: 11 окт 2013, 11:53

Re: telegue

Сообщение Lihoy » 14 апр 2014, 06:09

Я правильно понял, что это приложение на андроид? а можно его в собранном виде выложить?
Для чайников все таки :)
Аватара пользователя
Lihoy
 
Сообщения: 34
Зарегистрирован: 04 сен 2013, 08:34

Пред.След.

Вернуться в Раздел "для чайников"

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 5

cron