Paparazzi UAS  v7.0_unstable
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"
31 
32 #define CLOUD_SIM_WP 0
33 #define CLOUD_SIM_POLYGON 1
34 
35 struct CloudSim {
36  bool reset;
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
static uint8_t reset[3]
Definition: baro_MS5534A.c:83
struct FloatVect2 speed
Definition: cloud_sim.h:38
struct CloudSim cloud_sim
Definition: cloud_sim.c:72
void cloud_sim_detect(void)
periodic call for border detection
Definition: cloud_sim.c:102
void cloud_sim_move(void)
periodic call for moving waypoints
Definition: cloud_sim.c:130
uint8_t mode
Definition: cloud_sim.h:37
void cloud_sim_reset(bool reset)
reset handler
Definition: cloud_sim.c:154
void cloud_sim_init(void)
Definition: cloud_sim.c:92
float radius
radius in WP mode
Definition: cloud_sim.h:39
bool reset
Definition: cloud_sim.h:36
Paparazzi floating point algebra.
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
Definition: vl53l1_types.h:98