Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
#include "std.h"
#include "mcu_periph/gpio.h"
#include "mcu_periph/uart.h"
#include "pprzlink/messages.h"
#include "subsystems/datalink/downlink.h"
#include "humid_sht_uart.h"
Go to the source code of this file.
Functions | |
void | calc_sht (uint16_t hum, uint16_t tem, float *fhum, float *ftem) |
void | humid_sht_uart_parse (uint8_t c) |
void | humid_sht_uart_periodic (void) |
void | humid_sht_uart_init (void) |
void | humid_sht_uart_event (void) |
Variables | |
uint16_t | humidsht |
!SITL More... | |
uint16_t | tempsht |
float | fhumidsht |
float | ftempsht |
bool | humid_sht_available |
SHTxx sensor interface
This reads the values for humidity and temperature from the SHTxx sensor through an uart.
Definition in file humid_sht_uart.c.
Definition at line 45 of file humid_sht_uart.c.
Referenced by humid_sht_uart_parse().
void humid_sht_uart_event | ( | void | ) |
Definition at line 109 of file humid_sht_uart.c.
References humid_sht_uart_parse(), MetBuffer, and MetGetch.
void humid_sht_uart_init | ( | void | ) |
Definition at line 105 of file humid_sht_uart.c.
void humid_sht_uart_parse | ( | uint8_t | c | ) |
Definition at line 81 of file humid_sht_uart.c.
References c(), calc_sht(), DefaultChannel, DefaultDevice, fhumidsht, ftempsht, humidsht, and tempsht.
Referenced by humid_sht_uart_event().
void humid_sht_uart_periodic | ( | void | ) |
Definition at line 76 of file humid_sht_uart.c.
float fhumidsht |
Definition at line 39 of file humid_sht_uart.c.
Referenced by humid_sht_uart_parse().
float ftempsht |
Definition at line 39 of file humid_sht_uart.c.
Referenced by humid_sht_uart_parse().
bool humid_sht_available |
Definition at line 40 of file humid_sht_uart.c.
uint16_t humidsht |
uint16_t tempsht |
Definition at line 38 of file humid_sht_uart.c.
Referenced by humid_sht_uart_parse().