Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
cloud_sim.h File Reference
#include "std.h"
#include "math/pprz_algebra_float.h"
+ Include dependency graph for cloud_sim.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  CloudSim
 

Macros

#define CLOUD_SIM_WP   0
 
#define CLOUD_SIM_POLYGON   1
 

Functions

void cloud_sim_init (void)
 
void cloud_sim_detect (void)
 periodic call for border detection More...
 
void cloud_sim_move (void)
 periodic call for moving waypoints More...
 
void cloud_sim_reset (bool reset)
 reset handler More...
 

Variables

struct CloudSim cloud_sim
 

Detailed Description

Author
Gautier Hattenberger gauti.nosp@m.er.h.nosp@m.atten.nosp@m.berg.nosp@m.er@en.nosp@m.ac.f.nosp@m.r Basic cloud simulation for testing adaptive navigation patterns

Definition in file cloud_sim.h.


Data Structure Documentation

◆ CloudSim

struct CloudSim

Definition at line 35 of file cloud_sim.h.

+ Collaboration diagram for CloudSim:
Data Fields
uint8_t mode
float radius radius in WP mode
bool reset
struct FloatVect2 speed

Macro Definition Documentation

◆ CLOUD_SIM_POLYGON

#define CLOUD_SIM_POLYGON   1

Definition at line 33 of file cloud_sim.h.

◆ CLOUD_SIM_WP

#define CLOUD_SIM_WP   0

Definition at line 32 of file cloud_sim.h.

Function Documentation

◆ cloud_sim_detect()

void cloud_sim_detect ( void  )

periodic call for border detection

Definition at line 102 of file cloud_sim.c.

References CLOUD_SENSOR_ID, cloud_sim, cloud_sim_circle_id, CLOUD_SIM_POLYGON, CLOUD_SIM_WP, distance_to_wp(), get_sys_time_usec(), CloudSim::mode, CloudSim::radius, stateGetPositionEnu_f(), EnuCoor_f::x, and EnuCoor_f::y.

+ Here is the call graph for this function:

◆ cloud_sim_init()

◆ cloud_sim_move()

void cloud_sim_move ( void  )

periodic call for moving waypoints

Definition at line 130 of file cloud_sim.c.

References cloud_sim, cloud_sim_circle_id, cloud_sim_polygon, CLOUD_SIM_POLYGON, CLOUD_SIM_WP, CLOUD_SIM_WPS_NB, CloudSim::mode, nav_move_waypoint_point(), nav_send_waypoint(), CloudSim::speed, waypoints, FloatVect2::x, point::x, FloatVect2::y, and point::y.

+ Here is the call graph for this function:

◆ cloud_sim_reset()

void cloud_sim_reset ( bool  reset)

reset handler

Definition at line 154 of file cloud_sim.c.

References cloud_sim, cloud_sim_circle_id, cloud_sim_polygon, CLOUD_SIM_WPS_NB, nav_move_waypoint_point(), nav_send_waypoint(), CloudSim::reset, and reset.

+ Here is the call graph for this function:

Variable Documentation

◆ cloud_sim

struct CloudSim cloud_sim
extern

Definition at line 61 of file cloud_sim.c.

Referenced by cloud_sim_detect(), cloud_sim_init(), cloud_sim_move(), and cloud_sim_reset().