Paparazzi UAS
v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
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 |
Definition in file cloud_sim.h.
struct CloudSim |
Definition at line 35 of file cloud_sim.h.
Data Fields | ||
---|---|---|
uint8_t | mode | |
float | radius | radius in WP mode |
bool | reset | |
struct FloatVect2 | speed |
#define CLOUD_SIM_POLYGON 1 |
Definition at line 33 of file cloud_sim.h.
#define CLOUD_SIM_WP 0 |
Definition at line 32 of file cloud_sim.h.
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.
void cloud_sim_init | ( | void | ) |
Definition at line 92 of file cloud_sim.c.
References cloud_sim, CLOUD_SIM_MODE, CLOUD_SIM_RADIUS, CLOUD_SIM_SPEED_X, CLOUD_SIM_SPEED_Y, CloudSim::mode, CloudSim::radius, CloudSim::reset, CloudSim::speed, FloatVect2::x, and FloatVect2::y.
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.
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.
|
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().