Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
cloud_sensor.h File Reference

Get data from Cloud Sensor. More...

#include "std.h"
+ Include dependency graph for cloud_sensor.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define CLOUD_SENSOR_COEF_NONE   0
 
#define CLOUD_SENSOR_COEF_SINGLE   1
 
#define CLOUD_SENSOR_COEF_ANGSTROM   2
 

Functions

void cloud_sensor_update_tau (float tau)
 
void cloud_sensor_init (void)
 Init function. More...
 
void cloud_sensor_callback (uint8_t *buf)
 New message/data callback. More...
 
void LWC_callback (uint8_t *buf)
 
void cloud_sensor_report (void)
 Report function. More...
 

Variables

uint8_t cloud_sensor_compute_coef
 variables for settings More...
 
uint8_t cloud_sensor_compute_background
 
float cloud_sensor_threshold
 
float cloud_sensor_hysteresis
 
float cloud_sensor_background
 
float cloud_sensor_calib_alpha
 
float cloud_sensor_calib_beta
 
float cloud_sensor_channel_scale
 
float cloud_sensor_tau
 

Detailed Description

Get data from Cloud Sensor.

  • compute coef value from PAYLOAD_FLOAT data
    • Liquid Water Content (LWC)
    • Angstrom coef
    • single sensor
  • get already computed LWC from PAYLOAD_COMMAND data

Definition in file cloud_sensor.h.

Macro Definition Documentation

◆ CLOUD_SENSOR_COEF_ANGSTROM

#define CLOUD_SENSOR_COEF_ANGSTROM   2

Definition at line 40 of file cloud_sensor.h.

◆ CLOUD_SENSOR_COEF_NONE

#define CLOUD_SENSOR_COEF_NONE   0

Definition at line 38 of file cloud_sensor.h.

◆ CLOUD_SENSOR_COEF_SINGLE

#define CLOUD_SENSOR_COEF_SINGLE   1

Definition at line 39 of file cloud_sensor.h.

Function Documentation

◆ cloud_sensor_callback()

◆ cloud_sensor_init()

◆ cloud_sensor_report()

void cloud_sensor_report ( void  )

Report function.

Definition at line 547 of file cloud_sensor.c.

References DefaultChannel, DefaultDevice, and send_cloud_sensor_data().

+ Here is the call graph for this function:

◆ cloud_sensor_update_tau()

void cloud_sensor_update_tau ( float  tau)

Definition at line 324 of file cloud_sensor.c.

References cloud_sensor_tau, lowPassFilter0, and update_first_order_low_pass_tau().

+ Here is the call graph for this function:

◆ LWC_callback()

void LWC_callback ( uint8_t buf)

Definition at line 532 of file cloud_sensor.c.

References check_border(), cloud_sensor, CloudSensor::coef, dl_buffer, get_sys_time_usec(), lwc_from_buffer(), and send_data().

+ Here is the call graph for this function:

Variable Documentation

◆ cloud_sensor_background

float cloud_sensor_background
extern

Definition at line 200 of file cloud_sensor.c.

Referenced by cloud_sensor_callback(), and cloud_sensor_init().

◆ cloud_sensor_calib_alpha

float cloud_sensor_calib_alpha
extern

Definition at line 201 of file cloud_sensor.c.

Referenced by cloud_sensor_filtering(), and cloud_sensor_init().

◆ cloud_sensor_calib_beta

float cloud_sensor_calib_beta
extern

Definition at line 202 of file cloud_sensor.c.

Referenced by cloud_sensor_filtering(), and cloud_sensor_init().

◆ cloud_sensor_channel_scale

float cloud_sensor_channel_scale
extern

Definition at line 203 of file cloud_sensor.c.

Referenced by cloud_sensor_filtering(), and cloud_sensor_init().

◆ cloud_sensor_compute_background

uint8_t cloud_sensor_compute_background
extern

Definition at line 197 of file cloud_sensor.c.

Referenced by cloud_sensor_callback().

◆ cloud_sensor_compute_coef

uint8_t cloud_sensor_compute_coef
extern

variables for settings

variables for settings

Definition at line 196 of file cloud_sensor.c.

Referenced by cloud_sensor_callback(), and cloud_sensor_init().

◆ cloud_sensor_hysteresis

float cloud_sensor_hysteresis
extern

Definition at line 199 of file cloud_sensor.c.

Referenced by check_border(), cloud_sensor_callback(), and cloud_sensor_init().

◆ cloud_sensor_tau

float cloud_sensor_tau
extern

Definition at line 204 of file cloud_sensor.c.

Referenced by cloud_sensor_init(), and cloud_sensor_update_tau().

◆ cloud_sensor_threshold

float cloud_sensor_threshold
extern

Definition at line 198 of file cloud_sensor.c.

Referenced by check_border(), cloud_sensor_callback(), and cloud_sensor_init().