|
Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
|
#include "modules/stereocam/droplet/stereocam_droplet.h"#include "generated/flight_plan.h"#include "firmwares/rotorcraft/navigation.h"#include "mcu_periph/uart.h"#include "pprzlink/messages.h"#include "modules/datalink/downlink.h"#include "led.h"Go to the source code of this file.
Data Structures | |
| struct | AvoidNavigationStruct |
Macros | |
| #define | STEREO_PORT (&((STEREO_UART).device)) |
| #define | StereoGetch() |
| #define | StereoSend1(c) |
| #define | StereoUartSend1(c) |
| #define | StereoSend(_dat, _len) |
| #define | StereoUartSetBaudrate(_b) |
| #define | StereoChAvailable() |
| #define | DOWNLINK_DEVICE DOWNLINK_AP_DEVICE |
Functions | |
| static void | stereo_parse (uint8_t c) |
| void | stereocam_droplet_init (void) |
| void | stereocam_droplet_periodic (void) |
Variables | |
| struct link_device * | xdev = STEREO_PORT |
| struct AvoidNavigationStruct | avoid_navigation_data |
| global VIDEO state | |
Definition in file stereocam_droplet.c.
| struct AvoidNavigationStruct |
Definition at line 69 of file stereocam_droplet.c.
| Data Fields | ||
|---|---|---|
| uint8_t | mode |
0 = straight, 1 = right, 2 = left, ... 0 = nothing, 1 = climb, 2 = sideways, ... |
| uint8_t | stereo_bin[8] | |
| uint8_t | timeout | |
| #define DOWNLINK_DEVICE DOWNLINK_AP_DEVICE |
Definition at line 57 of file stereocam_droplet.c.
Referenced by gec_dl_event(), gec_process_msg1(), pprz_dl_event(), and superbitrf_dl_event().
| #define STEREO_PORT (&((STEREO_UART).device)) |
Definition at line 40 of file stereocam_droplet.c.
| #define StereoChAvailable | ( | ) |
Definition at line 48 of file stereocam_droplet.c.
Referenced by stereocam_droplet_periodic().
| #define StereoGetch | ( | ) |
Definition at line 43 of file stereocam_droplet.c.
Referenced by stereocam_droplet_periodic().
| #define StereoSend | ( | _dat, | |
| _len ) |
Definition at line 46 of file stereocam_droplet.c.
| #define StereoSend1 | ( | c | ) |
Definition at line 44 of file stereocam_droplet.c.
| #define StereoUartSend1 | ( | c | ) |
Definition at line 45 of file stereocam_droplet.c.
| #define StereoUartSetBaudrate | ( | _b | ) |
Definition at line 47 of file stereocam_droplet.c.
|
static |
Definition at line 84 of file stereocam_droplet.c.
References avoid_navigation_data.
Referenced by stereocam_droplet_periodic().
| void stereocam_droplet_init | ( | void | ) |
Definition at line 92 of file stereocam_droplet.c.
References avoid_navigation_data.
| void stereocam_droplet_periodic | ( | void | ) |
Definition at line 98 of file stereocam_droplet.c.
References avoid_navigation_data, DefaultChannel, DefaultDevice, heading, LED_OFF, LED_ON, nav, nav_set_heading_rad(), NavSetWaypointHere, obstacle_detected, stereo_parse(), StereoChAvailable, StereoGetch, waypoint_get_alt(), waypoint_get_x(), waypoint_get_y(), waypoint_set_enu(), EnuCoor_f::x, EnuCoor_f::y, and EnuCoor_f::z.
| struct AvoidNavigationStruct avoid_navigation_data |
global VIDEO state
Definition at line 75 of file stereocam_droplet.c.
Referenced by init_avoid_navigation(), run_avoid_navigation_onvision(), stereo_avoid_init(), stereo_avoid_run(), stereo_parse(), stereocam_droplet_init(), and stereocam_droplet_periodic().
| struct link_device* xdev = STEREO_PORT |
Definition at line 41 of file stereocam_droplet.c.