[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
Страница 1 из 3

Pins SDK

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

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

Если есть желающие присоединиться к разработке - you are welcome. Замечания и пожелания также приветствуются.

Re: Pins SDK

СообщениеДобавлено: 28 сен 2013, 00:54
andrewion
Добрый день!

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

Re: Pins SDK

СообщениеДобавлено: 28 сен 2013, 01:34
phoenix367
Так вроде поворот сервопривода на заданный угол зависит от его характеристик, т.е. для разных приводов нужна разная длительность импульсов, чтобы они на одинаковый угол поворачивались. Или я не прав?

Re: Pins SDK

СообщениеДобавлено: 28 сен 2013, 11:23
Arle
Нужно управление камерой, сервомашинками, управление входами выходами. Ну и работа на андроиде )))

Re: Pins SDK

СообщениеДобавлено: 28 сен 2013, 11:43
Mirmik

Re: Pins SDK

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

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

Причем формула подходит не только для серв с лимитом в 180.

Re: Pins SDK

СообщениеДобавлено: 28 сен 2013, 14:11
andrewion

Re: Pins SDK

СообщениеДобавлено: 28 сен 2013, 14:15
andrewion

Re: Pins SDK

СообщениеДобавлено: 28 сен 2013, 18:55
Mirmik

Re: Pins SDK

СообщениеДобавлено: 28 сен 2013, 19:05
scayn