Paparazzi UAS  v5.8.2_stable-0-g6260b7c
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
vf_float.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2008-2009 Antoine Drouin <poinix@gmail.com>
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, write to
18  * the Free Software Foundation, 59 Temple Place - Suite 330,
19  * Boston, MA 02111-1307, USA.
20  */
21 
29 #ifndef VF_FLOAT_H
30 #define VF_FLOAT_H
31 
32 #define VFF_STATE_SIZE 3
33 
34 struct Vff {
35  float z;
36  float zdot;
37  float bias;
38  float zdotdot;
39  float z_meas;
41 };
42 
43 extern struct Vff vff;
44 
45 extern void vff_init_zero(void);
46 extern void vff_init(float z, float zdot, float bias);
47 extern void vff_propagate(float accel, float dt);
48 extern void vff_update(float z_meas);
49 extern void vff_update_z_conf(float z_meas, float conf);
50 extern void vff_update_vz_conf(float vz_meas, float conf);
51 extern void vff_realign(float z_meas);
52 
53 #endif /* VF_FLOAT_H */
#define VFF_STATE_SIZE
Definition: vf_float.h:32
void vff_update(float z_meas)
Definition: vf_float.c:189
float zdot
z-velocity estimate in m/s (NED, z-down)
Definition: vf_float.h:36
float z
z-position estimate in m (NED, z-down)
Definition: vf_float.h:35
float bias
accel bias estimate in m/s^2
Definition: vf_float.h:37
void vff_init_zero(void)
void vff_update_vz_conf(float vz_meas, float conf)
Definition: vf_float.c:247
float zdotdot
z-acceleration in m/s^2 (NED, z-down)
Definition: vf_float.h:38
struct Vff vff
void vff_realign(float z_meas)
void vff_propagate(float accel, float dt)
Propagate the filter in time.
void vff_init(float z, float zdot, float bias)
Definition: vf_float.c:71
float z_meas
last measurement
Definition: vf_float.h:39
float P[VFF_STATE_SIZE][VFF_STATE_SIZE]
covariance matrix
Definition: vf_float.h:40
void vff_update_z_conf(float z_meas, float conf)
Definition: vf_float.h:34