Paparazzi UAS  v5.10_stable-5-g83a0da5-dirty
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
px4flow.c File Reference

driver for the optical flow sensor PX4FLOW More...

#include "modules/optical_flow/px4flow.h"
#include "modules/datalink/mavlink_decoder.h"
#include "subsystems/abi.h"
#include "mcu_periph/uart.h"
#include "pprzlink/messages.h"
#include "subsystems/datalink/downlink.h"
+ Include dependency graph for px4flow.c:

Go to the source code of this file.

Macros

#define MAVLINK_OPTICAL_FLOW_MSG_ID   100
 
#define MAVLINK_OPTICAL_FLOW_LEN   26
 
#define PX4FLOW_NOISE   0.5
 

Functions

static void decode_optical_flow_msg (struct mavlink_message *msg)
 
void px4flow_init (void)
 Initialization function. More...
 
void px4flow_downlink (void)
 Downlink message for debug. More...
 

Variables

struct mavlink_optical_flow optical_flow
 
bool optical_flow_available
 
struct mavlink_msg_req req
 

Detailed Description

driver for the optical flow sensor PX4FLOW

Sensor from the PIXHAWK project

Definition in file px4flow.c.

Macro Definition Documentation

#define MAVLINK_OPTICAL_FLOW_LEN   26

Definition at line 39 of file px4flow.c.

#define MAVLINK_OPTICAL_FLOW_MSG_ID   100

Definition at line 37 of file px4flow.c.

Referenced by px4flow_init().

#define PX4FLOW_NOISE   0.5

Definition at line 42 of file px4flow.c.

Referenced by decode_optical_flow_msg().

Function Documentation

static void decode_optical_flow_msg ( struct mavlink_message msg)
static
void px4flow_init ( void  )

Variable Documentation

struct mavlink_optical_flow optical_flow

Definition at line 33 of file px4flow.c.

Referenced by decode_optical_flow_msg(), px4flow_downlink(), and px4flow_init().

bool optical_flow_available

Definition at line 34 of file px4flow.c.

Referenced by decode_optical_flow_msg(), and px4flow_init().

struct mavlink_msg_req req

Definition at line 46 of file px4flow.c.

Referenced by mavlink_register_msg(), mavlink_wp_message_handler(), and px4flow_init().