Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
actuators_sbus.h File Reference
#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
 

Macros

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

Functions

void actuators_sbus_init (void)
 
void actuators_sbus_set (void)
 

Variables

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

◆ ActuatorsSbus

struct ActuatorsSbus

Definition at line 36 of file actuators_sbus.h.

+ Collaboration diagram for ActuatorsSbus:
Data Fields
int32_t cmds[ACTUATORS_SBUS_MAX_NB]
struct link_device * device

Macro Definition Documentation

◆ ACTUATORS_SBUS_MAX_NB

#define ACTUATORS_SBUS_MAX_NB   16

Definition at line 33 of file actuators_sbus.h.

◆ ActuatorSbusSet

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

Definition at line 47 of file actuators_sbus.h.

◆ ActuatorsSbusCommit

#define ActuatorsSbusCommit ( )    actuators_sbus_set()

Definition at line 49 of file actuators_sbus.h.

◆ ActuatorsSbusInit

#define ActuatorsSbusInit ( )    actuators_sbus_init()

Definition at line 48 of file actuators_sbus.h.

Function Documentation

◆ actuators_sbus_init()

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:

◆ actuators_sbus_set()

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

◆ actuators_sbus

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().