How bolderflight/sbus works
Sbus is a small C++ library for exchanging SBUS receiver and servo data over a hardware serial port. The receive workflow configures serial, reads and parses a frame, then exposes decoded channels and status through SbusData; the transmit workflow accepts SbusData, encodes a frame, and writes it to the port. The implementation also selects baud rate and platform-specific inversion/serial settings. Examples illustrate use, but their source was not sampled, so their runtime calls are not mapped.
Main entry points: sbus.cpp Receive Runtime · sbus.h SBUS Data
Components 9
SBUS Receive
- Receiver API
src/sbus.h - Receive Runtime
src/sbus.cpp
SBUS Transmit
- Transmitter API
src/sbus.h - Transmit Runtime
src/sbus.cpp
Protocol Data
- SBUS Data
src/sbus.h
Other components
- SBUS Receiver
- Serial RX
- Serial TX
- SBUS Servos
Connections 9
- SBUS Receiver → Serial RX: sends frames
README.md - Serial RX → Receive Runtime: provides bytes
src/sbus.cpp - Receiver API → Receive Runtime: configures
src/sbus.cpp - Receive Runtime → SBUS Data: decodes into
src/sbus.cpp - Receiver API → SBUS Data: returns
src/sbus.h - SBUS Data → Transmitter API: sets data
src/sbus.h - Transmitter API → Transmit Runtime: configures
src/sbus.cpp - Transmit Runtime → Serial TX: writes frames
src/sbus.cpp - Serial TX → SBUS Servos: sends commands
README.md