Paparazzi UAS  v5.0.5_stable-7-g4b8bbb7
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
actuators_asctec.h File Reference

Actuators driver for Asctec motor controllers. More...

#include "mcu_periph/i2c.h"
#include "generated/airframe.h"
+ Include dependency graph for actuators_asctec.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  ActuatorsAsctec
 

Macros

#define actuators_asctec_SetCommand(_v)
 
#define actuators_asctec_SetNewAddr(_v)
 
#define actuators_asctec_SetCurAddr(_v)
 
#define ActuatorAsctecSet(_i, _v)   { actuators_asctec.cmds[_i] = _v; }
 
#define ActuatorsAsctecInit()   actuators_asctec_init()
 
#define ActuatorsAsctecCommit()   actuators_asctec_set(autopilot_motors_on)
 

Enumerations

enum  actuators_asctec_cmd { NONE, TEST, REVERSE, SET_ADDR }
 
enum  actuators_asctec_addr { FRONT, BACK, LEFT, RIGHT }
 
enum  actuators_asctec_cmds {
  PITCH, ROLL, YAW, THRUST,
  CMD_NB
}
 

Functions

void actuators_asctec_init (void)
 
void actuators_asctec_set (bool_t motors_on)
 

Variables

struct ActuatorsAsctec actuators_asctec
 

Detailed Description

Actuators driver for Asctec motor controllers.

Definition in file actuators_asctec.h.

Macro Definition Documentation

#define ActuatorAsctecSet (   _i,
  _v 
)    { actuators_asctec.cmds[_i] = _v; }

Definition at line 77 of file actuators_asctec.h.

#define actuators_asctec_SetCommand (   _v)
Value:
{ \
}
struct ActuatorsAsctec actuators_asctec
enum actuators_asctec_cmd cmd

Definition at line 62 of file actuators_asctec.h.

#define actuators_asctec_SetCurAddr (   _v)
Value:
{ \
}
struct ActuatorsAsctec actuators_asctec
enum actuators_asctec_addr cur_addr

Definition at line 70 of file actuators_asctec.h.

#define actuators_asctec_SetNewAddr (   _v)
Value:
{ \
}
struct ActuatorsAsctec actuators_asctec
enum actuators_asctec_addr new_addr

Definition at line 66 of file actuators_asctec.h.

#define ActuatorsAsctecCommit ( )    actuators_asctec_set(autopilot_motors_on)

Definition at line 79 of file actuators_asctec.h.

#define ActuatorsAsctecInit ( )    actuators_asctec_init()

Definition at line 78 of file actuators_asctec.h.

Enumeration Type Documentation

Enumerator
FRONT 
BACK 
LEFT 
RIGHT 

Definition at line 38 of file actuators_asctec.h.

Enumerator
NONE 
TEST 
REVERSE 
SET_ADDR 

Definition at line 33 of file actuators_asctec.h.

Enumerator
PITCH 
ROLL 
YAW 
THRUST 
CMD_NB 

Definition at line 44 of file actuators_asctec.h.

Function Documentation

Variable Documentation

struct ActuatorsAsctec actuators_asctec

Definition at line 42 of file actuators_asctec.c.

Referenced by actuators_asctec_set(), and main_periodic_task().