Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
filter_1euro_imu.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019 Gautier Hattenberger <gautier.hattenberger@enac.fr>
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  */
26 #ifndef FILTER_1EURO_IMU_H
27 #define FILTER_1EURO_IMU_H
28 
29 #include "std.h"
30 
31 struct Filter1eImu {
32  bool enabled;
34  float gyro_beta;
35  float gyro_dcutoff;
37  float accel_beta;
39 };
40 
41 extern struct Filter1eImu filter_1e_imu;
42 
43 extern void filter_1euro_imu_init(void);
44 
48 extern void filter_1euro_imu_reset(float enabled);
49 extern void filter_1euro_imu_update_gyro_mincutoff(float mincutoff);
50 extern void filter_1euro_imu_update_gyro_beta(float beta);
51 extern void filter_1euro_imu_update_gyro_dcutoff(float dcutoff);
52 extern void filter_1euro_imu_update_accel_mincutoff(float mincutoff);
53 extern void filter_1euro_imu_update_accel_beta(float beta);
54 extern void filter_1euro_imu_update_accel_dcutoff(float dcutoff);
55 
56 #endif
57 
void filter_1euro_imu_update_gyro_mincutoff(float mincutoff)
struct Filter1eImu filter_1e_imu
configuration structure
void filter_1euro_imu_update_gyro_beta(float beta)
void filter_1euro_imu_update_accel_dcutoff(float dcutoff)
void filter_1euro_imu_update_gyro_dcutoff(float dcutoff)
void filter_1euro_imu_reset(float enabled)
settings handlers
void filter_1euro_imu_update_accel_beta(float beta)
void filter_1euro_imu_update_accel_mincutoff(float mincutoff)
float gyro_mincutoff
void filter_1euro_imu_init(void)
Init and bindings.
float accel_mincutoff