Firmware
Macros | Functions | Variables
controls.c File Reference

R/C inputs and servo outputs. More...

#include <px4_config.h>
#include <stdbool.h>
#include <drivers/drv_hrt.h>
#include <drivers/drv_rc_input.h>
#include <perf/perf_counter.h>
#include <systemlib/ppm_decode.h>
#include <rc/st24.h>
#include <rc/sumd.h>
#include <rc/sbus.h>
#include <rc/dsm.h>
#include "px4io.h"

Macros

#define RC_CHANNEL_HIGH_THRESH   5000 /* 75% threshold */
 
#define RC_CHANNEL_LOW_THRESH   -8000 /* 10% threshold */
 

Functions

void controls_init (void)
 R/C receiver handling. More...
 
void controls_tick ()
 

Variables

int _sbus_fd = -1
 

Detailed Description

R/C inputs and servo outputs.

Author
Lorenz Meier loren.nosp@m.z@px.nosp@m.4.io

Function Documentation

§ controls_init()

void controls_init ( void  )

R/C receiver handling.

Input functions return true when they receive an update from the RC controller.