Paparazzi UAS
v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
•
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/navigation/traffic_info.h
"
33
34
extern
float
tcas_alt_setpoint
;
35
extern
float
tcas_tau_ta
,
tcas_tau_ra
,
tcas_dmod
,
tcas_alim
;
36
37
#define TCAS_NO_ALARM 0
38
#define TCAS_TA 1
39
#define TCAS_RA 2
40
enum
tcas_resolve
{
RA_NONE
,
RA_LEVEL
,
RA_CLIMB
,
RA_DESCEND
};
41
42
extern
uint8_t
tcas_status
;
43
extern
enum
tcas_resolve
tcas_resolve
;
44
extern
uint8_t
tcas_ac_RA
;
45
46
struct
tcas_ac_status
{
47
uint8_t
status
;
48
enum
tcas_resolve
resolve
;
49
};
50
51
extern
struct
tcas_ac_status
tcas_acs_status
[
NB_ACS
];
52
53
extern
void
tcas_init
(
void
);
54
extern
void
tcas_periodic_task_1Hz
(
void
);
55
extern
void
tcas_periodic_task_4Hz
(
void
);
56
57
#define CallTCAS() { if (tcas_status == TCAS_RA) v_ctl_altitude_setpoint = tcas_alt_setpoint; }
58
59
#define ParseTcasResolve() { \
60
if (DL_TCAS_RESOLVE_ac_id(dl_buffer) == AC_ID) { \
61
uint8_t ac_id_conflict = DL_TCAS_RESOLVE_ac_id_conflict(dl_buffer); \
62
tcas_acs_status[the_acs_id[ac_id_conflict]].resolve = DL_TCAS_RESOLVE_resolve(dl_buffer); \
63
} \
64
}
65
66
#endif // TCAS
tcas_periodic_task_4Hz
void tcas_periodic_task_4Hz(void)
Definition:
tcas.c:219
tcas_ac_status::resolve
enum tcas_resolve resolve
Definition:
tcas.h:48
tcas_ac_RA
uint8_t tcas_ac_RA
Definition:
tcas.c:43
RA_LEVEL
Definition:
tcas.h:40
tcas_ac_status::status
uint8_t status
Definition:
tcas.h:47
tcas_init
void tcas_init(void)
Definition:
tcas.c:71
tcas_tau_ta
float tcas_tau_ta
Definition:
tcas.c:39
RA_DESCEND
Definition:
tcas.h:40
std.h
tcas_ac_status
Definition:
tcas.h:46
RA_NONE
Definition:
tcas.h:40
RA_CLIMB
Definition:
tcas.h:40
tcas_alim
float tcas_alim
Definition:
tcas.c:39
NB_ACS
#define NB_ACS
Definition:
traffic_info.h:33
uint8_t
unsigned char uint8_t
Definition:
types.h:14
tcas_status
uint8_t tcas_status
Definition:
tcas.c:41
tcas_periodic_task_1Hz
void tcas_periodic_task_1Hz(void)
Definition:
tcas.c:102
tcas_tau_ra
float tcas_tau_ra
Definition:
tcas.c:39
tcas_acs_status
struct tcas_ac_status tcas_acs_status[NB_ACS]
Definition:
tcas.c:44
tcas_dmod
float tcas_dmod
Definition:
tcas.c:39
traffic_info.h
Information relative to the other aircrafts.
tcas_resolve
tcas_resolve
Definition:
tcas.h:40
tcas_alt_setpoint
float tcas_alt_setpoint
Definition:
tcas.c:38
sw
airborne
modules
multi
tcas.h
Generated on Tue Jun 21 2016 14:01:20 for Paparazzi UAS by
1.8.8