PCCar.ru - Ваш автомобильный компьютер

PCCar.ru - Ваш автомобильный компьютер (http://pccar.ru/index.php)
-   iCarDS (http://pccar.ru/forumdisplay.php?f=121)
-   -   iCarDS + Arduino = iCarDuino (http://pccar.ru/showthread.php?t=16718)

YraY 14.06.2016 00:08

Цитата:

Сообщение от ~aviator~ (Сообщение 361804)
но видимо скетч который писали под этот кусок, не идет для работы с икаром,

Не видимо, а точно не идет - еще раз - икар работает по своему протоколу, со своим скетчем
Цитата:

Сообщение от ~aviator~ (Сообщение 361804)
у меня всего один энкодер нажимной и 3 резистивные кнопки, вся остальная часть мне не нужна
может кто может поправить скетч под эти задачи?

Ничего не нужно править если не умеешь, должен и так работать, как есть, без изменений.
Ему как бы все равно сколько у тебя кнопок и энкодеров.
От того что есть коды будут передаваться, а от того чего нет соответственно ничего передаваться не будет.

~aviator~ 20.06.2016 15:48

Скажите почему ошибка при компиляции?










In file included from D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:14:
D:\1\arduino-1.0.5-r2\libraries\IRremote\/IRremoteInt.h:113: error: 'uint8_t' does not name a type
D:\1\arduino-1.0.5-r2\libraries\IRremote\/IRremoteInt.h:114: error: 'uint8_t' does not name a type
D:\1\arduino-1.0.5-r2\libraries\IRremote\/IRremoteInt.h:115: error: 'uint8_t' does not name a type
D:\1\arduino-1.0.5-r2\libraries\IRremote\/IRremoteInt.h:118: error: 'uint8_t' does not name a type
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp: In member function 'void IRsend::mark(int)':
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:259: error: 'delayMicroseconds' was not declared in this scope
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp: In member function 'void IRsend::space(int)':
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:268: error: 'delayMicroseconds' was not declared in this scope
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp: In member function 'void IRsend::enableIROut(int)':
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:288: error: 'OUTPUT' was not declared in this scope
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:288: error: 'pinMode' was not declared in this scope
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:289: error: 'LOW' was not declared in this scope
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:289: error: 'digitalWrite' was not declared in this scope
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp: In constructor 'IRrecv::IRrecv(int)':
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:306: error: 'volatile struct irparams_t' has no member named 'recvpin'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:307: error: 'volatile struct irparams_t' has no member named 'blinkflag'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp: In member function 'void IRrecv::enableIRIn()':
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:331: error: 'volatile struct irparams_t' has no member named 'rcvstate'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:332: error: 'volatile struct irparams_t' has no member named 'rawlen'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:336: error: 'volatile struct irparams_t' has no member named 'recvpin'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:336: error: 'INPUT' was not declared in this scope
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:336: error: 'pinMode' was not declared in this scope
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp: In member function 'void IRrecv::blink13(int)':
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:343: error: 'volatile struct irparams_t' has no member named 'blinkflag'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:345: error: 'OUTPUT' was not declared in this scope
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:345: error: 'pinMode' was not declared in this scope
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp: In function 'void TIMER2_OVF_vect()':
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:359: error: 'volatile struct irparams_t' has no member named 'recvpin'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:359: error: 'digitalRead' was not declared in this scope
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:362: error: 'volatile struct irparams_t' has no member named 'rawlen'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:364: error: 'volatile struct irparams_t' has no member named 'rcvstate'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:366: error: 'volatile struct irparams_t' has no member named 'rcvstate'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:375: error: 'volatile struct irparams_t' has no member named 'rawlen'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:376: error: 'volatile struct irparams_t' has no member named 'rawlen'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:378: error: 'volatile struct irparams_t' has no member named 'rcvstate'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:384: error: 'volatile struct irparams_t' has no member named 'rawlen'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:386: error: 'volatile struct irparams_t' has no member named 'rcvstate'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:391: error: 'volatile struct irparams_t' has no member named 'rawlen'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:393: error: 'volatile struct irparams_t' has no member named 'rcvstate'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:401: error: 'volatile struct irparams_t' has no member named 'rcvstate'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:412: error: 'volatile struct irparams_t' has no member named 'blinkflag'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:414: error: 'B00100000' was not declared in this scope
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:417: error: 'B11011111' was not declared in this scope
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp: In member function 'void IRrecv::resume()':
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:423: error: 'volatile struct irparams_t' has no member named 'rcvstate'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:424: error: 'volatile struct irparams_t' has no member named 'rawlen'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp: In member function 'int IRrecv::decode(decode_results*)':
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:434: error: 'volatile struct irparams_t' has no member named 'rawlen'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:435: error: 'volatile struct irparams_t' has no member named 'rcvstate'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp: In member function 'long int IRrecv::decodeJVC(decode_results*)':
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:507: error: 'volatile struct irparams_t' has no member named 'rawlen'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:509: error: 'volatile struct irparams_t' has no member named 'rawlen'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:509: error: 'volatile struct irparams_t' has no member named 'rawlen'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:520: error: 'volatile struct irparams_t' has no member named 'rawlen'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp: In member function 'long int IRrecv::decodeSAMSUNG(decode_results*)':
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:566: error: 'volatile struct irparams_t' has no member named 'rawlen'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp: In member function 'long int IRrecv::decodeNEC(decode_results*)':
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:663: error: 'volatile struct irparams_t' has no member named 'rawlen'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:671: error: 'volatile struct irparams_t' has no member named 'rawlen'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp: In member function 'long int IRrecv::decodeSony(decode_results*)':
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:705: error: 'volatile struct irparams_t' has no member named 'rawlen'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:715: error: 'volatile struct irparams_t' has no member named 'rawlen'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp: In member function 'long int IRrecv::decodeRC5(decode_results*)':
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:794: error: 'volatile struct irparams_t' has no member named 'rawlen'
D:\1\arduino-1.0.5-r2\libraries\IRremote\IRremote.cpp:805: error: 'volatile struct irparams_t' has no member named 'rawlen'

AL98 20.06.2016 16:01

Похоже, у Вас кривая библиотека IRremote. Раз Вам не нужен инфракрасный пульт, просто удалитеиз исходника все, что касается IRremote.

~aviator~ 20.06.2016 16:06

там много всего про IR, много где завязан
боюсь удалить не то

~aviator~ 20.06.2016 16:08

может есть у кого ном. библиотека?

AL98 20.06.2016 16:16

Цитата:

Сообщение от ~aviator~ (Сообщение 363081)
там много всего про IR, много где завязан
боюсь удалить не то

не бойтесь. Ничего страшного не случится.
Сам не использую этот скетч, у меня только кнопки руля.

~aviator~ 20.06.2016 17:19

блин может не заработать у меня с этим скетчем, так как делал под вот этот
хотя может и заработает но наверное без нажатия на энкодер, не поню только на какие входы я что повесил блин

AL98 20.06.2016 17:43

https://github.com/z3t0/Arduino-IRremote/releases

Скачал отсюда ...irremote..., переименовал и подключил к arduino 1.6.8. Все компилируется без ошибок. Понятно, что заливать-проверять не буду. Успехов!

AL98 30.06.2016 23:41

Новая проблема. На win7-64 arduino v7 работала нормально. Поставил win10-64 - работать не хочет. Порт в конфигураторе выставлен, скорость тоже. Реакции в настройках duino в икаре нет. Куда лезть?
Версия 60b 15

OsDima 02.07.2016 20:13

В семерке решалась откатыванием дров сом до 2.8.14 в десятке уже не помогает,
Только оригинальные микросxемы, у меня из 5-ти дуинок только 2 работают под десяткой


Часовой пояс GMT +4, время: 23:10.

Работает на vBulletin® версия 3.8.4.
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Перевод: zCarot