Advertisement
Guest User

Untitled

a guest
Sep 14th, 2020
1,384
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 24.33 KB | None | 0 0
  1. #!/bin/bash
  2. #
  3. # ======================================================================================
  4. # <BASIC RF/VIDEO LINK CONFIGURATION>
  5. # ======================================================================================
  6.  
  7. # >>>>>>>>>>[FREQUENCY FOR OPEN.HD]-- in MHz (See full Frequency List Below)
  8. # By default the frequency will be chosen automatically for the hardware you have connected to your ground/air pi,
  9. # but if you want to set a frequency manually, make sure it is supported by your hardware. Atheros cards are 2.4Ghz only
  10. # and Realtek 8812/14 cards are only stable on 5.8Ghz. Frequencies are listed at the bottom of this file
  11. FREQ=auto
  12.  
  13. # >>>>>>>>>>[DATARATE] Lower settings yield higher range and vice versa.
  14. # Below are the datarate settings for Legacy B/G and MCS "N" modes.
  15. DATARATE=4
  16.  
  17. # 1 - 5.5 = 802.11b 1 - 6.5 = MCS 0
  18. # 2 - 11 = 802.11b 2 - 13 = MCS 1
  19. # 3 - 12 = 802.11g 3 - 13 = MCS 1
  20. # 4 - 19.5 = 802.11n 4 - 19.5 = MCS 2
  21. # 5 - 24 = 802.11g 5 - 26 = MCS 3
  22. # 6 - 36 = 802.11g 6 - 39 = MCS 4
  23.  
  24. # # >>>>>>>>>>[MCS ; Space Time Block Coding ; Low Density Parity Check]
  25. # Only tested MCS+STBC+LDPC with RTL8812AU cards. MCS=Y only should work with Atheros cards when STBC/LDPC=N
  26. UseMCS=N
  27. UseSTBC=N
  28. UseLDPC=N
  29.  
  30. # # >>>>>>>>>>[IP/USB CAMERA SECONDARY DATA RATES]
  31. # Applied only to 8812AU with 2nd IP/USB cam, all other setups, ignore! Ath9k will ignore secondary camera datarate and use DATARATE=
  32. # 0=6.5Mbit (BPSK 1\2), 1=13Mbit (QPSK 1\2)
  33. # 2= 19.5MBit (QPSK 3/4), 3=26Mbit (16-QAM 1\2)
  34. DATARATE_SECONDARY_8812AU=2
  35.  
  36. # >>>>>>>>>>[TXPOWER-AIR/GROUND]-- For Atheros AR9271 or RTL8812/14AU Cards ONLY
  37. TxPowerAir=58
  38. TxPowerGround=58
  39.  
  40. # >>>>>>>>>>[TXPOWER-RALINK]-- (Not confirmed Working]
  41. TXPOWER=2000
  42.  
  43. # >>>>>>>>>>[FEC (FORWARD ERROR CORRECTION)]-- (8/4/1024 default)
  44. # *For higher bitrate and range, you can reduce FEC to "2" for example by setting (10/2/1024)
  45. # max. blocklength Ralink = 2278, Atheros = 1550
  46. # min. sensible blocklength ~ 700
  47. VIDEO_BLOCKS=8
  48. VIDEO_FECS=4
  49. VIDEO_BLOCKLENGTH=1024
  50.  
  51. #Secondary camera (IP\USB)
  52. VIDEO_BLOCKS_SECONDARY=8
  53. VIDEO_FECS_SECONDARY=4
  54.  
  55. # >>>>>>>>>>[DEBUGGING OR SSH]--
  56. # Set this to "Y" to enable collection of extra debug logs or to allow SSH. If you experience anyways
  57. # issues. "Y" also turns on the display for the airpi
  58. DEBUG=Y
  59.  
  60. # >>>>>>>>>>[DISABLE SCREEN MESSAGES]--
  61. # Set this to "Y" to disable text messages about Display and Wifi card setup etc.
  62. QUIET=N
  63.  
  64. # >>>>>>>>>>[SCREENSHOTS]--
  65. # Set to "Y" to enable periodic screenshots every 10 seconds
  66. ENABLE_SCREENSHOTS=N
  67.  
  68. # >>>>>>>>>>[DISABLE OSD]--
  69. # Set to "Y" to enable ground OSD. set "N" to only display video.
  70. DISPLAY_OSD=Y
  71.  
  72. # set to "Y" to use the QOpenHD app instead of the original OSD
  73. ENABLE_QOPENHD=N
  74.  
  75.  
  76. # >>>>>>>>>>[5/10/20Mhz BANDWIDTH SETTINGS]--Default 20mhz
  77. # !!!!!!! ATHEROS CARDS ONLY !!!!!!!!!!!!!!!!!!!!!
  78. # Users can choose between 20mhz, 10mhz or 5mhz bandwidth at the expense of 1/4 or 1/2 of total available
  79. # Datarate/Bitrate. Range can be increased significantly with 5/10mhz "Narrowband".
  80. # ***Default @ 20mhz compatible with all Wireless cards. 5/10mhz Bandwidth options will result in
  81. # Bandwidth:5, 10 or 20.
  82. Bandwidth=20
  83.  
  84.  
  85. # ======================================================================================
  86. # <VIDEO/CAMERA CONFIGURATION>
  87. # ======================================================================================
  88.  
  89. # >>>>>>>>>>[VIDEO BITRATE]-- "auto" recommended
  90. # Air Pi reads available bandwidth to determine bitrate.
  91. #
  92. # Set to a fixed value to disable automatic measuring
  93. #
  94. # Note: the unit for this setting is megabits, not kilobits or bits!
  95. # For 4.5mbit, set to 4.5
  96. VIDEO_BITRATE=auto
  97.  
  98. # >>>>>>>>>>[BITRATE PERCENTAGE]-- "65 default"
  99. # Depending on channel utilization by other wifi networks you may need to set
  100. # this to a lower value like 60% to avoid a delayed video stream.
  101. # On free channels you may set this to a higher value like 75% to get a higher
  102. # bitrate and thus image quality.
  103. BITRATE_PERCENT=60
  104.  
  105. # >>>>>>>>>>[CAMERA RESOLUTION]--
  106. # V1 cam: 1280x720: 30fps, 48fps. 1920x1080: 30fps
  107. # V2 cam: 1280x720: 30fps, 48fps, 59.9fps. 1640x922: 30fps, 40fps. 1920x1080: 30fps
  108. WIDTH=1280
  109. HEIGHT=720
  110.  
  111. # >>>>>>>>>>[CAMERA FPS]--"48 default"
  112. # Choose between 30, 40, 48, 59.9, values above 60 are experimental
  113. FPS=30
  114.  
  115. # >>>>>>>>>>[KEYFRAME RATE]--
  116. # ***This is how often a "fresh-new" video frame is transmitted***
  117. # Lower values mean faster glitch-recovery, but also lower video quality.
  118. # With fps=48 and keyframerate=5, glitches will stay visible for around 100ms in worst case.
  119. # You can set this higher or lower according to your needs. Minimum value is 2.
  120. KEYFRAMERATE=10
  121. #
  122. # >>>>>>>>>>[RASPIVID CAMERA SETTINGS]--
  123. # There are dozens of paramaters, see the RPI forum for all settings.
  124. EXTRAPARAMS="-cd H264 -n -fl -ih -pf high -if both -ex sports -mm average -awb horizon"
  125. # UNCOMMENT, AND USE THESE CAMERA SETTINGS FOR THE B101 OR SIMILAR HDMI-CSI ADAPTER
  126. #EXTRAPARAMS="-cd H264 -n -fl -ih -pf high -if both"
  127.  
  128. # >>>>>>>>>>[SAVE VIDEO-RAMdisk/Memory]--Set to "memory" to use RAMdisk for temporary video/screenshot/telemetry
  129. # storage recording time to ~12-14 minutes, but is the safe way. If you need longer recording times, use "sdcard", to
  130. # use the sdcard as the temporary video storage. Keep in mind though, that this might introduce video stutter and/or bad blocks.
  131. # you can also disable recording entirely by setting VIDEO_TMP=none
  132. VIDEO_TMP=memory
  133.  
  134. # >>>>>>>>>>[Use openhdvid instead of raspivid]
  135. # Raspivid is the default and stable option, openhdvid is a new replacement for it that will allow live camera
  136. # parameter changes and other enhancements. It is not well tested yet.
  137. ENABLE_OPENHDVID=N
  138.  
  139.  
  140. # >>>>>>>>>>[Use new raspberry pi camera AWB algorithm]
  141. # Buster only (strech doesn't have new enough firmware for it)
  142. # This option is here because the new AWB algorithm can cause color tint in certain cases, we're
  143. # disabling it to use the old one by default. The advantage of the newer one is it doesn't shift as
  144. # rapidly when the scene changes.
  145. ENABLE_NEW_PI_AWB=N
  146.  
  147. # ======================================================================================
  148. # <GROUND STATION/PC/PHONE/TABLET INTERFACE CONFIG>
  149. # ======================================================================================
  150.  
  151. # >>>>>>>>>>[HOTSPOT SOURCE]-- **THE EXTERNAL HOTSPOT IS CURRENTLY BROKEN, DON'T USE**
  152. # Set "internal" or MAC address of EXTERNAL wifi card
  153. WIFI_HOTSPOT_NIC=internal
  154.  
  155. # >>>>>>>>>>[HOTSPOT MODE]-- Default SSID is "Openhd" Password "wifiopenhd"
  156. # ***USE WITH QGC-PHONE, OPENHD APP, MISSION PLANNER OR HID/RC APP***
  157. # Set "auto" (default) with Pi3b+ as GroundPi (it has 2.4/5ghz internal hotspot) OR Pi3b/2b video is 5.8ghz
  158. # and internal hotspot is 2.4ghz. For 2.4ghz hotspot and 2.4ghz video must be manually set at your own risk!
  159. # Set "Y" to enable Hotspot and you (manually) set the band & ch below.
  160. # Set to "N" for no wifi hotspot (Recommended If NOT using Pi3b+ & 2.4ghz for video as it could # interfere.
  161. WIFI_HOTSPOT=auto
  162.  
  163. # >>>>>>>>>>[HOTSPOT BAND/CHANNEL_MANUAL CONFIG]
  164. # NOTE with WIFI_HOTSPOT=auto your setting here will be over written.
  165. # Set to "g" for 2.4ghz , "a" for 5.8ghz,
  166. # Channels 1-11 for 2.4Ghz,
  167. # Channels 36,40,44,48,52,56,60,64 for 5Ghz
  168. HOTSPOT_BAND=a
  169. HOTSPOT_CHANNEL=36
  170. # Set to number of seconds you wany hotspot to shutdown. Default is "0", run forever
  171. HOTSPOT_TIMEOUT=0
  172. # hotspot transmit power in units of mBm, so 100 corresponds to 1dBm
  173. # to set full power, use HOTSPOT_TXPOWER=3100
  174. HOTSPOT_TXPOWER=3100
  175.  
  176. # >>>>>>>>>>[ETHERNET HOTSPOT]--*Only used for PC/Mission Planner Ethernet connection
  177. # Set this to "Y" to enable Ethernet hotspot. This will forward the received video and
  178. # telemetry to another PC.
  179. ETHERNET_HOTSPOT=N
  180.  
  181. # >>>>>>>>>>[FORWARD RTP/RAW h.264 VIDEO TO PC/PHONE]
  182. # Set this to "raw" to forward a raw h264 stream to 2nd display devices (for QGC/FPV_VR app)
  183. # Set to "rtp" to forward RTP h264 stream
  184. FORWARD_STREAM=rtp
  185.  
  186. # >>>>>>>>>>[UDP PORT SETUP]--
  187. # UDP port to send video stream to, set to 5000 for FPV_VR app or 5600 for Mission Planner/QGC
  188. VIDEO_UDP_PORT=5600
  189. # *EXPERIMENTAL* Secondary IP/USB Camera UDP Port (DON'T CHANGE)
  190. VIDEO_UDP_PORT2=5601
  191.  
  192.  
  193.  
  194.  
  195. # ======================================================================================
  196. # <TELEMETRY/USB RC CONFIGURATION>
  197. # ======================================================================================
  198.  
  199. # >>>>>>>>>>[CTS PROTECTION]--Use in areas with other wifi networks or Interference
  200. # Set "Y" in conjunction with ATHEROS "Range" RC
  201. # Set "auto" for automatic detection.
  202. # Set "N" to disable.
  203. CTS_PROTECTION=N
  204.  
  205. # >>>>>>>>>>[USB RC RANGE OR ENCRYPTION]--
  206. # For Atheros AND RTL8812AU Cards use "Range".
  207. # For any other cards use "Encryption" + CTS=N (NOT TESTED VERY MUCH)
  208. # ***"Range" Uses the original EZ-wifibroadcast "joystick" code. This setting should provide better range.
  209.  
  210. # ***"Encryption" Is a more secure means of RC uplink and works with any wifi cards but may
  211. # Result in higher packet loss at longer ranges.
  212. EncryptionOrRange=Range
  213.  
  214. # >>>>>>>>>>[RC JOYSTICK MODE OVER OPEN.HD SETTINGS]
  215. # Set this to "mavlink" to enable R/C over Open.HD using mavlink protocol or "msp" for MSP
  216. # protocol.
  217. # Set to "sumd" for Graupner SUMD, "ibus" for Flysky IBUS, "srxl" for Multiplex SRXL/XBUS
  218. # Mode B. Set to "disabled" to disable
  219. # **See joyconfig.txt for other settings, default settings work for Taranis in USB.
  220. RC=mavlink
  221.  
  222. # >>>>>>>>>>[DEDICATED WIFI-CARD UPLINK/RC MAC ADDR.]-- If different types of Ground wifi cards are used.
  223. # Set this if you have 1 High-Power ground card plus 1 or more lower power cards so that
  224. # all uplink is sent using the high-power card. Otherwise, leave "0" and RC/Uplink will
  225. # be automatically selected based on RSSI signal.
  226. # ***Also Set for Bandwidth Switcher Function (Below)***
  227. #Ground RX card Primary
  228. PrimaryCardMAC=0
  229.  
  230. # >>>>>>>>>>[TELEMETRY WBC/OTHER]--
  231. # wbc = use wifibroadcast as telemetry up/downlink
  232. # external = use external means as telemetry up/downlink (LRS or 3DR dongles)
  233. # if set to external, set serialport to which LRS or 3DR dongle is connected
  234. # both on ground and air pi
  235. TELEMETRY_TRANSMISSION=external
  236.  
  237. # >>>>>>>>>>[TELEMETRY UPLINK]--
  238. # Set to "disabled" or "mavlink" for Mavlink (QGC, Missionplanner, etc.)
  239. TELEMETRY_UPLINK=mavlink
  240.  
  241. # >>>>>>>>>>[USB OPENHD-RC SERIAL PORT/BAUDRATE]--Serial Port Settings between Air Pi & Flight Controller.
  242. # Serial port and baudrate (19200 is minimum)
  243. # Set this to "/dev/serial0" for Pi onboard UART serial port or "/dev/ttyUSB0" for FTDI adapter.
  244. FC_RC_SERIALPORT=/dev/ttyUSB0
  245. FC_RC_BAUDRATE=57600
  246.  
  247. # >>>>>>>>>>[OPENHD-FC SERIAL PORT/BAUDRATE]-- Air Pi and Flight Controller
  248. # *Should be the same as FC_RC_BAUDRATE
  249. FC_TELEMETRY_SERIALPORT=/dev/ttyUSB0
  250. FC_TELEMETRY_BAUDRATE=57600
  251.  
  252. # >>>>>>>>>>[EXTERNAL DEVICE SERIAL PORT BAUDRATE]--Serial port settings if using TELEMETRY_TRANSMISSION=external
  253. EXTERNAL_TELEMETRY_SERIALPORT_GROUND=/dev/ttyUSB0
  254. EXTERNAL_TELEMETRY_SERIALPORT_GROUND_BAUDRATE=57600
  255.  
  256. # >>>>>>>>>>[GROUND SERIAL PORT OUT ENABLE?]--Set to "Y" to enable output of telemetry to serialport on ground Pi
  257. # (for antenna tracker etc.)
  258. ENABLE_SERIAL_TELEMETRY_OUTPUT=N
  259.  
  260. # >>>>>>>>>>[GROUND SERIAL PORT/BAUDRATE OUT]--
  261. # Used for ground Pi telemetry output if TELEMETRY_OUTPUT=Y
  262. TELEMETRY_OUTPUT_SERIALPORT_GROUND=/dev/serial0
  263. TELEMETRY_OUTPUT_SERIALPORT_GROUND_BAUDRATE=57600
  264.  
  265.  
  266. # ======================================================================================
  267. # <ADVANCED/ADDITIONAL HARDWARE SETTINGS>
  268. # ======================================================================================
  269.  
  270. # >>>>>>>>>>[ARDUCAM V2.0 OR V2.1 MULTI-CAMERA ADAPTER]--
  271. # This Camera Switcher feature must be used with the Arducam 4 camera Raspberry Pi multiplexer.
  272. # If no camera switcher is detected, feature is automatically disabled. if used, simply assign
  273. # desired RC Channel and pwm values for each camera. Default settings are for 2 Cams A&B.
  274. IsCamera1Enabled=1
  275. IsCamera2Enabled=1
  276. IsCamera3Enabled=1
  277. IsCamera4Enabled=0
  278. #
  279. DefaultCameraId=1
  280. ChannelToListen=16
  281. #
  282. Camera1ValueMin=700
  283. Camera1ValueMax=1400
  284. #
  285. Camera2ValueMin=1450
  286. Camera2ValueMax=2100
  287. #
  288. Camera3ValueMin=2150
  289. Camera3ValueMax=2200
  290. #
  291. Camera4ValueMin=2250
  292. Camera4ValueMax=2500
  293.  
  294. # >>>>>>>>>>[AUDIO OVER OPENHD-USB-MICROPHONE]--
  295. # Aability to transmit audio with Linux USB-Microphone and output over analog, HDMI or set to auto.
  296. # *USE ONLY WITH PI2 or PI3/3b+ Air.
  297. # 0 Auto, 1 Analog, 2 HDMI
  298. DefaultAudioOut=0
  299. # Audio Enabled? "0"= Off "1"=ON
  300. IsAudioTransferEnabled=0
  301. # Audio Mic/Speaker Gains
  302. MicBoost=75
  303. SpeakersLevel=75
  304.  
  305. # >>>>>>>>>>[VEYE-IMX290 CAMERA MODULE & SETTINGS]--
  306. EXTRAPARAMS_IMX290="-cd H264 -n -fl -ih -pf high -if both"
  307. IMX290_videoformat=PAL
  308. IMX290_wdrmode=0x03
  309. IMX290_mirrormode=0x00
  310. IMX290_denoise=0x00
  311. IMX290_lowlight=0x00
  312.  
  313. # Used to flip/mirror the IMX307 camera, separate setting from IMX290 because they don't handle it the same way
  314. # 0: normal, 1: flip, 2: mirror, 3: flip+mirror.
  315. # Note that the IMX307 configuration system seems to expect numbers like 0, not 0x00 like imx290 mirrormode
  316. IMX307_imagedir=0
  317.  
  318. # ======================================================================================
  319. # <DEVELOPER-ENHANCEMENTS IN PROGRESS OPTIONS>
  320. # ======================================================================================
  321.  
  322. # >>>>>>>>>>[MIRROR DSI AND HDMI DISPLAY]--See wiki for how-to
  323. MirrorDSI_To_HDMI=N
  324.  
  325. # >>>>>>>>>>[MSP TELEMETRY STUFF]--not supported yet, do not change
  326. FC_MSP_SERIALPORT=/dev/ttyUSB0
  327. FC_MSP_BAUDRATE=115200
  328.  
  329. # >>>>>>>>>>[ADJUST UPLINK DATARATE]--
  330. # *11Mbps is the default 802.11 data rate, lower rates do not appear to improve any range/quality because
  331. # the "packet size" of the RC/Uplink data is so small to begin with that 1, 5.5, 6 Mbps makes no difference.
  332. UplinkSpeed=11
  333.  
  334. # >>>>>>>>>>[FEATURE BANDWIDTH SWITCHER] Allows users to remotely switch between 5/10/20 mhz bandwidth. simply assign RC
  335. # Channel and pwm values for each setting (>2 selectable settings must be used on Axis RC channels 1-8)
  336. # **ONLY TESTED ON THE GROUND SO FAR. IN ORDER FOR THE BANDWIDTH TO SWITCH, THERE MUST BE A GOOD LINK BETWEEN ALL AIR AND GROUND WIFI CARDS.
  337. # **RC bandwidth switcher is only tested with pi2/3 air. if using RPI zero it is recommended to disable the switcher and instead set a
  338. # fixed desired bandwidth prior to flight.
  339. # **YOU MUST ALSO DEFINE THE MAC ADDRESSES OF YOUR GROUND ath9k Atheros cards for use with the RC bandwidth Switcher.
  340. # MAKE SURE THAT YOUR MOST POWERFUL GROUND RECEIVER CARD MAC ADDRESS IS SET AS THE "PRIMARY RX/TX".
  341. # IsBandSwicherEnabled "0"=disabled "1"= enabled
  342. # *Must have "Master-Mac address set above".
  343. IsBandSwicherEnabled=0
  344. ChannelToListen2=8
  345. Band5Below=1200
  346. Band10ValueMin=1200
  347. Band10ValueMax=1650
  348. Band20After=1650
  349.  
  350. # >>>>>>>>>>[RELAY OPEN.HD}--
  351. # DO NOT USE. BROKEN.
  352. # Set this to "Y" to enable Open.HD relay mode. Will forward the received video and teleme stream.
  353. # to another Open.HD RX.
  354. RELAY=N
  355. RELAY_NIC=112233445566
  356. RELAY_FREQ=5220
  357.  
  358. # >>>>>>>>>>[CHANGE TMP VIDEO PARTITION TYPE]--
  359. # VIDEO_FS set to "ext4" (Linux, which is recommended for performance) or "fat" (Windows)
  360. VIDEO_FS=ext4
  361.  
  362. # >>>>>>>>>>[CHANGE TMP VIDEO PARTITION TYPE]--
  363. # VIDEO_SAVE_FORMAT sets the container used when saving video to a USB stick on the ground station.
  364. # You can choose any format that ffmpeg can handle, the default is still avi but mp4 is broadly compatible
  365. # with most devices now as well. The default may change soon.
  366. VIDEO_SAVE_FORMAT=mp4
  367.  
  368. # >>>>>>>>>>[AIRODUMP Y/N]--Set to "Y" to scan for wifi networks with airodump-ng before starting RX
  369. AIRODUMP=N
  370. # Number of seconds wifi scanner is shown. Minimum recommended scanning time is 25 seconds.
  371. AIRODUMP_SECONDS=25
  372.  
  373. # >>>>>>>>>>[FEATURE: 2-WAY COMM APP]-- For Air/Ground settings with Open.HD APP.
  374. # This enables or disables two-way communication between the open HD app and air/ground units.
  375. # **Setting "2" disables AirPi remote settings (not needed anyways),
  376. # Primary benefit is to keep RPI zero CPU Usage down to a minimum with Atheros. Setting "1" Is helpful for quickly changing/testing
  377. # settings on Air Side by immediately applying changes for comparison without the need for SmartSync.
  378. #Values "2"=Enables Ground Only, then uploads changes to air during SSync Boot (default) ; "1"=EnableAir/Ground Immediately save air changes through app...(Not recommended for regular usage)
  379. RemoteSettingsEnabled=2
  380.  
  381. # >>>>>>>>>>[SmartSync Settings]--**SmartSync_StartupMode="0" means air/ground will boot quickly but can trigger SmartSync with CH2 movement or GPIO# 26 Cross Connected.
  382. SmartSync_StartupMode=0
  383. # RC Channel should default to middle (1500pwm position) to work properly
  384. SmartSyncRC_Channel=2
  385. # DO NOT CHANGE THE BELOW SMARTSYNC SETTINGS!
  386. SmartSyncGround_Countdown=50
  387. SmartSyncOFF_RC_Value=1700
  388. SmartSyncStayON_RC_Value=1300
  389. SmartSyncControlVia=joystick
  390. # We strongly suggest leaving this on auto, but any frequency from the list at the bottom of this file will work.
  391. # If you change this it MUST be a frequency that works on your wifi cards, and it MUST match on the ground and air
  392. # side or smartsync itself will not work
  393. SmartSync_Frequency=auto
  394.  
  395.  
  396. # ======================================================================================
  397. # <DEVELOPER-ENHANCEMENTS IN PROGRESS OPTIONS>
  398. # ======================================================================================
  399.  
  400. # >>>>>>>>>>[SECONDARY IP/USB CAMERA SETTINGS]--
  401. # Values: No, IP, USB
  402. SecondaryCamera=No
  403.  
  404. # >>>>>>>>>>[SECONDARY PIP CAMERA SWITCHER RC CHANNEL]--
  405. # IP or USB secondary camera. To use "IsBandSwicherEnabled=1" must be enabled
  406. # RC channel to switch 3 different modes: (#Camera1ValueMin .. Camera3ValueMax - used )
  407. # Mode 1: LCD(HDMI) + android phone - RPi CSI camera
  408. # Mode 2: LCD(HDMI) - RPi CSI camera, android phone - IP or USB camera. Bitrate = bitrate / 2 (20MHz) ,4(10Mhz) ,8(5Mhz). IPCameraLowRes is used
  409. # Mode 3: Adroid phone only - IP or USB camera. IPCameraHiRes (20MHz) , or auto bitrate = initial-bitrate=\$1 USBCamera. (20MHz, 10Mhz /2, 5Mhz /4).
  410. # (To use fixed: initial-bitrate=200000)
  411. # Note: if set to 1-8, this will use one of the 8 RC axis from your transmitter. If set to 9-24, it will
  412. # use 2 consecutive buttons on the transmitter as a sort of fake 3-way switch.
  413. ChannelIPCamera=7
  414.  
  415. # >>>>>>>>>>[OPTIONAL FLIR-USB CAMERA DRIVER SETUP]--
  416. # Values: Y N
  417. LoadFlirDriver=N
  418.  
  419. # >>>>>>>>>>[OPTIONAL SEEK-USB CAMERA DRIVER SETUP]--
  420. # Values: Y N
  421. LoadSeekDriver=N
  422. # You should change this in USBCamera as well if you need to change it at all
  423. SeekFramerate=7
  424. # This affects the colorization used for the thermal range, experiement to find the one you like
  425. SeekColormap=0
  426. SeekRotate=270
  427. # Can also be seekpro
  428. SeekModel=seek
  429.  
  430. # >>>>>>>>>>[IP/USB CAMERA PIPELINE OPTIONS]--*Uncomment corresponding per ip/usb camera type
  431. #USBCamera="gst-launch-1.0 uvch264src device=/dev/video0 initial-bitrate=\$1 average-bitrate=\$1 iframe-period=1000 name=src auto-start=true src.vidsrc ! queue ! video/x-h264,width=1280,height=720,framerate=30/1 ! h264parse ! rtph264pay ! udpsink host=127.0.0.1 port=5600"
  432.  
  433. #IPCameraHiRes="gst-launch-1.0 rtspsrc location=\"rtsp://192.168.0.10:554/user=admin&password=&channel=1&stream=0.sdp\" latency=0 ! udpsink port=5600 host=127.0.0.1"
  434. #IPCameraLowRes="gst-launch-1.0 rtspsrc location=\"rtsp://192.168.0.10:554/user=admin&password=&channel=1&stream=1.sdp\" latency=0 ! udpsink port=5600 host=127.0.0.1"
  435.  
  436. # >>>>>>>>>>[FLIR CAMERA PIPELINE OPTIONS]--
  437. #FLIR HD (visible image) - 640 x 480 @ 9fps:
  438. #USBCamera="gst-launch-1.0 v4l2src device=/dev/video2 ! video/x-raw,width=640,height=480,framerate=30/1 ! omxh264enc control-rate=1 target-bitrate=600000 interval-intraframes=1 periodicty-idr=1 ! h264parse config-interval=3 ! rtph264pay ! udpsink host=127.0.0.1 port=5600"
  439.  
  440. #FLIR Thermal - 160 x 128 @ 9fps:
  441. #USBCamera="gst-launch-1.0 v4l2src device=/dev/video3 ! video/x-raw,width=160,height=128,framerate=30/1 ! omxh264enc control-rate=1 target-bitrate=600000 interval-intraframes=1 periodicty-idr=1 ! h264parse config-interval=3 ! rtph264pay ! udpsink host=127.0.0.1 port=5600"
  442.  
  443. #Seek Thermal - 206 x 156 @ 7fps:
  444. #USBCamera="gst-launch-1.0 v4l2src device=/dev/video4 ! video/x-raw,width=206,height=156,framerate=7/1 ! omxh264enc control-rate=1 target-bitrate=600000 interval-intraframes=1 periodicty-idr=1 ! h264parse config-interval=3 ! rtph264pay ! udpsink host=127.0.0.1 port=5600"
  445.  
  446. #Seek Thermal Pro - 320 x 240 @ 15fps:
  447. #USBCamera="gst-launch-1.0 v4l2src device=/dev/video4 ! video/x-raw,width=320,height=240,framerate=15/1 ! omxh264enc control-rate=1 target-bitrate=600000 interval-intraframes=1 periodicty-idr=1 ! h264parse config-interval=3 ! rtph264pay ! udpsink host=127.0.0.1 port=5600"
  448.  
  449.  
  450. #gstreamer videotestsrc:
  451. #USBCamera="gst-launch-1.0 videotestsrc ! video/x-raw,width=160,height=120,framerate=30/1 ! omxh264enc control-rate=1 target-bitrate=600000 interval-intraframes=1 periodicty-idr=1 ! h264parse config-interval=3 ! rtph264pay ! udpsink host=127.0.0.1 port=5600"
  452.  
  453.  
  454. # >>>>>>>>>>[Adjust channel value using other channel.]--
  455. # That function let make 2 way toggle switch be 3 way switch using other 2 way toggle switch. May be used with IP\USB camera switch, etc...
  456. # Values: 1-8
  457. # In case if channel 0 is selected function disabled.
  458. TrimChannel=0
  459. # Action: 1 - add PWM to channel. 0 - extract PWM from channel
  460. Action=1
  461. # PWM value to add\extract: 1-900
  462. PWMCount=202
  463. # To trigger function PWM value must be above 1850. To return back lower 1700
  464. ActivateChannel=0
  465.  
  466. # >>>>>>>>>>[LORA RADIO]--Under Development
  467. # Values "0" or "1"
  468. Lora=0
  469.  
  470. # >>>>>>>>>>[LTE]--Under Development
  471. # Enable LTE. Y or N
  472. LTE=N
  473. # Zerotier network ID
  474. ZT_NETWORK=1d71939404c3d2fd
  475. # IP address of client (Zerotier managed IP on viewing device)
  476. ZT_IP=172.26.128.187
  477.  
  478. # >>>>>>>>>>[Adjust LCD screen backlight using touchscreen]--
  479. AdjustLCDBacklight=Y
  480. # Time in seconds
  481. AutoDimTime=30
  482. # Values from 0 to 255, where 0 - off or 0%, 255 - or or 100%
  483. AutoDimValue=255
  484.  
  485.  
  486. # >>>>>>>>>> [TTY CONSOLE]-- View Output of GroundPi Consoles and Scripts
  487. # set to "13" for a blank screen
  488. TTY_CONSOLE=13
  489.  
  490. # Used to override the 802.11 frame type that will be used for telemetry, for testing purposes
  491. FORCE_REALTEK_TELEMETRY_DATA_FRAME=N
  492.  
  493. # ======================================================================================
  494. # FREQUENCY LIST AND OTHER Settings
  495. # ======================================================================================
  496.  
  497. # [FREQUENCY AND ALTERNATIVE MULTI-CARD TRANSMISSION CONFIGURATION]
  498. # Set to "Y" on the RX for auto-scanning. Frequency still has to be set on TX!
  499. # Feature might be buggy or not work at all!
  500. FREQSCAN=N
  501.  
  502. # [FREQUENCY LIST]
  503. # {2.3-2.7Ghz}
  504. # 2412, 2417, 2422, 2427, 2432, 2437, 2442, 2447, 2452, 2457, 2462, 2467, 2472, 2484 (Ralink and Atheros)
  505. # 2312, 2317, 2322, 2327, 2332, 2337, 2342, 2347, 2352, 2357, 2362, 2367, 2372, 2377, 2382, 2387, 2392, 2397, 2402, 2407 (Atheros only)
  506. # 2477, 2482, 2487, 2489, 2492, 2494, 2497, 2499, 2512, 2532, 2572, 2592, 2612, 2632, 2652, 2672, 2692, 2712 (Atheros only)
  507. #
  508. # {5Ghz)
  509. # 5180, 5200, 5220, 5240
  510. # 5260, 5280, 5300, 5320, 5500, 5520, 5540, 5560, 5580, 5600, 5620, 5640, 5660, 5680, 5700 *(DFS RADAR CHANNELS--MAY CAUSE PROBLEMS, RECOMMEND TO AVOID THESE).
  511. # 5745, 5765, 5785, 5805, 5825
  512. #
  513. # ***(2.3Ghz and 2.5-2.7Ghz band only works with Atheros cards. Check your local regulations before transmitting)!
  514. # Frequencies higher than 2512MHz work with Atheros, but with a lot lower transmit power and sensitivity and
  515. # thus greatly reduced range. Only useable for short-range applications!
  516. #
  517. # Set this to "single" for single TX wifi card, for dual TX wifi cards set "dual".
  518. # MAC addresses and frequency for the RX and TX wifi need to be set here when dual TX mode is enabled.
  519. #
  520. TXMODE=single
  521. #
  522. MAC_RX[0]=00c0ca91ee30
  523. FREQ_RX[0]=2484
  524. #
  525. MAC_RX[1]=24050f953384
  526. FREQ_RX[1]=2484
  527. #
  528. MAC_RX[2]=24050f953378
  529. FREQ_RX[2]=2484
  530. #
  531. MAC_RX[3]=24050f953373
  532. FREQ_RX[3]=2484
  533. #
  534. #
  535. MAC_TX[0]=24050f953378
  536. FREQ_TX[0]=5745
  537. #
  538. MAC_TX[1]=ec086b1c7834
  539. FREQ_TX[1]=2472
  540.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement