Paparazzi UAS  v4.2.2_stable-4-gcc32f65
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
agl_vfilter.h
Go to the documentation of this file.
1 #ifndef AGL_VFILTER_H
2 #define AGL_VFILTER_H
3 
4 #include "mcu_periph/adc.h"
5 
6 #define STATE_SIZE 3
7 
8 extern float agl_vf_z;
9 extern float agl_vf_zdot;
10 extern float agl_vf_bias;
11 extern float agl_vf_P[STATE_SIZE][STATE_SIZE];
12 
13 extern struct adc_buf agl_adc_buf;
14 
15 extern float agl_vf_z_meas;
16 
17 extern void agl_vf_init(float z, float zdot, float bias);
18 extern void agl_vf_predict(float accel);
19 extern void agl_vf_update(float z_meas);
20 
21 #endif /* AGL_VFILTER_H */
void agl_vf_update(float z_meas)
Definition: agl_vfilter.c:107
float agl_vf_zdot
Definition: agl_vfilter.c:25
void agl_vf_predict(float accel)
Definition: agl_vfilter.c:66
arch independent ADC (Analog to Digital Converter) API
struct adc_buf agl_adc_buf
Definition: agl_vfilter.c:28
float agl_vf_z
Definition: agl_vfilter.c:24
float agl_vf_P[STATE_SIZE][STATE_SIZE]
Definition: agl_vfilter.c:30
Generic interface for all ADC hardware drivers, independent from microcontroller architecture.
Definition: adc.h:60
int32_t int32_t accel
#define STATE_SIZE
Definition: agl_vfilter.h:6
float agl_vf_bias
Definition: agl_vfilter.c:26
void agl_vf_init(float z, float zdot, float bias)
Definition: agl_vfilter.c:34
float agl_vf_z_meas
Definition: agl_vfilter.c:32