Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
Main Page
Related Pages
Modules
Data Structures
Data Structures
Data Structure Index
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
j
m
n
p
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
z
Enumerator
a
b
c
d
e
f
g
h
i
j
l
m
n
o
p
r
s
t
u
v
w
x
y
z
Macros
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
▼
Paparazzi UAS
►
MAIN README
►
Onboard Modules
►
Paparazzi Messages
Paparazzi Technical Primers
►
Math library
CATIA
E-Identification-FR
Todo List
Bibliography
►
Modules
►
Namespace Members
►
Data Structures
▼
Files
►
File List
►
Globals
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
actuators_asctec_v2.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2009-2013 The Paparazzi Team
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_V2_H
27
#define ACTUATORS_ASCTEC_V2_H
28
29
#include "
mcu_periph/i2c.h
"
30
31
#include "generated/airframe.h"
32
33
enum
actuators_asctec_v2_cmd
{
NONE
,
34
TEST
,
35
REVERSE
,
36
SET_ADDR
37
};
38
39
enum
actuators_asctec_v2_addr
{
FRONT
,
40
BACK
,
41
LEFT
,
42
RIGHT
43
};
44
45
struct
ActuatorsAsctecV2
{
46
enum
actuators_asctec_v2_cmd
cmd
;
47
enum
actuators_asctec_v2_addr
cur_addr
;
48
enum
actuators_asctec_v2_addr
new_addr
;
49
int32_t
cmds
[4];
50
struct
i2c_transaction
i2c_trans
;
51
volatile
uint32_t
nb_err
;
52
};
53
54
55
extern
struct
ActuatorsAsctecV2
actuators_asctec_v2
;
56
57
#define actuators_asctec_v2_SetCommand(_v) { \
58
actuators_asctec_v2.cmd = _v; \
59
}
60
61
#define actuators_asctec_v2_SetNewAddr(_v) { \
62
actuators_asctec_v2.new_addr = _v; \
63
}
64
65
#define actuators_asctec_v2_SetCurAddr(_v) { \
66
actuators_asctec_v2.cur_addr = _v; \
67
}
68
69
extern
void
actuators_asctec_v2_init
(
void
);
70
extern
void
actuators_asctec_v2_set
(
void
);
71
72
#define ActuatorAsctec_v2Set(_i, _v) { actuators_asctec_v2.cmds[_i] = _v; }
73
#define ActuatorsAsctec_v2Init() actuators_asctec_v2_init()
74
#define ActuatorsAsctec_v2Commit() actuators_asctec_v2_set()
75
76
77
#endif
/* ACTUATORS_ASCTEC_H */
ActuatorsAsctecV2::cmds
int32_t cmds[4]
Definition:
actuators_asctec_v2.h:49
uint32_t
unsigned long uint32_t
Definition:
types.h:18
REVERSE
@ REVERSE
Definition:
actuators_asctec_v2.h:35
BACK
@ BACK
Definition:
actuators_asctec_v2.h:40
ActuatorsAsctecV2::nb_err
volatile uint32_t nb_err
Definition:
actuators_asctec_v2.h:51
NONE
@ NONE
Definition:
actuators_asctec_v2.h:33
ActuatorsAsctecV2::i2c_trans
struct i2c_transaction i2c_trans
Definition:
actuators_asctec_v2.h:50
ActuatorsAsctecV2
Definition:
actuators_asctec_v2.h:45
ActuatorsAsctecV2::new_addr
enum actuators_asctec_v2_addr new_addr
Definition:
actuators_asctec_v2.h:48
actuators_asctec_v2_cmd
actuators_asctec_v2_cmd
Definition:
actuators_asctec_v2.h:33
SET_ADDR
@ SET_ADDR
Definition:
actuators_asctec_v2.h:36
RIGHT
@ RIGHT
Definition:
actuators_asctec_v2.h:42
actuators_asctec_v2
struct ActuatorsAsctecV2 actuators_asctec_v2
Definition:
actuators_asctec_v2.c:36
i2c_transaction
I2C transaction structure.
Definition:
i2c.h:93
ActuatorsAsctecV2::cur_addr
enum actuators_asctec_v2_addr cur_addr
Definition:
actuators_asctec_v2.h:47
TEST
@ TEST
Definition:
actuators_asctec_v2.h:34
actuators_asctec_v2_addr
actuators_asctec_v2_addr
Definition:
actuators_asctec_v2.h:39
int32_t
signed long int32_t
Definition:
types.h:19
FRONT
@ FRONT
Definition:
actuators_asctec_v2.h:39
actuators_asctec_v2_init
void actuators_asctec_v2_init(void)
Definition:
actuators_asctec_v2.c:38
actuators_asctec_v2_set
void actuators_asctec_v2_set(void)
Definition:
actuators_asctec_v2.c:51
ActuatorsAsctecV2::cmd
enum actuators_asctec_v2_cmd cmd
Definition:
actuators_asctec_v2.h:46
i2c.h
LEFT
@ LEFT
Definition:
actuators_asctec_v2.h:41
sw
airborne
subsystems
actuators
actuators_asctec_v2.h
Generated on Tue Feb 1 2022 13:51:17 for Paparazzi UAS by
1.8.17