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_v2.h File Reference

Actuators driver for Asctec v2 motor controllers. More...

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

Go to the source code of this file.

Data Structures

struct  ActuatorsAsctecV2
 

Macros

#define actuators_asctec_v2_SetCommand(_v)
 
#define actuators_asctec_v2_SetNewAddr(_v)
 
#define actuators_asctec_v2_SetCurAddr(_v)
 
#define ActuatorAsctec_v2Set(_i, _v)   { actuators_asctec_v2.cmds[_i] = _v; }
 
#define ActuatorsAsctec_v2Init()   actuators_asctec_v2_init()
 
#define ActuatorsAsctec_v2Commit()   actuators_asctec_v2_set()
 

Enumerations

enum  actuators_asctec_v2_cmd { NONE, TEST, REVERSE, SET_ADDR }
 
enum  actuators_asctec_v2_addr { FRONT, BACK, LEFT, RIGHT }
 

Functions

void actuators_asctec_v2_init (void)
 
void actuators_asctec_v2_set (void)
 

Variables

struct ActuatorsAsctecV2 actuators_asctec_v2
 

Detailed Description

Actuators driver for Asctec v2 motor controllers.

Definition in file actuators_asctec_v2.h.

Macro Definition Documentation

#define ActuatorAsctec_v2Set (   _i,
  _v 
)    { actuators_asctec_v2.cmds[_i] = _v; }

Definition at line 70 of file actuators_asctec_v2.h.

#define actuators_asctec_v2_SetCommand (   _v)
Value:
{ \
}
struct ActuatorsAsctecV2 actuators_asctec_v2
enum actuators_asctec_v2_cmd cmd

Definition at line 55 of file actuators_asctec_v2.h.

#define actuators_asctec_v2_SetCurAddr (   _v)
Value:
{ \
}
struct ActuatorsAsctecV2 actuators_asctec_v2
enum actuators_asctec_v2_addr cur_addr

Definition at line 63 of file actuators_asctec_v2.h.

#define actuators_asctec_v2_SetNewAddr (   _v)
Value:
{ \
}
enum actuators_asctec_v2_addr new_addr
struct ActuatorsAsctecV2 actuators_asctec_v2

Definition at line 59 of file actuators_asctec_v2.h.

#define ActuatorsAsctec_v2Commit ( )    actuators_asctec_v2_set()

Definition at line 72 of file actuators_asctec_v2.h.

#define ActuatorsAsctec_v2Init ( )    actuators_asctec_v2_init()

Definition at line 71 of file actuators_asctec_v2.h.

Enumeration Type Documentation

Enumerator
FRONT 
BACK 
LEFT 
RIGHT 

Definition at line 38 of file actuators_asctec_v2.h.

Enumerator
NONE 
TEST 
REVERSE 
SET_ADDR 

Definition at line 33 of file actuators_asctec_v2.h.

Function Documentation

Variable Documentation

struct ActuatorsAsctecV2 actuators_asctec_v2

Definition at line 36 of file actuators_asctec_v2.c.

Referenced by actuators_asctec_v2_set().