Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
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 
46 
47  float vel_x;
48  float vel_y;
49 
50  float vel_body_x;
51  float vel_body_y;
52 
53  float div_size;
54 
56  float divergence;
57 
59 };
60 
61 /* The state of the drone when it took an image */
63  struct FloatRates rates;
64  float agl;
67 };
68 
69 #endif
70 
71 
unsigned short uint16_t
Definition: types.h:16
float vel_body_x
The velocity in the x direction (body fixed coordinates)
int16_t flow_y
Flow in y direction from the camera (in subpixels)
int16_t flow_der_y
The derotated flow calculation in the y direction (in subpixels)
float div_size
Divergence as determined with the size_divergence script.
struct FloatRates rates
Body rates.
float agl
height above ground [m]
Roation quaternion.
uint16_t tracked_cnt
The amount of tracked corners.
float vel_body_y
The velocity in the y direction (body fixed coordinates)
Paparazzi floating point algebra.
signed short int16_t
Definition: types.h:17
struct Int32Vect3 accel_imu_meas
imu acceleration in imu's coordinates
struct FloatQuat imu_to_body_quat
imu to body quaternion
float vel_x
The velocity in the x direction (image coordinates)
uint16_t corner_cnt
The amount of coners found by FAST9.
float vel_y
The velocity in the y direction (image coordinates)
float fps
Frames per second of the optical flow calculation.
int16_t flow_x
Flow in x direction from the camera (in subpixels)
float noise_measurement
noise of measurement, for state filter
float divergence
Divergence as determined with a linear flow fit.
angular rates
float surface_roughness
Surface roughness as determined with a linear optical flow fit.
Paparazzi fixed point algebra.
int16_t flow_der_x
The derotated flow calculation in the x direction (in subpixels)