Paparazzi UAS  v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
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 */
vff_update_vz_conf
void vff_update_vz_conf(float vz_meas, float conf)
Definition: vf_extended_float.c:433
vff_update
void vff_update(float z_meas)
Definition: vf_float.c:189
Vff::zdotdot
float zdotdot
z-acceleration in m/s^2 (NED, z-down)
Definition: vf_float.h:38
Vff::z_meas
float z_meas
last measurement
Definition: vf_float.h:39
Vff
Definition: vf_float.h:34
Vff::P
float P[VFF_STATE_SIZE][VFF_STATE_SIZE]
covariance matrix
Definition: vf_float.h:40
Vff::z
float z
z-position estimate in m (NED, z-down)
Definition: vf_float.h:35
vff_propagate
void vff_propagate(float accel, float dt)
Propagate the filter in time.
Definition: vf_extended_float.c:181
VFF_STATE_SIZE
#define VFF_STATE_SIZE
Definition: vf_float.h:32
vff_realign
void vff_realign(float z_meas)
Definition: vf_extended_float.c:384
vff_init
void vff_init(float z, float zdot, float bias)
Definition: vf_float.c:71
vff
struct Vff vff
Definition: vf_extended_float.c:89
Vff::zdot
float zdot
z-velocity estimate in m/s (NED, z-down)
Definition: vf_float.h:36
vff_init_zero
void vff_init_zero(void)
Definition: vf_extended_float.c:107
Vff::bias
float bias
accel bias estimate in m/s^2
Definition: vf_float.h:37
vff_update_z_conf
void vff_update_z_conf(float z_meas, float conf)
Definition: vf_extended_float.c:310