Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
actuators_sbus.c File Reference

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

#include "subsystems/actuators.h"
#include "subsystems/actuators/actuators_sbus.h"
#include "generated/airframe.h"
#include "mcu_periph/uart.h"
+ Include dependency graph for actuators_sbus.c:

Go to the source code of this file.

Macros

#define SBUS_START_BYTE   0x0f
 
#define SBUS_END_BYTE   0x00
 
#define SBUS_BIT_PER_CHANNEL   11
 

Functions

static void actuators_sbus_send (struct link_device *dev)
 
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, averga and maximum should be: 340, 1024, 1708

Definition in file actuators_sbus.c.

Macro Definition Documentation

#define SBUS_BIT_PER_CHANNEL   11

Definition at line 89 of file actuators_sbus.c.

Referenced by actuators_sbus_send().

#define SBUS_END_BYTE   0x00

Definition at line 87 of file actuators_sbus.c.

Referenced by actuators_sbus_send().

#define SBUS_START_BYTE   0x0f

Definition at line 86 of file actuators_sbus.c.

Referenced by actuators_sbus_send().

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:

static void actuators_sbus_send ( struct link_device *  dev)
inlinestatic

Definition at line 91 of file actuators_sbus.c.

References actuators_sbus, ACTUATORS_SBUS_MAX_NB, ActuatorsSbus::cmds, SBUS_BIT_PER_CHANNEL, SBUS_END_BYTE, and SBUS_START_BYTE.

Referenced by actuators_sbus_set().

+ Here is the caller 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().