Paparazzi UAS  v5.18.0_stable
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 
Filter1eImu::accel_dcutoff
float accel_dcutoff
Definition: filter_1euro_imu.h:38
filter_1euro_imu_update_accel_dcutoff
void filter_1euro_imu_update_accel_dcutoff(float dcutoff)
Definition: filter_1euro_imu.c:266
Filter1eImu
Definition: filter_1euro_imu.h:31
Filter1eImu::accel_mincutoff
float accel_mincutoff
Definition: filter_1euro_imu.h:36
std.h
filter_1e_imu
struct Filter1eImu filter_1e_imu
configuration structure
Definition: filter_1euro_imu.c:86
filter_1euro_imu_update_gyro_beta
void filter_1euro_imu_update_gyro_beta(float beta)
Definition: filter_1euro_imu.c:234
Filter1eImu::gyro_dcutoff
float gyro_dcutoff
Definition: filter_1euro_imu.h:35
Filter1eImu::gyro_mincutoff
float gyro_mincutoff
Definition: filter_1euro_imu.h:33
filter_1euro_imu_update_accel_beta
void filter_1euro_imu_update_accel_beta(float beta)
Definition: filter_1euro_imu.c:258
filter_1euro_imu_update_accel_mincutoff
void filter_1euro_imu_update_accel_mincutoff(float mincutoff)
Definition: filter_1euro_imu.c:250
filter_1euro_imu_update_gyro_mincutoff
void filter_1euro_imu_update_gyro_mincutoff(float mincutoff)
Definition: filter_1euro_imu.c:226
Filter1eImu::enabled
bool enabled
Definition: filter_1euro_imu.h:32
filter_1euro_imu_reset
void filter_1euro_imu_reset(float enabled)
settings handlers
Definition: filter_1euro_imu.c:217
Filter1eImu::accel_beta
float accel_beta
Definition: filter_1euro_imu.h:37
Filter1eImu::gyro_beta
float gyro_beta
Definition: filter_1euro_imu.h:34
filter_1euro_imu_update_gyro_dcutoff
void filter_1euro_imu_update_gyro_dcutoff(float dcutoff)
Definition: filter_1euro_imu.c:242
filter_1euro_imu_init
void filter_1euro_imu_init(void)
Init and bindings.
Definition: filter_1euro_imu.c:185