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
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Modules
Pages
tcas.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2010 ENAC
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
*/
22
28
#ifndef TCAS_H
29
#define TCAS_H
30
31
#include "
std.h
"
32
//#include "subsystems/datalink/datalink.h" // dl_buffer
33
#include "pprzlink/messages.h"
// TCAS_RA
34
#include "generated/airframe.h"
// AC_INFO
35
#include "
modules/multi/traffic_info.h
"
36
37
extern
float
tcas_alt_setpoint
;
38
extern
float
tcas_tau_ta
,
tcas_tau_ra
,
tcas_dmod
,
tcas_alim
;
39
40
#define TCAS_NO_ALARM 0
41
#define TCAS_TA 1
42
#define TCAS_RA 2
43
enum
tcas_resolve
{
RA_NONE
,
RA_LEVEL
,
RA_CLIMB
,
RA_DESCEND
};
44
45
extern
uint8_t
tcas_status
;
46
extern
enum
tcas_resolve
tcas_resolve
;
47
extern
uint8_t
tcas_ac_RA
;
48
49
struct
tcas_ac_status
{
50
uint8_t
status
;
51
enum
tcas_resolve
resolve
;
52
};
53
54
extern
struct
tcas_ac_status
tcas_acs_status
[
NB_ACS
];
55
56
extern
void
tcas_init
(
void
);
57
extern
void
tcas_periodic_task_1Hz
(
void
);
58
extern
void
tcas_periodic_task_4Hz
(
void
);
59
60
extern
void
callTCAS
(
void
);
61
62
extern
void
parseTcasResolve
(
uint8_t
*buf);
63
extern
void
parseTcasRA
(
uint8_t
*buf);
64
65
#endif
/* TCAS_H */
RA_LEVEL
@ RA_LEVEL
Definition:
tcas.h:43
traffic_info.h
parseTcasRA
void parseTcasRA(uint8_t *buf)
Definition:
tcas.c:95
tcas_alim
float tcas_alim
Definition:
tcas.h:38
parseTcasResolve
void parseTcasResolve(uint8_t *buf)
Definition:
tcas.c:87
tcas_init
void tcas_init(void)
Definition:
tcas.c:70
tcas_ac_status::resolve
enum tcas_resolve resolve
Definition:
tcas.h:51
tcas_ac_RA
uint8_t tcas_ac_RA
Definition:
tcas.c:40
tcas_tau_ta
float tcas_tau_ta
Definition:
tcas.c:36
std.h
tcas_tau_ra
float tcas_tau_ra
Definition:
tcas.h:38
RA_CLIMB
@ RA_CLIMB
Definition:
tcas.h:43
uint8_t
unsigned char uint8_t
Definition:
types.h:14
tcas_ac_status
Definition:
tcas.h:49
tcas_alt_setpoint
float tcas_alt_setpoint
Definition:
tcas.c:35
tcas_status
uint8_t tcas_status
Definition:
tcas.c:38
tcas_acs_status
struct tcas_ac_status tcas_acs_status[NB_ACS]
Definition:
tcas.c:41
tcas_periodic_task_1Hz
void tcas_periodic_task_1Hz(void)
Definition:
tcas.c:117
tcas_dmod
float tcas_dmod
Definition:
tcas.h:38
tcas_ac_status::status
uint8_t status
Definition:
tcas.h:50
tcas_resolve
tcas_resolve
Definition:
tcas.h:43
NB_ACS
#define NB_ACS
Definition:
rssi.c:38
tcas_periodic_task_4Hz
void tcas_periodic_task_4Hz(void)
Definition:
tcas.c:236
RA_DESCEND
@ RA_DESCEND
Definition:
tcas.h:43
RA_NONE
@ RA_NONE
Definition:
tcas.h:43
callTCAS
void callTCAS(void)
Definition:
tcas.c:65
sw
airborne
modules
multi
tcas.h
Generated on Tue Feb 1 2022 13:51:16 for Paparazzi UAS by
1.8.17