[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 • Просмотр темы - Pins SDK




 

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

Pins SDK

Обсуждение линуксовой части и софта на борту виртурилки

Pins SDK

Сообщение phoenix367 » 27 сен 2013, 23:00

В процессе исследования виртурилки мне стало понятно, что для написания под нее программ на C++ потребуется SDK для управления пинами ввода-вывода. Поскольку по понятным причинам в природе такого не существует, то возникло желание его разработать и заодно поближе познакомится с особенностями ввода-вывода на виртурилке. Поэтому был запилен проект с использованием тулчейна Codesourcery. Его довольно удачно удалось прикрутить к NetBeans IDE, что существенно облегчило сам процесс разработки. Даже удалось заставить работать отладчик (правда в ограниченном объеме). Сам проект я решил сделать открытым и выложил на гитхабе по адресу https://github.com/phoenix367/v2rpins_sdk.

Сейчас там конечно немного всего - только управление пинами аппаратного PWM и демонстрационная программа. Но надеюсь, что со временем проект удастся развить до нормального состояния.

Если есть желающие присоединиться к разработке - you are welcome. Замечания и пожелания также приветствуются.
phoenix367
 
Сообщения: 193
Зарегистрирован: 09 сен 2013, 00:19

Re: Pins SDK

Сообщение andrewion » 28 сен 2013, 00:54

Добрый день!

Было бы очень круто, если бы у вас в SDK была бы возможность управлять сервой как в ардуино. А то сейчас сижу и курю вики () как расчитать эти тики и дути так, чтобы можно было бы управлять сервой в градусах, а не магическими заклинаниями формул из вики :D
Аватара пользователя
andrewion
 
Сообщения: 150
Зарегистрирован: 03 сен 2013, 21:46

Re: Pins SDK

Сообщение phoenix367 » 28 сен 2013, 01:34

Так вроде поворот сервопривода на заданный угол зависит от его характеристик, т.е. для разных приводов нужна разная длительность импульсов, чтобы они на одинаковый угол поворачивались. Или я не прав?
phoenix367
 
Сообщения: 193
Зарегистрирован: 09 сен 2013, 00:19

Re: Pins SDK

Сообщение Arle » 28 сен 2013, 11:23

Нужно управление камерой, сервомашинками, управление входами выходами. Ну и работа на андроиде )))
Аватара пользователя
Arle
 
Сообщения: 35
Зарегистрирован: 09 сен 2013, 16:42

Re: Pins SDK

Сообщение Mirmik » 28 сен 2013, 11:43

... и перерастворяясь из одной формы реальности в другую. И вот он я, рядом с вами падаю в эту же нору, тот кто волшебной палочкой вра...
Аватара пользователя
Mirmik
 
Сообщения: 222
Зарегистрирован: 04 сен 2013, 19:20
Откуда: Московская область, Пушкино

Re: Pins SDK

Сообщение Mirmik » 28 сен 2013, 11:49

Вот формула пересчета из градусов, если верить той инфе, что выложил камрад Gol.
(Хотя, должен сказать, что числа, ИМХО немного другие... Даже на видео, идущем в вики видно, что серва не доворачивается.)

#define grade_0 16666
#define grade_180 52380
duty=grade*(grade_180-grade_0)/180+grade_0;

Причем формула подходит не только для серв с лимитом в 180.
... и перерастворяясь из одной формы реальности в другую. И вот он я, рядом с вами падаю в эту же нору, тот кто волшебной палочкой вра...
Аватара пользователя
Mirmik
 
Сообщения: 222
Зарегистрирован: 04 сен 2013, 19:20
Откуда: Московская область, Пушкино

Re: Pins SDK

Сообщение andrewion » 28 сен 2013, 14:11

Аватара пользователя
andrewion
 
Сообщения: 150
Зарегистрирован: 03 сен 2013, 21:46

Re: Pins SDK

Сообщение andrewion » 28 сен 2013, 14:15

Аватара пользователя
andrewion
 
Сообщения: 150
Зарегистрирован: 03 сен 2013, 21:46

Re: Pins SDK

Сообщение Mirmik » 28 сен 2013, 18:55

... и перерастворяясь из одной формы реальности в другую. И вот он я, рядом с вами падаю в эту же нору, тот кто волшебной палочкой вра...
Аватара пользователя
Mirmik
 
Сообщения: 222
Зарегистрирован: 04 сен 2013, 19:20
Откуда: Московская область, Пушкино

Re: Pins SDK

Сообщение scayn » 28 сен 2013, 19:05

Аватара пользователя
scayn
 
Сообщения: 27
Зарегистрирован: 16 сен 2013, 16:14

След.

Вернуться в Софт на виртурилке - SDK, Linux, Github, программирование (C/C++ и др.)

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

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

cron