Paparazzi UAS  v5.14.0_stable-0-g3f680d1
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
stereocam.c File Reference

interface to TU Delft serial stereocam Include stereocam.xml to your airframe file. More...

#include "modules/stereocam/stereocam.h"
#include "mcu_periph/uart.h"
#include "subsystems/datalink/telemetry.h"
#include "pprzlink/messages.h"
#include "pprzlink/intermcu_msg.h"
#include "mcu_periph/sys_time.h"
#include "subsystems/abi.h"
#include "stereocam_follow_me/follow_me.h"
#include "filters/median_filter.h"
+ Include dependency graph for stereocam.c:

Go to the source code of this file.

Macros

#define FORWARD_IMAGE_DATA   FALSE
 
#define STEREO_BODY_TO_STEREO_PHI   0
 
#define STEREO_BODY_TO_STEREO_THETA   0
 
#define STEREO_BODY_TO_STEREO_PSI   0
 
#define STEREOCAM_USE_MEDIAN_FILTER   0
 

Functions

void stereocam_init (void)
 
static void stereocam_parse_msg (void)
 
void stereocam_event (void)
 
void state2stereocam (void)
 

Variables

struct stereocam_t stereocam
 
static uint8_t stereocam_msg_buf [256]
 The message buffer for the stereocamera. More...
 
struct MedianFilter3Float medianfilter
 

Detailed Description

interface to TU Delft serial stereocam Include stereocam.xml to your airframe file.

Parameters STEREO_PORT, STEREO_BAUD, SEND_STEREO should be configured with stereocam.xml.

Definition in file stereocam.c.

Macro Definition Documentation

#define FORWARD_IMAGE_DATA   FALSE

Definition at line 44 of file stereocam.c.

#define STEREO_BODY_TO_STEREO_PHI   0

Definition at line 71 of file stereocam.c.

Referenced by stereocam_init().

#define STEREO_BODY_TO_STEREO_PSI   0

Definition at line 79 of file stereocam.c.

Referenced by stereocam_init().

#define STEREO_BODY_TO_STEREO_THETA   0

Definition at line 75 of file stereocam.c.

Referenced by stereocam_init().

#define STEREOCAM_USE_MEDIAN_FILTER   0

Definition at line 89 of file stereocam.c.

Referenced by stereocam_parse_msg().

Function Documentation

void state2stereocam ( void  )
void stereocam_event ( void  )

Definition at line 202 of file stereocam.c.

References stereocam_t::device, stereocam_t::msg_available, stereocam_msg_buf, stereocam_parse_msg(), and stereocam_t::transport.

+ Here is the call graph for this function:

static void stereocam_parse_msg ( void  )
static

Variable Documentation

struct MedianFilter3Float medianfilter

Definition at line 93 of file stereocam.c.

Referenced by stereocam_init(), and stereocam_parse_msg().

struct stereocam_t stereocam
Initial value:
= {
.device = (&((UART_LINK).device)),
.msg_available = false
}

Definition at line 82 of file stereocam.c.

uint8_t stereocam_msg_buf[256]
static

The message buffer for the stereocamera.

Definition at line 86 of file stereocam.c.

Referenced by stereocam_event(), and stereocam_parse_msg().