Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
inter_thread_data.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2015 The Paparazzi Community
3  *
4  * This file is part of Paparazzi.
5  *
6  * Paparazzi is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; either version 2, or (at your option)
9  * any later version.
10  *
11  * Paparazzi is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with Paparazzi; see the file COPYING. If not, see
18  * <http://www.gnu.org/licenses/>.
19  */
20 
29 #ifndef _INTER_THREAD_DATA_H
30 #define _INTER_THREAD_DATA_H
31 
33 #include "math/pprz_algebra_int.h"
34 
35 
36 /* The result calculated from the opticflow */
38  float fps;
41 
42  // Camera frame with the origin in the top left corner of the image
47 
50 
51  float div_size;
52 
54  float divergence;
56 
58 };
59 
60 #endif
61 
62 
opticflow_result_t::flow_x
int16_t flow_x
Flow in x direction from the camera (in subpixels) with X positive to the right.
Definition: inter_thread_data.h:43
uint16_t
unsigned short uint16_t
Definition: types.h:16
opticflow_result_t::tracked_cnt
uint16_t tracked_cnt
The amount of tracked corners.
Definition: inter_thread_data.h:40
opticflow_result_t::flow_y
int16_t flow_y
Flow in y direction from the camera (in subpixels) with Y positive to the bottom.
Definition: inter_thread_data.h:44
opticflow_result_t::divergence
float divergence
Divergence as determined with a linear flow fit.
Definition: inter_thread_data.h:54
opticflow_result_t::surface_roughness
float surface_roughness
Surface roughness as determined with a linear optical flow fit.
Definition: inter_thread_data.h:53
pprz_algebra_float.h
Paparazzi floating point algebra.
pprz_algebra_int.h
Paparazzi fixed point algebra.
FloatVect3
Definition: pprz_algebra_float.h:54
opticflow_result_t::vel_cam
struct FloatVect3 vel_cam
The velocity in camera frame (m/s)
Definition: inter_thread_data.h:48
int16_t
signed short int16_t
Definition: types.h:17
uint8_t
unsigned char uint8_t
Definition: types.h:14
opticflow_result_t::vel_body
struct FloatVect3 vel_body
The velocity in body frame (m/s) with X positive to the front of the aircraft, Y positive to the righ...
Definition: inter_thread_data.h:49
opticflow_result_t::fps
float fps
Frames per second of the optical flow calculation.
Definition: inter_thread_data.h:38
opticflow_result_t::camera_id
uint8_t camera_id
Camera id as passed to cv_add_to_device.
Definition: inter_thread_data.h:55
opticflow_result_t::noise_measurement
float noise_measurement
noise of measurement, for state filter
Definition: inter_thread_data.h:57
opticflow_result_t::flow_der_y
int16_t flow_der_y
The derotated flow calculation in the y direction (in subpixels)
Definition: inter_thread_data.h:46
opticflow_result_t::div_size
float div_size
Divergence as determined with the size_divergence script.
Definition: inter_thread_data.h:51
opticflow_result_t::flow_der_x
int16_t flow_der_x
The derotated flow calculation in the x direction (in subpixels)
Definition: inter_thread_data.h:45
opticflow_result_t::corner_cnt
uint16_t corner_cnt
The amount of coners found by FAST9.
Definition: inter_thread_data.h:39
opticflow_result_t
Definition: inter_thread_data.h:37