Paparazzi UAS  v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
actuators_sbus.h File Reference

Sbus actuator driver, which can output as 7 sbus channels at ~11ms. More...

#include "std.h"
+ Include dependency graph for actuators_sbus.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ActuatorsSbus


#define ActuatorSbusSet(_i, _v)   { actuators_sbus.cmds[_i] = _v; }
#define ActuatorsSbusInit()   actuators_sbus_init()
#define ActuatorsSbusCommit()   actuators_sbus_set()


void actuators_sbus_init (void)
void actuators_sbus_set (void)


struct ActuatorsSbus actuators_sbus

Detailed Description

Sbus actuator driver, which can output as 7 sbus channels at ~11ms.

Channels min, average and maximum should be: min 0 neutral 1023 max 2047

Definition in file actuators_sbus.h.

Data Structure Documentation

struct ActuatorsSbus

Definition at line 36 of file actuators_sbus.h.

+ Collaboration diagram for ActuatorsSbus:
Data Fields
struct link_device * device

Macro Definition Documentation


Definition at line 33 of file actuators_sbus.h.

Referenced by actuators_sbus_send().

#define ActuatorSbusSet (   _i,
)    { actuators_sbus.cmds[_i] = _v; }

Definition at line 47 of file actuators_sbus.h.

#define ActuatorsSbusCommit ( )    actuators_sbus_set()

Definition at line 49 of file actuators_sbus.h.

#define ActuatorsSbusInit ( )    actuators_sbus_init()

Definition at line 48 of file actuators_sbus.h.

Function Documentation

void actuators_sbus_init ( void  )

Definition at line 51 of file actuators_sbus.c.

References actuators_sbus, B100000, ActuatorsSbus::device, uart_periph_set_baudrate(), uart_periph_set_bits_stop_parity(), UBITS_8, UPARITY_EVEN, and USTOP_2.

+ Here is the call graph for this function:

void actuators_sbus_set ( void  )

Definition at line 62 of file actuators_sbus.c.

References actuators_sbus, actuators_sbus_send(), and ActuatorsSbus::device.

+ Here is the call graph for this function:

Variable Documentation

struct ActuatorsSbus actuators_sbus

Definition at line 45 of file actuators_sbus.c.

Referenced by actuators_sbus_init(), actuators_sbus_send(), and actuators_sbus_set().