{"repo":"Carbon225/raspberry-sbus","free":true,"listed":false,"github":"https://github.com/Carbon225/raspberry-sbus","clone":"git clone https://github.com/Carbon225/raspberry-sbus.git","description":"Linux/Raspberry Pi SBUS driver","language":"C++","stars":52,"topics":["sbus-packet","raspberry-sbus","raspberry-pi","uart","linux","sbus","tty"],"license":"MIT","category":"analytics","readme_excerpt":"Raspberry Pi/Linux CRSF/SBUS Driver C++ CRSF/SBUS library working on the Raspberry Pi and possibly any linux system with a serial port. Supports both sending and receiving. Can be used for telemetry or RC control. You can use the built-in UART on the Pi or a USB-Serial adapter. For FTDI adapters use setLowLatencyMode(true) . Also, don't forget to use an inverter to invert the SBUS signal! Something like this works well. I use 10k resistors. CRSF does not need inversion. Features: - CRSF and SBUS support - Non-blocking and blocking modes - Send & Receive - Full CRSF support: - Telemetry and RC packets - Send and receive custom packets - Full SBUS support: - All channels from 1 - 16 - Binary channels 17 and 18 - Failsafe and frame lost bits - Automatic recovery from hardware failures like broken wiring - FTDI low latency support SBUS protocol specification and original decoding function: https://github.com/bolderflight/SBUS Getting started - Create an empty project folder - git clone https://github.com/Carbon225/raspberry-sbus inside your project folder - Create a CMakeLists.txt inside project folder - Create main.cpp and paste code from one of the examples - Your project should look like this: - Open your project in a CMake compatible IDE (CLion, VS, ...) - or build manually: - cmake -B build -S . - Create a CRSF crsf object - crsf.install(\"/path/to/tty\", blocking mode) to init the serial port - crsf.setLowLatencyMode(true) if you have an FTDI adapter Receive - Define packet c","default_branch":null,"files":null,"tree":[],"storefront":"/r/Carbon225","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Carbon225/raspberry-sbus/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}