Baychi OpenLRS - дружелюбная ЛРС с широкими возможностями )
Потому что я скопировал с гита, а там эта строчка изменена 8 дней назад.
Александр где-то рядом
Да у себя не нашел, файлы скаченные летом. Плохо искал.
Александр где-то рядом
Это хорошо. Александр мы ждем Вас.
if(Servo_Buffer[i] < 1760 || Servo_Buffer[i] > 4240) Servo_Buffer[i]=3000; // защита от некорретных данных
Для футабы правильней наверно так было бы 1760 4320 и 3040 (хотя надо еще постарться, что бы вылезти за эти лимиты))
если судить что
изменение импульсов от Futaba составляет 880-2160 мкс или +/- 640 мкс относительно нейтрали в 1520 мкс.
Где каталог с исходниками размещать?
Пробовал как в корень с ардуно так и в каталог который создает сама программа в темпъюрити.
По мануалу: “Файлы проекта необходимо разместить в каталоге с именем OpenTiny_RX и запустить среду arduino.”
При компиляции не находит видимо файл.
OpenTiny_Rx.ino:18:20: error: config.h: No such file or directory
OpenTiny_Rx.ino: In function 'void tryRecvSat()':
OpenTiny_Rx:33: error: 'time' was not declared in this scope
OpenTiny_Rx:33: error: 'lastSatTime' was not declared in this scope
OpenTiny_Rx:33: error: 'SAT_AFTER_TIME' was not declared in this scope
OpenTiny_Rx:38: error: 'satCntr' was not declared in this scope
OpenTiny_Rx:39: error: 'SAT_PACK_HEADER' was not declared in this scope
OpenTiny_Rx:40: error: 'satIn' was not declared in this scope
OpenTiny_Rx:42: error: 'satRecFlag' was not declared in this scope
OpenTiny_Rx:43: error: 'menuFlag' was not declared in this scope
OpenTiny_Rx:46: error: 'satIn' was not declared in this scope
OpenTiny_Rx:47: error: 'SAT_PACK_LEN' was not declared in this scope
OpenTiny_Rx:49: error: 'calcCRC' was not declared in this scope
OpenTiny_Rx:50: error: 'lastSatTime' was not declared in this scope
OpenTiny_Rx:50: error: 'time' was not declared in this scope
OpenTiny_Rx:51: error: 'satRecFlag' was not declared in this scope
OpenTiny_Rx.ino: In function 'void setup()':
OpenTiny_Rx:65: error: 'GREEN_LED_pin' was not declared in this scope
OpenTiny_Rx:66: error: 'RED_LED_pin' was not declared in this scope
OpenTiny_Rx:69: error: 'SDO_pin' was not declared in this scope
OpenTiny_Rx:70: error: 'SDI_pin' was not declared in this scope
OpenTiny_Rx:71: error: 'SCLK_pin' was not declared in this scope
OpenTiny_Rx:72: error: 'IRQ_pin' was not declared in this scope
OpenTiny_Rx:73: error: 'nSel_pin' was not declared in this scope
OpenTiny_Rx:79: error: 'RSSI_OUT' was not declared in this scope
OpenTiny_Rx:81: error: 'Servo1_OUT' was not declared in this scope
OpenTiny_Rx:82: error: 'Servo2_OUT' was not declared in this scope
OpenTiny_Rx:83: error: 'Servo3_OUT' was not declared in this scope
OpenTiny_Rx:84: error: 'Servo4_OUT' was not declared in this scope
OpenTiny_Rx:85: error: 'Servo5_OUT' was not declared in this scope
OpenTiny_Rx:86: error: 'Servo6_OUT' was not declared in this scope
OpenTiny_Rx:87: error: 'Servo7_OUT' was not declared in this scope
OpenTiny_Rx:88: error: 'Servo8_OUT' was not declared in this scope
OpenTiny_Rx:89: error: 'Servo9_OUT' was not declared in this scope
OpenTiny_Rx:90: error: 'Servo10_OUT' was not declared in this scope
OpenTiny_Rx:101: error: 'INIT_SERVO_DRIVER' was not declared in this scope
OpenTiny_Rx:103: error: 'IRQ_interrupt' was not declared in this scope
OpenTiny_Rx:103: error: 'RFM22B_Int' was not declared in this scope
OpenTiny_Rx.ino: In function 'void __vector_13()':
OpenTiny_Rx:118: error: 'offOutsMask' was not declared in this scope
OpenTiny_Rx:122: error: 'PWM_enable' was not declared in this scope
OpenTiny_Rx:123: error: 'Servo_Number' was not declared in this scope
OpenTiny_Rx:124: error: 'reciever_outs' was not declared in this scope
OpenTiny_Rx:125: error: 'total_ppm_time' was not declared in this scope
OpenTiny_Rx:129: error: 'reciever_outs' was not declared in this scope
OpenTiny_Rx:130: error: 'total_ppm_time' was not declared in this scope
OpenTiny_Rx:130: error: 'ppmPwmCycleTime' was not declared in this scope
OpenTiny_Rx:134: error: 'receiver_mode' was not declared in this scope
OpenTiny_Rx:134: error: 'pwm1chnl' was not declared in this scope
OpenTiny_Rx:135: error: 'Servo_Position' was not declared in this scope
OpenTiny_Rx:136: error: 'total_ppm_time' was not declared in this scope
OpenTiny_Rx:139: error: 'receiver_mode' was not declared in this scope
OpenTiny_Rx:142: error: 'pwm1chnl' was not declared in this scope
OpenTiny_Rx:147: error: 'portMask' was not declared in this scope
OpenTiny_Rx:148: error: 'portAddr' was not declared in this scope
OpenTiny_Rx:151: error: 'receiver_mode' was not declared in this scope
OpenTiny_Rx:151: error: 'MAX_PPM_OUT' was not declared in this scope
OpenTiny_Rx:152: error: 'Serial_PPM_OUT_HIGH' was not declared in this scope
OpenTiny_Rx:155: error: 'Serial_PPM_OUT_LOW' was not declared in this scope
OpenTiny_Rx:157: error: 'ppmPwmCycleTime' was not declared in this scope
OpenTiny_Rx:159: error: 'ppmPwmCycleTime' was not declared in this scope
OpenTiny_Rx.ino: In function 'void dOutsInit()':
OpenTiny_Rx:206: error: 'receiver_mode' was not declared in this scope
OpenTiny_Rx:207: error: 'Regs4' was not declared in this scope
OpenTiny_Rx:208: error: 'confReg' was not declared in this scope
OpenTiny_Rx:211: error: 'Regs4' was not declared in this scope
OpenTiny_Rx:211: error: 'confReg' was not declared in this scope
OpenTiny_Rx:215: error: 'portAddr' was not declared in this scope
OpenTiny_Rx:216: error: 'portAddr' was not declared in this scope
OpenTiny_Rx:218: error: 'offOutsMask' was not declared in this scope
OpenTiny_Rx:218: error: 'diskrMask' was not declared in this scope
OpenTiny_Rx:219: error: 'portMask' was not declared in this scope
OpenTiny_Rx.ino: In function 'void prepRSSI()':
OpenTiny_Rx:242: error: 'Rx_RSSI' was not declared in this scope
OpenTiny_Rx:242: error: 'N_RSSI' was not declared in this scope
OpenTiny_Rx:242: error: 'Pause_RSSI' was not declared in this scope
OpenTiny_Rx:242: error: 'N_pause' was not declared in this scope
OpenTiny_Rx.ino: In function 'void loop()':
OpenTiny_Rx:255: error: 'satFlag' was not declared in this scope
OpenTiny_Rx:255: error: 'SAT_MODE_JUMPER' was not declared in this scope
OpenTiny_Rx:255: error: 'check_modes' was not declared in this scope
OpenTiny_Rx:257: error: 'Red_LED_Blink' was not declared in this scope
OpenTiny_Rx:259: error: 'WDTO_1S' was not declared in this scope
OpenTiny_Rx:259: error: 'wdt_enable' was not declared in this scope
OpenTiny_Rx:261: error: 'REBIND_JUMPER' was not declared in this scope
OpenTiny_Rx:261: error: 'makeBind' was not declared in this scope
OpenTiny_Rx:262: error: 'SERIAL_BAUD_RATE' was not declared in this scope
OpenTiny_Rx:264: error: 'printHeader' was not declared in this scope
OpenTiny_Rx:268: error: 'eeprom_check' was not declared in this scope
OpenTiny_Rx:269: error: 'beaconFcorr' was not declared in this scope
OpenTiny_Rx:269: error: 'Regs4' was not declared in this scope
OpenTiny_Rx:270: error: 'receiver_mode' was not declared in this scope
OpenTiny_Rx:270: error: 'confReg' was not declared in this scope
OpenTiny_Rx:272: error: 'PPM_MODE_JUMPER' was not declared in this scope
OpenTiny_Rx:275: error: 'reciever_outs' was not declared in this scope
OpenTiny_Rx:275: error: 'MAX_SBUS_OUT' was not declared in this scope
OpenTiny_Rx:276: error: 'ppmPwmCycleTime' was not declared in this scope
OpenTiny_Rx:280: error: 'portMask' was not declared in this scope
OpenTiny_Rx:281: error: 'offOutsMask' was not declared in this scope
OpenTiny_Rx:281: error: 'SBUS_OUT_PORT' was not declared in this scope
OpenTiny_Rx:281: error: 'SBUS_OUT_BIT' was not declared in this scope
OpenTiny_Rx:282: error: 'SBUS_OUT_HIGH' was not declared in this scope
OpenTiny_Rx:285: error: 'statInit' was not declared in this scope
OpenTiny_Rx:288: error: 'load_failsafe_values' was not declared in this scope
OpenTiny_Rx:291: error: 'PWM_enable' was not declared in this scope
OpenTiny_Rx:295: error: 'showRegs' was not declared in this scope
OpenTiny_Rx:313: error: 'printlnPGM' was not declared in this scope
OpenTiny_Rx:321: error: 'search_mode' was not declared in this scope
OpenTiny_Rx:322: error: 'rx_reset' was not declared in this scope
OpenTiny_Rx:323: error: 'to_rx_mode' was not declared in this scope
OpenTiny_Rx:325: error: 'RF_Mode' was not declared in this scope
OpenTiny_Rx:325: error: 'Receive' was not declared in this scope
OpenTiny_Rx:327: error: 'start_time' was not declared in this scope
OpenTiny_Rx:327: error: 'time' was not declared in this scope
OpenTiny_Rx:329: error: 'last_pack_time' was not declared in this scope
OpenTiny_Rx:330: error: 'last_hopping_time' was not declared in this scope
OpenTiny_Rx:334: error: 'wdt_reset' was not declared in this scope
OpenTiny_Rx:343: error: 'Received' was not declared in this scope
OpenTiny_Rx:344: error: 'Red_LED_OFF' was not declared in this scope
OpenTiny_Rx:344: error: 'Green_LED_ON' was not declared in this scope
OpenTiny_Rx:348: error: 'RF_PACK_SIZE' was not declared in this scope
OpenTiny_Rx:349: error: 'RF_Rx_Buffer' was not declared in this scope
OpenTiny_Rx:353: error: 'hopping_channel' was not declared in this scope
OpenTiny_Rx:355: error: 'Hopping' was not declared in this scope
OpenTiny_Rx:359: error: 'RF_Rx_Buffer' was not declared in this scope
OpenTiny_Rx:359: error: 'calcCRC' was not declared in this scope
OpenTiny_Rx:366: error: 'Buf_To_Servo' was not declared in this scope
OpenTiny_Rx:371: error: 'save_failsafe_values' was not declared in this scope
OpenTiny_Rx:380: error: 'N_RSSI' was not declared in this scope
OpenTiny_Rx:380: error: 'Rx_RSSI' was not declared in this scope
OpenTiny_Rx:381: error: 'N_RSSI' was not declared in this scope
OpenTiny_Rx:381: error: 'Rx_RSSI' was not declared in this scope
OpenTiny_Rx:382: error: 'N_pause' was not declared in this scope
OpenTiny_Rx:382: error: 'Pause_RSSI' was not declared in this scope
OpenTiny_Rx:383: error: 'Pause_RSSI' was not declared in this scope
OpenTiny_Rx:385: error: 'Pause_RSSI' was not declared in this scope
OpenTiny_Rx:388: error: 'RSSIreg' was not declared in this scope
OpenTiny_Rx:388: error: 'lastRSSI' was not declared in this scope
OpenTiny_Rx:389: error: 'lastRSSI' was not declared in this scope
OpenTiny_Rx:390: error: 'lastRSSI' was not declared in this scope
OpenTiny_Rx:412: error: 'curStat' was not declared in this scope
OpenTiny_Rx:413: error: 'Pause_RSSI' was not declared in this scope
OpenTiny_Rx:427: error: 'AFC_POROG' was not declared in this scope
OpenTiny_Rx:434: error: 'lastPackBad' was not declared in this scope
OpenTiny_Rx:436: error: 'beacon_flag' was not declared in this scope
OpenTiny_Rx:436: error: 'failsafe_mode' was not declared in this scope
OpenTiny_Rx:437: error: 'self_pack_time' was not declared in this scope
OpenTiny_Rx:437: error: 'last_beacon_time' was not declared in this scope
OpenTiny_Rx:439: error: 'rl_counter' was not declared in this scope
OpenTiny_Rx:441: error: 'lastPackBad' was not declared in this scope
OpenTiny_Rx:442: error: 'Direct_Servo_Drive' was not declared in this scope
OpenTiny_Rx:444: error: 'SAT_PACK_HEADER' was not declared in this scope
OpenTiny_Rx:445: error: 'SAT_PACK_LEN' was not declared in this scope
OpenTiny_Rx:449: error: 'Green_LED_OFF' was not declared in this scope
OpenTiny_Rx:450: error: 'sendSbus' was not declared in this scope
OpenTiny_Rx:456: error: 'sendSbus' was not declared in this scope
OpenTiny_Rx:458: error: 'doFrecHandCorr' was not declared in this scope
OpenTiny_Rx:459: error: 'menuFlag' was not declared in this scope
OpenTiny_Rx:459: error: 'MENU_WAIT_TIME' was not declared in this scope
OpenTiny_Rx:460: error: 'checkMenu' was not declared in this scope
OpenTiny_Rx:461: error: 'doMenu' was not declared in this scope
OpenTiny_Rx:469: error: 'satRecFlag' was not declared in this scope
OpenTiny_Rx:469: error: 'lastSatTime' was not declared in this scope
OpenTiny_Rx:469: error: 'self_pack_time' was not declared in this scope
OpenTiny_Rx:470: error: 'satIn' was not declared in this scope
OpenTiny_Rx:470: error: 'Buf_To_Servo' was not declared in this scope
OpenTiny_Rx:471: error: 'Direct_Servo_Drive' was not declared in this scope
OpenTiny_Rx:473: error: 'beacon_flag' was not declared in this scope
OpenTiny_Rx:473: error: 'failsafe_mode' was not declared in this scope
OpenTiny_Rx:474: error: 'last_beacon_time' was not declared in this scope
OpenTiny_Rx:476: error: 'SAT_PACK_LEN' was not declared in this scope
OpenTiny_Rx:480: error: 'TIME_TO_FS' was not declared in this scope
OpenTiny_Rx:480: error: 'failsafe_mode' was not declared in this scope
OpenTiny_Rx:483: error: 'last_beacon_time' was not declared in this scope
OpenTiny_Rx:485: error: 'Direct_Servo_Drive' was not declared in this scope
OpenTiny_Rx:486: error: 'Red_LED_OFF' was not declared in this scope
OpenTiny_Rx:488: error: 'curStat' was not declared in this scope
OpenTiny_Rx:492: error: 'self_pack_time' was not declared in this scope
OpenTiny_Rx:492: error: 'TIME_TO_SEARCH' was not declared in this scope
OpenTiny_Rx:495: error: 'Pause_RSSI' was not declared in this scope
OpenTiny_Rx:496: error: 'N_pause' was not declared in this scope
OpenTiny_Rx:504: error: 'Rx_RSSI' was not declared in this scope
OpenTiny_Rx:505: error: 'N_RSSI' was not declared in this scope
OpenTiny_Rx:507: error: 'statLoop' was not declared in this scope
OpenTiny_Rx:514: error: 'failsafe_mode' was not declared in this scope
OpenTiny_Rx:514: error: 'Red_LED_ON' was not declared in this scope
OpenTiny_Rx:517: error: 'hopping_channel' was not declared in this scope
OpenTiny_Rx:521: error: 'hopping_channel' was not declared in this scope
OpenTiny_Rx:522: error: 'Hopping' was not declared in this scope
OpenTiny_Rx:523: error: 'curStat' was not declared in this scope
OpenTiny_Rx:524: error: 'lastPackBad' was not declared in this scope
OpenTiny_Rx:529: error: 'rl_counter' was not declared in this scope
OpenTiny_Rx:539: error: 'Pause_RSSI' was not declared in this scope
OpenTiny_Rx:547: error: 'failsafe_mode' was not declared in this scope
OpenTiny_Rx:548: error: 'statLoop' was not declared in this scope
OpenTiny_Rx:549: error: 'last_beacon_time' was not declared in this scope
OpenTiny_Rx:550: error: 'BeaconReg' was not declared in this scope
OpenTiny_Rx:551: error: 'beacon_flag' was not declared in this scope
OpenTiny_Rx:551: error: 'BEACON_INTERVAL' was not declared in this scope
OpenTiny_Rx:555: error: 'beacon_send' was not declared in this scope
Где каталог с исходниками размещать?
Содержимое папки D:\Documents\Arduino\OpenTiny_Rx
19.12.2013 10:42 <DIR> .
19.12.2013 10:42 <DIR> …
19.12.2013 10:42 18 011 Config.h
18.12.2013 11:47 9 203 eeprom.ino
18.12.2013 11:47 9 674 functions.ino
19.12.2013 09:41 <DIR> hex
18.12.2013 11:47 9 961 menu.ino
19.12.2013 10:42 55 090 OpenTiny_Rx.cpp.hex
18.12.2013 11:47 25 546 OpenTiny_Rx.ino
18.12.2013 11:47 1 509 README.md
18.12.2013 11:47 19 145 rfm22b.ino
18.12.2013 11:47 6 367 sbus.ino
18.12.2013 11:47 9 863 stat.ino
У меня вот так:
Содержимое папки C:\Program Files\Arduino\OpenTiny_RX
24.10.2014 14:50 <DIR> .
24.10.2014 14:50 <DIR> ..
24.10.2014 14:15 21 045 Config.h
16.10.2014 02:11 9 444 eeprom.ino
16.10.2014 02:11 11 402 functions.ino
24.10.2014 14:50 <DIR> hex
16.10.2014 02:11 10 331 menu.ino
16.10.2014 02:11 27 894 OpenTiny_Rx.ino
16.10.2014 02:11 2 054
16.10.2014 02:11 19 407 rfm22b.ino
16.10.2014 02:11 6 362 sbus.ino
16.10.2014 02:11 11 394 stat.ino
9 файлов 119 333 байт
3 папок 13 085 663 232 байт свободно
У меня вот так:
Переименуйте каталог в OpenTiny_R x.
Переименуйте каталог в OpenTiny_Rx.
тоже самое.
Содержимое папки C:\Program Files\Arduino
24.10.2014 15:47 <DIR> .
24.10.2014 15:47 <DIR> ..
16.09.2014 17:46 863 744 arduino.exe
16.09.2014 17:46 392 192 arduino_debug.exe
16.09.2014 17:46 969 728 cygiconv-2.dll
16.09.2014 17:46 1 872 821 cygwin1.dll
24.10.2014 13:57 <DIR> drivers
24.10.2014 13:57 <DIR> examples
24.10.2014 13:57 <DIR> hardware
24.10.2014 13:58 <DIR> java
24.10.2014 13:58 <DIR> lib
24.10.2014 13:58 <DIR> libraries
16.09.2014 17:46 43 520 libusb0.dll
24.10.2014 14:50 <DIR> OpenTiny_Rx
24.10.2014 13:58 <DIR> reference
16.09.2014 17:46 39 437 revisions.txt
16.09.2014 17:46 77 759 rxtxSerial.dll
24.10.2014 13:58 <DIR> tools
24.10.2014 13:59 411 322 uninstall.exe
8 файлов 4 670 523 байт
11 папок 13 091 008 512 байт свободно
Все, получилось. Открыл новым окном исходники, и все пошло. На скрине видна вкладка, видимо дефолтные пути там и искал.
Я открывал файл не там, открывал через Скетч=>Добавить файл. А надо конечно же через файл.
тоже самое.
А при открытии файла не предлагал создать каталог и туда файл переместить?
А при открытии файла не предлагал создать каталог и туда файл переместить?
Нет, не предлагал. Я постом выше отписался, все ок. Теперь ищу куда компилировался код.
Теперь ищу куда компилировался код.
Ищите *.hex в temp каталоге профиля пользователя.
посмотрите в каталоге %temp%
посмотрите в каталоге %temp%
Тут?
C:\WINDOWS\Temp
нема.
Ищите *.hex в temp каталоге профиля пользователя.
Тут?
C:\WINDOWS\Temp
нема.
Users\appdata\local\temp
Где-то там…
Можно еще проверить путь к временемй папке набрав в командной строке set
Где-то там…
Команда %temp% как раз и открывает папку ТМП заданную в системе. В ней ищите самую свежую папку “build???.tmp” (вместо ? будут цыфры) , там и будет ваш HEX.
Сейчас выбираю приемник\передатчик под эту прошивку. Правильно ли я понимаю, что по соотношению качество\возможности\цена сейчас лучше купить HawkEYE? Или Orange уже тоже на высоте?
И второй вопрос: какая прошивка на сегодняшний день предпочтительней: Baychi OpenLRS или OpenLRSngTX (Kha)?
Прошу помощи. Имеется HawkEYE работающий через ретранслятор frsky d8r-xp по CPPM нареканий нет, но возникла нехватка каналов. Имелся второй комплект Orange LRS Rx,Tx решил поставить его в качестве ретранслятора. Но включенный HawkEYE дает большие помехи на приемник Orange LRS что не дает нормально работать такой связке. Я понимаю что 2 комплекта на одной частоте но разве нельзя их как-то одновременно использовать?
Альтернатива для расширения каналов как я понимаю купить ретранслятор от Expert-а(Corona 2.4) или frsky X8R?
2 комплекта на одной частоте
А в ручную каналы не пробовали на разные концы частотного окошка разнести?
А в ручную каналы не пробовали на разные концы частотного окошка разнести?
Я пробовал сделать rebind при включенном HawkEYE. Постоянно выскакивала ошибка о большом эфирном шуме. После того как разнес приемник Orange и передатчик HawkEYE больше метра частоты подобрались - не помогло. Причем что интересно по началу может кое как работают а потом все хуже и хуже до полного failsafe.
Я пробовал сделать rebind
Не, я про то что бы руками выделить хоку частоты сверху, а оранджу снизу диапазона. Может у вас хок изначально свои частоты по всему диапазону размазал равномерно.
Ну не знаю, для начала выделить хоку в диапазоне от 200 до 255, а оранжу от 0 до 60. Дальше смотреть что это даст, если работать будет нормально, то можно будет попробовать хоку полосу пошире выделить.
я думаю проще сделать на X8R
у меня именно так