Paparazzi UAS
v6.1.0_stable
Paparazzi is a free software Unmanned Aircraft System.
cloud_sim.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2021 Gautier Hattenberger <gautier.hattenberger@enac.fr>
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, see
18
* <http://www.gnu.org/licenses/>.
19
*/
20
26
#ifndef CLOUD_SIM_H
27
#define CLOUD_SIM_H
28
29
#include "
std.h
"
30
#include "
math/pprz_algebra_float.h
"
31
32
#define CLOUD_SIM_WP 0
33
#define CLOUD_SIM_POLYGON 1
34
35
struct
CloudSim
{
36
bool
reset
;
37
uint8_t
mode
;
38
struct
FloatVect2
speed
;
39
float
radius
;
40
};
41
42
extern
struct
CloudSim
cloud_sim
;
43
44
extern
void
cloud_sim_init
(
void
);
45
extern
void
cloud_sim_detect
(
void
);
46
extern
void
cloud_sim_move
(
void
);
47
extern
void
cloud_sim_reset
(
bool
reset
);
48
49
#endif // CLOUD_SIM_H
CloudSim::speed
struct FloatVect2 speed
Definition:
cloud_sim.h:38
uint8_t
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
Definition:
vl53l1_types.h:98
pprz_algebra_float.h
Paparazzi floating point algebra.
reset
static uint8_t reset[3]
Definition:
baro_MS5534A.c:83
FloatVect2
Definition:
pprz_algebra_float.h:49
std.h
CloudSim::radius
float radius
radius in WP mode
Definition:
cloud_sim.h:39
cloud_sim_reset
void cloud_sim_reset(bool reset)
reset handler
Definition:
cloud_sim.c:154
CloudSim
Definition:
cloud_sim.h:35
cloud_sim_init
void cloud_sim_init(void)
Definition:
cloud_sim.c:92
CloudSim::reset
bool reset
Definition:
cloud_sim.h:36
cloud_sim
struct CloudSim cloud_sim
Definition:
cloud_sim.c:72
CloudSim::mode
uint8_t mode
Definition:
cloud_sim.h:37
cloud_sim_detect
void cloud_sim_detect(void)
periodic call for border detection
Definition:
cloud_sim.c:102
cloud_sim_move
void cloud_sim_move(void)
periodic call for moving waypoints
Definition:
cloud_sim.c:130
sw
airborne
modules
meteo
cloud_sim.h
Generated on Tue Feb 1 2022 13:08:45 for Paparazzi UAS by
1.8.17