PX4 Firmware
PX4 Autopilot Software http://px4.io
linux_sbus.cpp File Reference
#include "linux_sbus.h"
#include <stdlib.h>
#include <string.h>
Include dependency graph for linux_sbus.cpp:

Go to the source code of this file.

Functions

int linux_sbus_main (int argc, char **argv)
 

Function Documentation

◆ linux_sbus_main()

int linux_sbus_main ( int  argc,
char **  argv 
)

ttyS1 for default, it can be changed through -d parameter

8 channel for default setting, it can be changed through -c parameter

Parse command line and get device and channels count from consolex

Channels count can't be higher than 16;

Check if alloc worked.

Wait for task to die

Definition at line 249 of file linux_sbus.cpp.

References command, linux_sbus::RcInput::isRunning(), linux_sbus::rc_input, linux_sbus::RcInput::RcInput(), linux_sbus::RcInput::start(), linux_sbus::RcInput::stop(), and linux_sbus::usage().

Here is the call graph for this function: