Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
cloud_sensor.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2019 Gautier Hattenberger <gautier.hattenberger@enac.fr>
3  * Titouan Verdu <titouan.verdu@enac.fr>
4  *
5  * This file is part of paparazzi.
6  *
7  * paparazzi is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License as published by
9  * the Free Software Foundation; either version 2, or (at your option)
10  * any later version.
11  *
12  * paparazzi is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  * GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License
18  * along with paparazzi; see the file COPYING. If not, see
19  * <http://www.gnu.org/licenses/>.
20  */
21 
33 #ifndef CLOUD_SENSOR_H
34 #define CLOUD_SENSOR_H
35 
36 #include "std.h"
37 
38 #define CLOUD_SENSOR_COEF_NONE 0
39 #define CLOUD_SENSOR_COEF_SINGLE 1
40 #define CLOUD_SENSOR_COEF_ANGSTROM 2
41 
47 extern float cloud_sensor_threshold;
48 extern float cloud_sensor_hysteresis;
49 extern float cloud_sensor_background;
50 extern float cloud_sensor_calib_alpha;
51 extern float cloud_sensor_calib_beta;
52 extern float cloud_sensor_channel_scale;
53 extern float cloud_sensor_tau;
54 extern void cloud_sensor_update_tau(float tau); // setting handler
55 
58 extern void cloud_sensor_init(void);
59 
62 extern void cloud_sensor_callback(uint8_t *buf);
63 extern void LWC_callback(uint8_t *buf);
64 
67 extern void cloud_sensor_report(void);
68 
69 
70 #endif
71 
float cloud_sensor_channel_scale
Definition: cloud_sensor.c:203
void LWC_callback(uint8_t *buf)
Definition: cloud_sensor.c:532
float cloud_sensor_hysteresis
Definition: cloud_sensor.c:199
float cloud_sensor_threshold
Definition: cloud_sensor.c:198
uint8_t cloud_sensor_compute_background
Definition: cloud_sensor.c:197
float cloud_sensor_tau
Definition: cloud_sensor.c:204
void cloud_sensor_init(void)
Init function.
Definition: cloud_sensor.c:290
uint8_t cloud_sensor_compute_coef
variables for settings
Definition: cloud_sensor.c:196
float cloud_sensor_background
Definition: cloud_sensor.c:200
void cloud_sensor_callback(uint8_t *buf)
New message/data callback.
Definition: cloud_sensor.c:397
void cloud_sensor_update_tau(float tau)
Definition: cloud_sensor.c:324
float cloud_sensor_calib_beta
Definition: cloud_sensor.c:202
void cloud_sensor_report(void)
Report function.
Definition: cloud_sensor.c:547
float cloud_sensor_calib_alpha
Definition: cloud_sensor.c:201
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.
Definition: vl53l1_types.h:98