Paparazzi UAS v7.1_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
stereocam_droplet.c File Reference
#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"
Include dependency graph for stereocam_droplet.c:

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

Detailed Description

Author
C. DW

Definition in file stereocam_droplet.c.


Data Structure Documentation

◆ AvoidNavigationStruct

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

Macro Definition Documentation

◆ DOWNLINK_DEVICE

#define DOWNLINK_DEVICE   DOWNLINK_AP_DEVICE

◆ STEREO_PORT

#define STEREO_PORT   (&((STEREO_UART).device))

Definition at line 40 of file stereocam_droplet.c.

◆ StereoChAvailable

#define StereoChAvailable ( )
Value:
(xdev->char_available(xdev->periph))
struct link_device * xdev

Definition at line 48 of file stereocam_droplet.c.

Referenced by stereocam_droplet_periodic().

◆ StereoGetch

#define StereoGetch ( )
Value:
STEREO_PORT ->get_byte(STEREO_PORT->periph)
#define STEREO_PORT

Definition at line 43 of file stereocam_droplet.c.

Referenced by stereocam_droplet_periodic().

◆ StereoSend

#define StereoSend ( _dat,
_len )
Value:
{ for (uint8_t i = 0; i< (_len); i++) StereoSend1(_dat[i]); };
#define StereoSend1(c)
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.

Definition at line 46 of file stereocam_droplet.c.

◆ StereoSend1

#define StereoSend1 ( c)
Value:
STEREO_PORT->put_byte(STEREO_PORT->periph, 0, c)

Definition at line 44 of file stereocam_droplet.c.

◆ StereoUartSend1

#define StereoUartSend1 ( c)
Value:

Definition at line 45 of file stereocam_droplet.c.

◆ StereoUartSetBaudrate

#define StereoUartSetBaudrate ( _b)
Value:
void uart_periph_set_baudrate(struct uart_periph *periph, uint32_t baud)
Definition uart_arch.c:280

Definition at line 47 of file stereocam_droplet.c.

Function Documentation

◆ stereo_parse()

void stereo_parse ( uint8_t c)
static

Definition at line 84 of file stereocam_droplet.c.

References avoid_navigation_data.

Referenced by stereocam_droplet_periodic().

Here is the caller graph for this function:

◆ stereocam_droplet_init()

void stereocam_droplet_init ( void )

Definition at line 92 of file stereocam_droplet.c.

References avoid_navigation_data.

◆ stereocam_droplet_periodic()

Variable Documentation

◆ avoid_navigation_data

◆ xdev

struct link_device* xdev = STEREO_PORT

Definition at line 41 of file stereocam_droplet.c.