Paparazzi UAS v7.0_unstable
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
34struct Vff {
35 float z;
36 float zdot;
37 float bias;
38 float zdotdot;
39 float z_meas;
41};
42
43extern struct Vff vff;
44
45extern void vff_init_zero(void);
46extern void vff_init(float z, float zdot, float bias);
47extern void vff_propagate(float accel, float dt);
48extern void vff_update(float z_meas);
49extern void vff_update_z_conf(float z_meas, float conf);
50extern void vff_update_vz_conf(float vz_meas, float conf);
51extern void vff_realign(float z_meas);
52
53#endif /* VF_FLOAT_H */
uint16_t foo
Definition main_demo5.c:58
float P[VFF_STATE_SIZE][VFF_STATE_SIZE]
covariance matrix
Definition vf_float.h:40
void vff_update(float z_meas)
Definition vf_float.c:189
#define VFF_STATE_SIZE
Definition vf_float.h:32
float zdotdot
z-acceleration in m/s^2 (NED, z-down)
Definition vf_float.h:38
void vff_init_zero(void)
float z
z-position estimate in m (NED, z-down)
Definition vf_float.h:35
void vff_update_z_conf(float z_meas, float conf)
struct Vff vff
float bias
accel bias estimate in m/s^2
Definition vf_float.h:37
void vff_init(float z, float zdot, float bias)
Definition vf_float.c:71
void vff_update_vz_conf(float vz_meas, float conf)
float zdot
z-velocity estimate in m/s (NED, z-down)
Definition vf_float.h:36
void vff_realign(float z_meas)
void vff_propagate(float accel, float dt)
Propagate the filter in time.
float z_meas
last measurement
Definition vf_float.h:39
Definition vf_float.h:34