Paparazzi UAS  v4.0.4_stable-3-gf39211a
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
actuators_asctec.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2009 Antoine Drouin <poinix@gmail.com>
3  *
4  * This file is part of paparazzi.
5  *
6  * paparazzi is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2, or (at your option)
9  * any later version.
10  *
11  * paparazzi is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with paparazzi; see the file COPYING. If not, write to
18  * the Free Software Foundation, 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21 
26 #ifndef ACTUATORS_ASCTEC_H
27 #define ACTUATORS_ASCTEC_H
28 
29 #include "mcu_periph/i2c.h"
30 
35 
39  RIGHT };
40 
41 /* this is for the v1 protocol which does its own mixing */
44  YAW,
46  CMD_NB };
47 
54  volatile uint32_t nb_err;
55 };
56 
57 
58 extern struct ActuatorsAsctec actuators_asctec;
59 
60 #define actuators_asctec_SetCommand(_v) { \
61  actuators_asctec.cmd = _v; \
62  }
63 
64 #define actuators_asctec_SetNewAddr(_v) { \
65  actuators_asctec.new_addr = _v; \
66  }
67 
68 #define actuators_asctec_SetCurAddr(_v) { \
69  actuators_asctec.cur_addr = _v; \
70  }
71 
72 
73 #endif /* ACTUATORS_ASCTEC_H */
struct ActuatorsAsctec actuators_asctec
int32_t cmds[CMD_NB]
enum actuators_astec_cmd cmd
enum actuators_astec_addr cur_addr
unsigned long uint32_t
Definition: types.h:18
enum actuators_astec_addr new_addr
actuators_astec_cmds
signed long int32_t
Definition: types.h:19
actuators_astec_cmd
struct i2c_transaction i2c_trans
actuators_astec_addr
volatile uint32_t nb_err