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
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
47extern float cloud_sensor_threshold;
48extern float cloud_sensor_hysteresis;
49extern float cloud_sensor_background;
50extern float cloud_sensor_calib_alpha;
51extern float cloud_sensor_calib_beta;
53extern float cloud_sensor_tau;
54extern void cloud_sensor_update_tau(float tau); // setting handler
55
58extern void cloud_sensor_init(void);
59
62extern void cloud_sensor_callback(uint8_t *buf);
63extern void LWC_callback(uint8_t *buf);
64
67extern void cloud_sensor_report(void);
68
69
70#endif
71
float cloud_sensor_channel_scale
void LWC_callback(uint8_t *buf)
float cloud_sensor_hysteresis
float cloud_sensor_threshold
uint8_t cloud_sensor_compute_background
float cloud_sensor_tau
void cloud_sensor_init(void)
Init function.
uint8_t cloud_sensor_compute_coef
variables for settings
float cloud_sensor_background
void cloud_sensor_callback(uint8_t *buf)
New message/data callback.
void cloud_sensor_update_tau(float tau)
float cloud_sensor_calib_beta
void cloud_sensor_report(void)
Report function.
float cloud_sensor_calib_alpha
unsigned char uint8_t
Typedef defining 8 bit unsigned char type.